Skip to content

Commit d3be756

Browse files
authored
Merge pull request #421 from ml054/v5.4
eslint - extra rules 🦄
2 parents 84e261c + e4dca0c commit d3be756

File tree

238 files changed

+1739
-941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+1739
-941
lines changed

.eslintrc.js

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,57 @@ module.exports = {
66
},
77
"extends": [
88
"eslint:recommended",
9-
"plugin:@typescript-eslint/recommended"
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:unicorn/recommended"
1011
],
1112
"parser": "@typescript-eslint/parser",
1213
"parserOptions": {
1314
"ecmaVersion": "latest",
1415
"sourceType": "module"
1516
},
1617
"plugins": [
17-
"@typescript-eslint"
18+
"@typescript-eslint",
19+
"unicorn"
1820
],
1921
"rules": {
22+
"no-console": "warn",
2023
"@typescript-eslint/no-explicit-any": "off",
2124
"@typescript-eslint/no-inferrable-types": "off",
2225
"@typescript-eslint/no-unused-vars": "off",
23-
"no-console": "warn",
26+
27+
"unicorn/no-unnecessary-polyfills": "off",
28+
"unicorn/prefer-string-replace-all": "off",
29+
"unicorn/import-style": "off",
30+
"unicorn/prefer-module": "off",
31+
"unicorn/prefer-type-error": "off",
32+
"unicorn/prefer-event-target": "off",
33+
"unicorn/no-array-callback-reference": "off",
34+
"unicorn/no-this-assignment": "off",
35+
"unicorn/prefer-object-from-entries": "off",
36+
"unicorn/prefer-ternary": "off",
37+
"unicorn/prefer-code-point": "off",
38+
"unicorn/prefer-switch": "off",
39+
"unicorn/no-typeof-undefined": "off",
40+
"unicorn/no-new-array": "off",
41+
"unicorn/prefer-string-slice": "off",
42+
"unicorn/prevent-abbreviations": "off",
43+
"unicorn/no-negated-condition": "off",
44+
"unicorn/no-for-loop": "off",
45+
"unicorn/filename-case": "off",
46+
"unicorn/no-null": "off",
47+
"unicorn/catch-error-name": "off",
48+
"unicorn/no-array-push-push": "off",
49+
"unicorn/no-lonely-if": "off",
50+
"unicorn/explicit-length-check": "off",
51+
"unicorn/numeric-separators-style": "off",
52+
"unicorn/no-await-expression-member": "off",
53+
"unicorn/no-zero-fractions": "off",
54+
"unicorn/prefer-native-coercion-functions": "off",
55+
"unicorn/no-array-method-this-argument": "off",
56+
"unicorn/no-useless-undefined": "off",
57+
"unicorn/no-array-reduce": "off",
58+
"unicorn/better-regex": "off",
59+
"unicorn/prefer-spread": "off",
60+
"unicorn/consistent-function-scoping": "off",
2461
}
2562
}

0 commit comments

Comments
 (0)