-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
52 lines (52 loc) · 1.36 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"commonjs": true,
"worker": true
},
"plugins": ["prettier"],
"rules": {
"curly": "warn",
"eqeqeq": ["warn", "always", { "null": "ignore" }],
"no-throw-literal": "warn",
"semi": "off",
"prefer-const": "warn"
},
"ignorePatterns": ["**/*.d.ts"],
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"@typescript-eslint/no-unused-vars": [
"warn", // or "error"
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"curly": "warn",
"eqeqeq": ["warn", "always", { "null": "ignore" }],
"no-throw-literal": "warn",
"semi": "off",
"prefer-const": "warn",
"prettier/prettier": "off"
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint", "prettier"]
}
]
}