eslint-config-silence-fix

0.8.1 • Public • Published

Prettier does only focus on formatting rules like comma-style and does nothing to help with code-quality. eslint-config-silence does not regulate code style rules, but focuses on:

  • Prevent possible errors (e.g. no-cond-assign, no-unreachable)

  • Recommends best practices (e.g. no-eval, no-extend-native)

  • Code Smell Detection (e.g. no-duplicated-branches, no-identical-functions)

  • Forces the use of ES6+ features (e.g. no-var, prefer-const, prefer-spread)

  • Warnings you that complexity of the code is exceeded:

"complexity": ["warn", 20],
"max-depth": ["warn", 4],
"max-lines": ["warn", 300],
"max-params": ["warn", 3],

Usage

npm install -D eslint-config-silence

Add this to your .eslintrc file:

{
  "extends": ["eslint-config-silence"]
}

Note: You can also omit the eslint-config-

React

For React projects you can also use additional config:

{
  "extends": ["silence/react"]
}

This config includes rules of Hooks and recommended accessibility rules on JSX elements.

/eslint-config-silence-fix/

    Package Sidebar

    Install

    npm i eslint-config-silence-fix

    Weekly Downloads

    2

    Version

    0.8.1

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • rubaxa