-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.json
49 lines (39 loc) · 1.2 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
// Prettier plugin should always be the last to overwrite existing plugins settings that might conflict with prettier
"prettier"
],
"rules": {
// Add additional configurations or overwrite plugin configurations here
// Allow named and default exports
"import/prefer-default-export": "off",
// Allow using console methods
"no-console": "off",
// Allow boolean casting
"no-extra-boolean-cast": "off",
// Allow nested ternary expressions
"no-nested-ternary": "off",
// Allow using regex
"no-control-regex": "off",
// Allow parameter reassignment
"no-param-reassign": "off",
// Warn when any type is used
"@typescript-eslint/no-explicit-any": "warn",
// Disallow unused variables
"@typescript-eslint/no-unused-vars": "error",
// Allow unused expressions
"@typescript-eslint/no-unused-expressions": "off",
// Allow the use of _ in code
"no-underscore-dangle": "off",
"prefer-const": "warn"
}
}