{"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,"search_vec":"'0.0.21':15 '2.1.0':32 '2022':19 '3.0.0':33 '5.1.0':29 'angular':11,55 'base':24 'configur':23 'current':13 'deprec':37 'eslint':41 'favor':39 'feb':18 'ionic':3,10,54 'javascript':51 'last':16 'lint':57,58 'linter':59 'longer':46 'maintain':47 'new':49 'note':34 'packag':5,43 'preset':22 'project':12,50 'provid':20 'releas':17 'requir':27 'rule':4,8,53 'strict':26 'tslint':2,7,28,35,52 'tslint-ionic-rul':1 'two':21 'typescript':31,56 'version':14","created_at":"2026-05-01T13:50:28.432881+00:00","updated_at":"2026-05-01T13:50:28.432881+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/ionic-team/tslint-ionic-rules","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tslint-ionic-rules","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}