Skip to content

Commit 13c7c8e

Browse files
committed
refactor: Migrate to ESLint
1 parent 0d6e4c5 commit 13c7c8e

13 files changed

Lines changed: 1802 additions & 1356 deletions

.build.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": [
3+
"./.eslintrc.json"
4+
],
5+
"rules": {
6+
"no-debugger": "error"
7+
}
8+
}

.eslintrc.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"env": {
3+
"browser": true
4+
},
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"plugin:promise/recommended",
9+
"plugin:regexp/recommended"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"project": "./tsconfig.json"
14+
},
15+
"plugins": [
16+
"@typescript-eslint"
17+
],
18+
"rules": {
19+
"no-async-promise-executor": "off",
20+
"no-debugger": "off",
21+
"no-unused-vars": "off",
22+
"@typescript-eslint/no-unused-vars": [
23+
"error", {
24+
"argsIgnorePattern": "^_",
25+
"varsIgnorePattern": "^_"
26+
}
27+
],
28+
"comma-dangle": "off",
29+
"@typescript-eslint/comma-dangle": [
30+
"error", {
31+
"arrays": "always-multiline",
32+
"objects": "always-multiline",
33+
"imports": "always-multiline",
34+
"exports": "always-multiline",
35+
"functions": "never"
36+
}
37+
],
38+
"@typescript-eslint/consistent-type-imports": [
39+
"error", {
40+
"prefer": "type-imports",
41+
"disallowTypeAnnotations": false
42+
}
43+
]
44+
}
45+
}

0 commit comments

Comments
 (0)