-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
64 lines (64 loc) · 1.83 KB
/
.eslintrc
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
64
{
"env": {
"node": true
},
"rules": {
"no-shadow": "error",
"curly": "error",
"brace-style": "error",
"no-debugger": "error",
"prettier/prettier": ["error", { "singleQuote": true }],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-var": "error",
"no-irregular-whitespace": "error",
"no-else-return": "error",
"no-fallthrough": "error",
"default-case": "error",
"no-unused-vars": "error",
"no-unused-expressions": "error",
"no-nested-ternary": "error",
"no-unneeded-ternary": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"prefer-const": "error",
"prefer-template": "error",
"object-shorthand": ["error", "always"],
"security/detect-object-injection": "off",
"node/no-missing-require": [
"error",
{ "tryExtensions": [".js", ".json", ".ts"] }
],
"no-use-before-define": "error",
"no-extra-semi": "off"
},
"parserOptions": { "ecmaVersion": 10 },
"plugins": ["node", "security", "prettier"],
"extends": [
"prettier",
"eslint:recommended",
"plugin:node/recommended",
"plugin:security/recommended"
],
"overrides": [
{
"files": ["**/*.ts"],
"env": { "node": true },
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": { "ecmaVersion": 10 },
"plugins": ["@typescript-eslint"],
"rules": {
"node/no-missing-import": "off",
"node/no-unsupported-features/es-syntax": "off",
"security/detect-object-injection": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]
}
}
]
}