-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
63 lines (62 loc) · 1.68 KB
/
Copy path.eslintrc
File metadata and controls
63 lines (62 loc) · 1.68 KB
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
53
54
55
56
57
58
59
60
61
62
63
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint", "import", "no-only-tests"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": false,
"jest": true,
"jquery": false,
"node": true
},
"settings": {
"import/extensions": [".tsx", ".ts"]
},
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-optional-chain": "warn",
"arrow-parens": "off",
"comma-dangle": "off",
"curly": "warn",
"import/first": "warn",
"import/no-default-export": "off",
"indent": "off",
"max-len": "off",
"no-console": "error",
"no-empty-character-class": "off",
"no-global-assign": "off",
"no-only-tests/no-only-tests": "error",
"no-restricted-imports": ["warn", { "patterns": ["./src"] }],
"no-unexpected-multiline": "off",
"prefer-const": "warn",
"quotes": "off",
"semi": "off"
},
"overrides": [
{
"files": ["src/**/*"],
"rules": {
"import/no-default-export": "warn"
}
}
]
}