{"id":26533,"library":"tslint-ionic-rules","title":"tslint-ionic-rules","description":"Package of TSLint rules for Ionic Angular projects. Current version 0.0.21, last release Feb 2022. Provides two preset configurations: base and strict. Requires TSLint ^5.1.0 and TypeScript ^2.1.0 || ^3.0.0. Note: TSLint is deprecated in favor of ESLint; this package is no longer maintained for new projects.","status":"deprecated","version":"0.0.21","language":"javascript","source_language":"en","source_url":"https://github.com/ionic-team/tslint-ionic-rules","tags":["javascript","tslint","rules","ionic","angular","typescript","lint","linting","linter"],"install":[{"cmd":"npm install tslint-ionic-rules","lang":"bash","label":"npm"},{"cmd":"yarn add tslint-ionic-rules","lang":"bash","label":"yarn"},{"cmd":"pnpm add tslint-ionic-rules","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to resolve rules","package":"tslint","optional":false},{"reason":"Peer dependency required for TypeScript version compatibility","package":"typescript","optional":false}],"imports":[{"note":"The package exports two presets: 'tslint-ionic-rules' (base) and 'tslint-ionic-rules/strict'. Do not add '/base'.","wrong":"// using non-existent path\n{\n  \"extends\": \"tslint-ionic-rules/base\"\n}","symbol":"extends","correct":"// in tslint.json\n{\n  \"extends\": \"tslint-ionic-rules\"\n}"},{"note":"Use the '/strict' path suffix to enable the strict preset.","wrong":"// using 'strict' as a separate config key\n{\n  \"extends\": \"tslint-ionic-rules\",\n  \"rulesDirectory\": [\"strict\"]\n}","symbol":"extends (strict)","correct":"// in tslint.json\n{\n  \"extends\": \"tslint-ionic-rules/strict\"\n}"},{"note":"This is a dev dependency; use --save-dev to avoid production installs.","wrong":"npm install tslint-ionic-rules --save","symbol":"npm install","correct":"npm i -D tslint-ionic-rules"}],"quickstart":{"code":"// 1. Install dependencies\nnpm i -D tslint-ionic-rules tslint typescript\n\n// 2. Create tslint.json with:\n{\n  \"extends\": \"tslint-ionic-rules/strict\",\n  \"rules\": {\n    \"no-console\": [true, \"log\", \"error\"]\n  }\n}\n\n// 3. Run lint\nnpx tslint -p tsconfig.json","lang":"typescript","description":"Installs the package with TSLint and TypeScript, configures tslint.json to use the strict preset, and runs the linter."},"warnings":[{"fix":"Migrate to ESLint using the Angular ESLint schematic: ng add @angular-eslint/schematics","message":"TSLint is deprecated; use ESLint with @typescript-eslint instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Downgrade TypeScript to ^3.0.0 or migrate to ESLint-based rules.","message":"Requires TypeScript 2.1.0 to 3.x; incompatible with TypeScript >=4.0.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Review the full rules list at node_modules/tslint-ionic-rules/tslint.js before combining with other configs.","message":"The base preset extends 'tslint:recommended'. Custom rules may conflict with other rulesets.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use @ionic/eslint-config or ESLint with Angular preset.","message":"Package is unmaintained since 2019 (last commit Feb 2022).","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'extends': 'tslint-ionic-rules/strict' and verify rule names from the source.","cause":"The rule name does not exist; typo or wrong preset path.","error":"Could not find rule: 'ionic-rule-name'"},{"fix":"Run 'npm i -D tslint-ionic-rules' and ensure tslint.json is in the project root.","cause":"Package not installed or missing from node_modules.","error":"Cannot find module 'tslint-ionic-rules'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}