{"id":20623,"library":"tslint-config-prettier","title":"tslint-config-prettier","description":"tslint-config-prettier is a shareable TSLint configuration that disables all TSLint rules that conflict with Prettier, allowing you to use both tools together without clashes. Version 1.18.0 is the latest stable release, actively maintained until TSLint's deprecation. It bundles a CLI checker to identify conflicting rules in your config. It supports multiple TSLint rule set extensions including codelyzer, tslint-consistent-codestyle, tslint-eslint-rules, tslint-immutable, tslint-microsoft-contrib, and tslint-react. It is deprecated in favor of using ESLint with @typescript-eslint and eslint-config-prettier.","status":"deprecated","version":"1.18.0","language":"javascript","source_language":"en","source_url":"https://github.com/prettier/tslint-config-prettier","tags":["javascript","lint","tslint","ts-lint","prettier","config","typescript"],"install":[{"cmd":"npm install tslint-config-prettier","lang":"bash","label":"npm"},{"cmd":"yarn add tslint-config-prettier","lang":"bash","label":"yarn"},{"cmd":"pnpm add tslint-config-prettier","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to work; tslint must be installed separately","package":"tslint","optional":false}],"imports":[{"note":"This is not a JavaScript import; it's a configuration extension. Place it last in the extends array.","wrong":"Using `require('tslint-config-prettier')` in JavaScript file instead of extending in tslint.json","symbol":"tslint-config-prettier","correct":"// In tslint.json\n{\n  \"extends\": [\"tslint-config-prettier\"]\n}"},{"note":"CLI tool that checks for conflicting rules; requires tslint installed.","wrong":"Running `tslint-config-prettier` without arguments or with wrong path","symbol":"tslint-config-prettier-check","correct":"npx tslint-config-prettier-check ./tslint.json"}],"quickstart":{"code":"// Install\nnpm install --save-dev tslint tslint-config-prettier\n\n// tslint.json\n{\n  \"extends\": [\n    \"tslint:recommended\",\n    \"tslint-config-prettier\"\n  ]\n}","lang":"json","description":"Install tslint and tslint-config-prettier, then extend your tslint.json placing tslint-config-prettier last."},"warnings":[{"fix":"Migrate from TSLint to ESLint. Consider using eslint-config-prettier.","message":"tslint is deprecated; TSLint is no longer maintained. Use ESLint with @typescript-eslint instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure the extends array ends with \"tslint-config-prettier\".","message":"tslint-config-prettier must be the last extension in the \"extends\" array to properly override conflicting rules.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Install tslint: npm install --save-dev tslint","message":"The CLI checker `tslint-config-prettier-check` requires tslint to be installed as a peer dependency.","severity":"gotcha","affected_versions":">=1.11.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install --save-dev tslint","cause":"tslint is not installed as a peer dependency","error":"Error: Cannot find module 'tslint'"},{"fix":"Verify the path: npx tslint-config-prettier-check ./tslint.json","cause":"Path to tslint.json is incorrect or file doesn't exist","error":"tslint-config-prettier-check: No rules found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}