-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
86 lines (86 loc) · 2.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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"simple-import-sort"
],
"parserOptions": {
"ecmaFeatures": {"impliedStrict": true},
"ecmaVersion": 2017,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"preact",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_"
}],
"array-bracket-spacing": "warn",
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["warn", "as-needed"],
"block-scoped-var": "warn",
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": "warn",
"import/no-cycle": "error",
"import/no-duplicates": "warn",
"indent": ["error", 2, {
"SwitchCase": 1,
"offsetTernaryExpressions": true
}],
"key-spacing": "warn",
"keyword-spacing": "warn",
"object-curly-spacing": ["warn", "never"],
"no-cond-assign": "off",
"no-console": ["warn", {"allow": ["warn", "error"]}],
"no-else-return": "off",
"no-lonely-if": "off",
"no-multi-spaces": ["warn", {"ignoreEOLComments": true}],
"no-prototype-builtins": "off",
"no-spaced-func": "warn",
"no-unused-vars": "off",
"no-useless-concat": "warn",
"no-var": "warn",
"prefer-arrow-callback": "warn",
"prefer-template": "off",
"quote-props": ["warn", "consistent-as-needed"],
"quotes": ["warn", "double", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"react-hooks/exhaustive-deps": "off",
"react/no-danger": "off",
"semi": ["error", "never"],
"simple-import-sort/imports": ["warn", {"groups": [
["^preact", "^@?\\w"],
["^\\u0000"],
["^"],
["^\\."],
["\\.module\\.(css|scss|less)$", "\\.(json|svg|png|jpg|jpeg)"]
]}],
"space-before-function-paren": ["warn", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": ["warn", "never"],
"strict": "error",
"template-curly-spacing": ["warn", "never"],
"operator-linebreak": ["warn", "before"]
},
"env": {
"browser": true,
"es6": true
}
}