eslint-config-clean-code

8.0.0 • Public • Published

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

  1. Pre-requisite: you need to have both ESLint and TypeScript installed, preferably locally.
  2. npm install --save-dev eslint-config-clean-code
  3. In your .eslintrc file at the project root, add extends: eslint-config-clean-code.
  4. Also add parserOptions: { project: 'path.to.tsconfig.json' }.
  5. 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.

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-clean-code

Weekly Downloads

38

Version

8.0.0

License

MIT

Unpacked Size

14.6 kB

Total Files

6

Last publish

Collaborators

  • pkabirr