-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
108 lines (108 loc) · 3.25 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
106
107
108
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"import",
"@typescript-eslint"
],
"rules": {
"quotes": ["warn", "single"],
"semi": ["warn", "never"],
"curly": ["warn", "multi-or-nest", "consistent"],
"eqeqeq": ["warn", "always"],
"camelcase": ["warn", { "properties": "always" }],
"jsx-quotes": ["error", "prefer-single"],
"indent": ["error", 2],
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-invalid-this": "warn",
"no-lone-blocks": "warn",
"no-lonely-if": "warn",
"no-param-reassign": "warn",
"no-sequences": "warn",
"no-useless-call": "warn",
"operator-assignment": "warn",
"prefer-const": "warn",
"prefer-template": "warn",
"arrow-parens": ["warn", "as-needed"],
"arrow-spacing": "warn",
"block-spacing": "warn",
"comma-spacing": "warn",
"comma-style": "warn",
"eol-last": "warn",
"func-call-spacing": "warn",
"key-spacing": "warn",
"no-multi-spaces": "warn",
"no-tabs": "error",
"no-whitespace-before-property": "error",
"keyword-spacing": "error",
"implicit-arrow-linebreak": "error",
"computed-property-spacing": "error",
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"comma-dangle": ["error", "never"],
"quote-props": ["error", "as-needed"],
"prefer-rest-params": "error",
"one-var": ["error", "never"],
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"no-void": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-proto": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-alert": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-empty": "off",
"import/order": ["warn", {
"groups": ["builtin", "external", "internal", ["parent", "sibling"]],
"pathGroups": [{
"pattern": "react",
"group": "external",
"position": "before"
}],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}],
"no-empty-function": "off",
"import/namespace": "off",
"import/no-unresolved": "off",
"react/react-in-jsx-scope": "off",
"react/display-name": "off",
"react/no-unescaped-entities": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { "vars": "all", "args": "after-used", "varsIgnorePattern": "_+" }]
}
}