-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc
70 lines (70 loc) · 2.58 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
65
66
67
68
69
70
{
"extends": [
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:cypress/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["prettier", "cypress", "mocha"],
"ignorePatterns": ["react-app-env.d.ts", "squire.js", "squire-raw.js", "APITypes.ts"],
"rules": {
"@typescript-eslint/array-type": ["error", { "type": "array" }],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/interface-name-prefix": ["error", "always"],
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/quotes": ["error", "double", { "avoidEscape": true }],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/camelcase": "off",
"require-await": "off",
"prettier/prettier": "error",
"arrow-body-style": ["off", "always"],
"curly": "error",
"space-before-blocks": "error",
"camelcase": "off",
"complexity": "off",
"constructor-super": "error",
"dot-notation": "off",
"eqeqeq": "error",
"guard-for-in": "error",
"id-match": "error",
"max-classes-per-file": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-debugger": "error",
"no-empty": "error",
"no-eval": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-restricted-imports": ["error", "rxjs/Rx"],
"no-shadow": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-underscore-dangle": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"one-var": ["error", "never"],
"radix": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"use-isnan": "error",
"cypress/no-unnecessary-waiting": "off",
"mocha/no-exclusive-tests": "error"
}
}