forked from FiguredLimited/vue-mc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
64 lines (64 loc) · 2.13 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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"no-constant-condition": "warn",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "warn",
"no-empty": "warn",
"no-ex-assign": "warn",
"no-extra-boolean-cast": "warn",
"no-func-assign": "warn",
"no-inner-declarations": "warn",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "warn",
"no-negated-in-lhs": "warn",
"no-obj-calls": "warn",
"no-regex-spaces": "warn",
"no-sparse-arrays": "warn",
"no-unreachable": "warn",
"use-isnan": "warn",
"valid-typeof": "warn",
"curly": ["warn","all"],
"eqeqeq": ["warn","smart"],
"no-labels": "warn",
"no-eval": "warn",
"no-extra-bind": "warn",
"no-native-reassign": "error",
"no-redeclare": "error",
"yoda": ["warn","never",{}],
"comma-spacing": ["warn",{"before":false,"after":true}],
"eol-last": "warn",
"indent": ["warn", 4, {
"SwitchCase": 1
}],
"space-infix-ops": "warn",
"spaced-comment": ["warn","always"],
"arrow-spacing": ["warn",{"before":true,"after":true}],
"constructor-super": "warn",
"no-const-assign": "warn",
"no-var": "error",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
}