-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
90 lines (90 loc) · 3.51 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
{
"extends": "standard",
"env": {"jest": true},
"parser": "@typescript-eslint/parser",
"plugins": ["prefer-arrow", "@typescript-eslint"],
"rules": {
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"block-scoped-var": "error",
"camelcase": ["error", { "properties": "always" }],
"class-methods-use-this": "off",
"comma-dangle": ["error", "always-multiline"],
"complexity": ["off"],
"computed-property-spacing": ["error", "never"],
"consistent-return": "error",
"consistent-this": "error",
"default-case": ["error", {"commentPattern": "^skip\\sdefault"}],
"dot-notation": "error",
"for-direction": "error",
"func-style": ["error", "expression"],
"getter-return": "error",
"guard-for-in": "error",
"implicit-arrow-linebreak": "off",
"indent": ["error", 4, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"line-comment-position": ["off"],
"lines-between-class-members": ["error", "always", {"exceptAfterSingleLine": true}],
"max-depth": ["error", 4],
"max-len": ["error", {"code": 120, "ignorePattern": "\\/\\* eslint"}],
"multiline-ternary": ["error", "always-multiline"],
"newline-per-chained-call": "off",
"no-alert": "error",
"no-await-in-loop": "error",
"no-case-declarations": "error",
"no-catch-shadow": "error",
"no-confusing-arrow": ["error", {"allowParens": true}],
"no-console": "error",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-extra-semi": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-invalid-this": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-multi-assign": "error",
"nonblock-statement-body-position": ["error", "beside"],
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-prototype-builtins": "error",
"no-script-url": "error",
"no-underscore-dangle": "off",
"no-useless-concat": "error",
"no-var": "error",
"no-void": "error",
"no-warning-comments": ["error", {"terms": ["todo", "fix", "fixme"]}],
"no-throw-literal": "off",
"object-curly-newline": "off",
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"prefer-arrow/prefer-arrow-functions": ["error"],
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"radix": "error",
"require-await": "error",
"require-jsdoc": ["off", {"require": {"FunctionDeclaration": true, "MethodDefinition": true, "ClassDeclaration": true, "ArrowFunctionExpression": false, "FunctionExpression": true}}],
"require-yield": "error",
"rest-spread-spacing": ["error", "never"],
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
"space-before-function-paren": "off",
"switch-colon-spacing": "error",
"valid-jsdoc": ["off", {"prefer": {"arg": "param", "argument": "param", "class": "constructor", "return": "returns", "virtual": "abstract"}, "requireReturn": false}],
"wrap-regex": "error",
"@typescript-eslint/no-unused-vars": ["error", {"argsIgnorePattern": "^_$"}]
}
}