|
1 | | -# eslint-config-typescript-tc |
| 1 | +# eslint-config-typescript-tc |
| 2 | + |
| 3 | +> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for TypeScript projects |
| 4 | +
|
| 5 | +[](https://github.com/tclindner/eslint-config-typescript-tc/blob/main/LICENSE) |
| 6 | +[](https://www.npmjs.com/package/eslint-config-typescript-tc) |
| 7 | + |
| 8 | +[](https://david-dm.org/tclindner/eslint-config-typescript-tc) |
| 9 | +[](https://david-dm.org/tclindner/eslint-config-typescript-tc#info=devDependencies) |
| 10 | + |
| 11 | +## What is eslint-config-typescript-tc? |
| 12 | + |
| 13 | +Shared configuration for ESLint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file! |
| 14 | + |
| 15 | +# How do I install it? |
| 16 | + |
| 17 | +First thing first, let's make sure you have the necessary pre-requisites. |
| 18 | + |
| 19 | +### System Dependencies |
| 20 | + |
| 21 | +#### Node |
| 22 | + |
| 23 | +* [Node.js](https://nodejs.org/) - v10.0.0+ |
| 24 | +* [npm](http://npmjs.com) - v6.0.0+ |
| 25 | + |
| 26 | +### Command |
| 27 | + |
| 28 | +```bash |
| 29 | +npx install-peerdeps --dev eslint-config-typescript-tc |
| 30 | +``` |
| 31 | + |
| 32 | +> @typescript-eslint/parser and eslint-config-prettier are peer dependencies and must be installed. |
| 33 | +
|
| 34 | +**This module works best when paired with [`eslint-config-tc`](https://github.com/tclindner/eslint-config-tc). Please follow its install instructions.** |
| 35 | + |
| 36 | +## Usage |
| 37 | + |
| 38 | +Add the following to your `.eslintrc.json` file: |
| 39 | + |
| 40 | +```json |
| 41 | +{ |
| 42 | + "extends": "eslint-config-typescript-tc" |
| 43 | +} |
| 44 | +``` |
| 45 | + |
| 46 | +If you need to override a rule, your `.eslintrc.json` file should look like the example below. All shared rules will be used, but `@typescript-eslint/array-type` will be turned off. |
| 47 | + |
| 48 | +```json |
| 49 | +{ |
| 50 | + "extends": "eslint-config-typescript-tc", |
| 51 | + "rules": { |
| 52 | + "@typescript-eslint/array-type": "off" |
| 53 | + } |
| 54 | +} |
| 55 | +``` |
| 56 | + |
| 57 | +## Related |
| 58 | + |
| 59 | +- [eslint-config-tc](https://github.com/tclindner/eslint-config-tc) - ESLint shareable config for JavaScript projects |
| 60 | + |
| 61 | +## Contributing |
| 62 | + |
| 63 | +Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information. |
| 64 | + |
| 65 | +## Change Log |
| 66 | + |
| 67 | +Please see the [CHANGELOG.md](CHANGELOG.md) for more information. |
| 68 | + |
| 69 | +## License |
| 70 | + |
| 71 | +Copyright (c) 2020 Thomas Lindner. Licensed under the MIT license. |
0 commit comments