eslint-config-clean-code v8.0.0
eslint-config-clean-code
Linter rules for clean and fast TypeScript development
Why?
Because every TypeScript developer deserves not to think about code style and minor approaches.
Installation
- Pre-requisite: you need to have both ESLint and TypeScript installed, preferably locally.
npm install --save-dev eslint-config-clean-code
- In your
.eslintrc
file at the project root, addextends: eslint-config-clean-code
. - Also add
parserOptions: { project: 'path.to.tsconfig.json' }
. - Customise the rules if required.
Choices
TypeScript
Because we believe that quality software development is impossible without types.
Automatic Code Formatting
We consciously disable rules related to whitespace, indents, etc. and recommend using Prettier
instead, as a complementary tool to your linter. Having wasted numerous workdays bickering about minor formatting issues, this is the only sane choice for all projects, in our opinion.
Consistency over Pluralism
There should be one straightforward way to do anything, and this consistency is enforced by the rules.
1 year ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago