2.2.0 • Published 5 months ago
@igorkowalczyk/eslint-config v2.2.0
📥 Installation
npm install --save-dev @igorkowalczyk/eslint-config
yarn add --dev @igorkowalczyk/eslint-config
pnpm install --save-dev @igorkowalczyk/eslint-config
🔩 Usage
!IMPORTANT Starting from version
2.0.0
this package now includes bothlegacy
andflat
configs. This is breaking change, so please update your config files accordingly.
Legacy config:
// .eslintrc.js
module.exports = {
extends: ["@igorkowalczyk/eslint-config/legacy"],
};
Flat config:
// eslint.config.js
import eslintConfig from "@igorkowalczyk/eslint-config/flat";
export default [
...eslintConfig
];
⚙️ Rules overview
Rule | Style | Type | Documentation |
---|---|---|---|
constructor-super | Error | 🚫 Error | Documentation |
for-direction | Error | 🚫 Error | Documentation |
getter-return | Error | 🚫 Error | Documentation |
no-async-promise-executor | Error | 🚫 Error | Documentation |
no-case-declarations | Error | 🚫 Error | Documentation |
no-class-assign | Error | 🚫 Error | Documentation |
no-compare-neg-zero | Error | 🚫 Error | Documentation |
no-cond-assign | Error | 🚫 Error | Documentation |
no-const-assign | Error | 🚫 Error | Documentation |
no-constant-condition | Error | 🚫 Error | Documentation |
no-control-regex | Error | 🚫 Error | Documentation |
no-debugger | Error | 🚫 Error | Documentation |
no-delete-var | Error | 🚫 Error | Documentation |
no-dupe-args | Error | 🚫 Error | Documentation |
no-dupe-class-members | Error | 🚫 Error | Documentation |
no-dupe-else-if | Error | 🚫 Error | Documentation |
no-dupe-keys | Error | 🚫 Error | Documentation |
no-duplicate-case | Error | 🚫 Error | Documentation |
no-empty | Error | 🚫 Error | Documentation |
no-empty-character-class | Error | 🚫 Error | Documentation |
no-empty-pattern | Error | 🚫 Error | Documentation |
no-ex-assign | Error | 🚫 Error | Documentation |
no-extra-boolean-cast | Error | 🚫 Error | Documentation |
no-extra-semi | Error | 🚫 Error | Documentation |
no-fallthrough | Error | 🚫 Error | Documentation |
no-func-assign | Error | 🚫 Error | Documentation |
no-global-assign | Error | 🚫 Error | Documentation |
no-import-assign | Error | 🚫 Error | Documentation |
no-inner-declarations | Error | 🚫 Error | Documentation |
no-invalid-regexp | Error | 🚫 Error | Documentation |
no-irregular-whitespace | Error | 🚫 Error | Documentation |
no-loss-of-precision | Error | 🚫 Error | Documentation |
no-misleading-character-class | Error | 🚫 Error | Documentation |
no-mixed-spaces-and-tabs | Error | 🚫 Error | Documentation |
no-new-symbol | Error | 🚫 Error | Documentation |
no-nonoctal-decimal-escape | Error | 🚫 Error | Documentation |
no-obj-calls | Error | 🚫 Error | Documentation |
no-octal | Error | 🚫 Error | Documentation |
no-prototype-builtins | Error | 🚫 Error | Documentation |
no-redeclare | Error | 🚫 Error | Documentation |
no-regex-spaces | Error | 🚫 Error | Documentation |
no-self-assign | Error | 🚫 Error | Documentation |
no-setter-return | Error | 🚫 Error | Documentation |
no-shadow-restricted-names | Error | 🚫 Error | Documentation |
no-sparse-arrays | Error | 🚫 Error | Documentation |
no-this-before-super | Error | 🚫 Error | Documentation |
no-undef | Error | 🚫 Error | Documentation |
no-unexpected-multiline | Error | 🚫 Error | Documentation |
no-unreachable | Error | 🚫 Error | Documentation |
no-unsafe-finally | Error | 🚫 Error | Documentation |
no-unsafe-negation | Error | 🚫 Error | Documentation |
no-unsafe-optional-chaining | Error | 🚫 Error | Documentation |
no-unused-labels | Error | 🚫 Error | Documentation |
no-unused-vars | Documentation | ⚠️ Warning | Documentation |
no-useless-backreference | Error | 🚫 Error | Documentation |
no-useless-catch | Error | 🚫 Error | Documentation |
no-useless-escape | Error | 🚫 Error | Documentation |
no-with | Error | 🚫 Error | Documentation |
require-yield | Error | 🚫 Error | Documentation |
use-isnan | Error | 🚫 Error | Documentation |
valid-typeof | Documentation | 🚫 Error | Documentation |
import/order | - | ⚠️ Warning | External rule |
prettier/prettier | Warn | ⚠️ Warning | External rule |
no-lonely-if | Error | 🚫 Error | Documentation |
linebreak-style | Unix | 🚫 Error | Documentation |
quotes | Double | 🚫 Error | Documentation |
semi | Always | ⚠️ Warning | Documentation |
comma-dangle | Documentation | 🚫 Error | Documentation |
no-eval | Error | 🚫 Error | Documentation |
func-names | As-needed | 🚫 Error | Documentation |
camelcase | Documentation | ⚠️ Warning | Documentation |
prefer-arrow-callback | Error | 🚫 Error | Documentation |
prefer-const | Error | 🚫 Error | Documentation |
object-shorthand | Always | 🚫 Error | Documentation |
block-spacing | Error | 🚫 Error | Documentation |
no-object-constructor | Error | 🚫 Error | Documentation |
comma-spacing | Error | 🚫 Error | Documentation |
keyword-spacing | Error | 🚫 Error | Documentation |
space-infix-ops | Error | 🚫 Error | Documentation |
space-unary-ops | Error | 🚫 Error | Documentation |
brace-style | Error | 🚫 Error | Documentation |
object-curly-spacing | Always | 🚫 Error | Documentation |
space-before-function-paren | Documentation | 🚫 Error | Documentation |
space-in-parens | Never | 🚫 Error | Documentation |
array-bracket-spacing | Never | 🚫 Error | Documentation |
template-curly-spacing | Never | 🚫 Error | Documentation |
computed-property-spacing | Never | 🚫 Error | Documentation |
no-use-before-define | Documentation | 🚫 Error | Documentation |
no-label-var | Error | 🚫 Error | Documentation |
no-undefined | Off | 💡 Disabled | Documentation |
complexity | 50 | ⚠️ Warning | Documentation |
no-alert | Warn | ⚠️ Warning | Documentation |
quote-props | As-needed | 🚫 Error | Documentation |
require-await | Off | 💡 Disabled | Documentation |
prefer-object-spread | Error | 🚫 Error | Documentation |
prefer-destructuring | Error | 🚫 Error | Documentation |
array-callback-return | Error | 🚫 Error | Documentation |
yoda | Error | 🚫 Error | Documentation |
jsx-quotes | Prefer-double | 💡 Disabled | Documentation |
unicode-bom | Never | 🚫 Error | Documentation |
no-process-env | Off | 💡 Disabled | Documentation |
no-process-exit | Off | 💡 Disabled | Documentation |
global-require | Error | 🚫 Error | Documentation |
2.2.0
5 months ago
2.1.0
5 months ago
1.5.5
9 months ago
1.5.4
10 months ago
1.5.3
10 months ago
1.5.2
10 months ago
1.5.1
10 months ago
1.4.2
11 months ago
1.5.0
10 months ago
1.4.1
11 months ago
2.0.3
7 months ago
2.0.2
7 months ago
2.0.1
7 months ago
2.0.0
7 months ago
1.5.6
8 months ago
1.3.2
1 year ago
1.4.0
12 months ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago