Skip to content

Commit 098dc85

Browse files
committed
Refactor ESLint config
1 parent f1af7db commit 098dc85

File tree

3 files changed

+12
-820
lines changed

3 files changed

+12
-820
lines changed

.eslintrc.json

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,26 @@
11
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
24
"env": {
3-
"es2020": true,
45
"node": true
56
},
6-
"extends": [
7-
"airbnb-typescript/base"
8-
],
9-
"parser": "@typescript-eslint/parser",
10-
"parserOptions": {
11-
"project": "./tsconfig.json"
12-
},
137
"plugins": [
148
"@typescript-eslint",
159
"typescript-sort-keys",
1610
"sort-keys-fix",
1711
"unused-imports"
1812
],
19-
"root": true,
20-
"overrides": [
21-
{
22-
"files": "docs/api/compiler.ts",
23-
"rules": {
24-
"no-console": "off"
25-
}
26-
}
13+
"extends": [
14+
"eslint:recommended",
15+
"plugin:@typescript-eslint/recommended",
16+
"plugin:typescript-sort-keys/recommended"
2717
],
2818
"rules": {
29-
"@typescript-eslint/no-use-before-define": "off",
30-
"guard-for-in": "off",
31-
"import/no-default-export": "error",
32-
"import/order": ["warn", {"alphabetize": {"order": "asc", "caseInsensitive": true}}],
33-
"import/prefer-default-export": "off",
34-
"max-classes-per-file": "off",
35-
"max-len": "off",
36-
"newline-after-var": "warn",
37-
"newline-before-return": "warn",
38-
"no-console": "warn",
39-
"no-multiple-empty-lines": ["warn", {"max": 1, "maxBOF": 0, "maxEOF": 0}],
40-
"no-param-reassign": "off",
41-
"no-restricted-syntax": "off",
42-
"padding-line-between-statements": ["warn", {"blankLine": "never", "prev": "import", "next": "import"}],
43-
"sort-keys-fix/sort-keys-fix": ["warn", "asc", {"caseSensitive": true, "natural": false}],
44-
"typescript-sort-keys/interface": "warn",
45-
"unused-imports/no-unused-imports-ts": "warn",
46-
"unused-imports/no-unused-vars-ts": "warn"
19+
"object-curly-spacing": ["warn", "always"],
20+
"@typescript-eslint/explicit-module-boundary-types": "off",
21+
"@typescript-eslint/no-explicit-any": "off",
22+
"@typescript-eslint/no-inferrable-types": "off",
23+
"unused-imports/no-unused-imports": "warn",
24+
"unused-imports/no-unused-vars": "warn"
4725
}
4826
}

0 commit comments

Comments
 (0)