{"id":25761,"library":"ionic-gulp-tslint","title":"Ionic Gulp TSLint","description":"A Gulp task wrapper for linting TypeScript files in Ionic projects using TSLint. This package (v1.1.0) simplifies integrating TSLint into an Ionic build pipeline. It exposes a single function accepting options for source globs, TSLint configuration, reporter type, and reporter options. The release cadence is low; no updates since 2016. Compared to using gulp-tslint directly, this package provides Ionic-specific defaults like 'app/**/*.ts', but is largely unnecessary as it tightly couples to an older Ionic toolchain. Note that TSLint itself is deprecated in favor of ESLint with TypeScript plugins, and this package has no active maintenance.","status":"deprecated","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/driftyco/ionic-gulp-tasks","tags":["javascript"],"install":[{"cmd":"npm install ionic-gulp-tslint","lang":"bash","label":"npm"},{"cmd":"yarn add ionic-gulp-tslint","lang":"bash","label":"yarn"},{"cmd":"pnpm add ionic-gulp-tslint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for running TSLint in Gulp","package":"gulp-tslint","optional":false},{"reason":"Linter engine, must be installed separately","package":"tslint","optional":true}],"imports":[{"note":"This package exports a single function as default. ESM import style (import tslint from 'ionic-gulp-tslint') may work if bundler supports CJS interop, but it's primarily CommonJS.","wrong":"import { tslint } from 'ionic-gulp-tslint';","symbol":"tslint","correct":"const tslint = require('ionic-gulp-tslint');"},{"note":"Named import with braces will break because the module exports a single function, not an object with tslint property.","wrong":"const { tslint } = require('ionic-gulp-tslint');","symbol":"default","correct":"import tslint from 'ionic-gulp-tslint';"},{"note":"If using TypeScript with esModuleInterop, the default export is available as .default.","wrong":"const tslint = require('ionic-gulp-tslint').tslint;","symbol":"tslint.default","correct":"const tslint = require('ionic-gulp-tslint').default;"}],"quickstart":{"code":"const gulp = require('gulp');\nconst tslint = require('ionic-gulp-tslint');\n\ngulp.task('lint', function () {\n  return tslint({\n    src: 'app/**/*.ts',\n    tslintOptions: {\n      configuration: 'tslint.json'\n    },\n    reporter: 'verbose',\n    reportOptions: {\n      emitError: true\n    }\n  });\n});","lang":"javascript","description":"Shows how to define a Gulp task that lints TypeScript files using the default tslint function with custom source and configuration."},"warnings":[{"fix":"Migrate to ESLint with @typescript-eslint/parser and @typescript-eslint/eslint-plugin. Use community Gulp plugins like gulp-eslint.","message":"TSLint is deprecated in favor of ESLint with TypeScript support.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Refer to gulp-tslint documentation: reporter property is a string, reportOptions object. Also ensure tslintOptions fields match expected.","message":"Package relies on deprecated gulp-tslint v4.x which has breaking changes in options structure compared to earlier versions.","severity":"breaking","affected_versions":"1.0.0 - 1.1.0"},{"fix":"Explicitly set the src option to match your TypeScript files.","message":"Default glob 'app/**/*.ts' may not match your project structure if files are elsewhere (e.g., src/).","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Omit the tslint option; it's ignored. Use configuration and rulesDirectory only.","message":"The tslint option inside tslintOptions is not used; the Linter instance is controlled by gulp-tslint.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use const tslint = require('ionic-gulp-tslint');","cause":"Importing using require('ionic-gulp-tslint').tslint instead of require('ionic-gulp-tslint').","error":"TypeError: tslint is not a function"},{"fix":"Install tslint: npm install tslint --save-dev","cause":"Missing tslint dependency.","error":"Error: Cannot find module 'tslint'"},{"fix":"Use 'verbose', 'json', 'full', or 'msbuild'.","cause":"gulp-tslint does not support 'prose' reporter; it was removed.","error":"Error: Invalid reporter 'prose'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}