-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
105 lines (105 loc) · 2.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"node": true,
"es6": true,
"es2020": true
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"eslint-config-crockford",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extra-parens": 1,
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/no-use-before-define": [ 2, { "functions": false } ],
"@typescript-eslint/no-var-requires": "off",
"array-bracket-spacing": ["error", "never"],
"block-scoped-var": 2,
"camelcase": 2,
"comma-dangle": ["error", "never"],
"quote-props": ["warn", "as-needed"],
"no-useless-computed-key": ["error", { "enforceForClassMembers": true }],
"computed-property-spacing": ["error", "never"],
"consistent-return": 1,
"curly": 2,
"eol-last": [ "off" ],
"eqeqeq": 2,
"guard-for-in": 2,
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"linebreak-style": [ "error", "unix" ],
"max-params": [ 2, 5 ],
"new-cap": 2,
"no-array-constructor": 2,
"no-async-promise-executor": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-extend-native": 2,
"no-extra-parens": 1,
"no-global-assign": 2,
"no-implicit-globals": 2,
"no-invalid-this": 2,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-loop-func": 2,
"no-misleading-character-class": 2,
"no-new": 2,
"no-plusplus": 0,
"no-restricted-globals": ["error", "event"],
"no-undef": 2,
"no-unexpected-multiline": "warn",
"no-unused-vars": 2,
"no-use-before-define": "off",
"no-var": 2,
"object-curly-newline": ["error", {
"multiline": true,
"minProperties": 4,
"consistent": true
}],
"object-curly-spacing": ["error", "always"],
"one-var": [ 1, "never" ],
"one-var-declaration-per-line": 1,
"prefer-const": "warn",
"quotes": [ 2, "single", { "allowTemplateLiterals": true } ],
"radix": 2,
"require-atomic-updates": 2,
"require-await": 2,
"space-before-function-paren": [ "error", { "anonymous": "always", "named": "never", "asyncArrow": "always" } ],
"space-in-parens": ["error", "never"],
"strict": [1, "never"],
"valid-typeof": 2,
"wrap-iife": [ 2, "any" ]
},
"overrides": [
{
"files": ["**/*.test.{js,ts}", "**/jest.*.{js,ts}"],
"plugins": [
"@typescript-eslint",
"jest"
],
"extends": [
"plugin:jest/recommended",
"plugin:jest/style"
],
"env": {
"jasmine": true,
"jest/globals": true
}
}
]
}