-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
62 lines (62 loc) · 1.59 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
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "react-hooks", "@typescript-eslint"],
"rules": {
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/newline-after-import": ["warn", { "count": 2 }],
"no-multiple-empty-lines": ["warn", { "max": 2, "maxEOF": 0 }],
"eol-last": ["warn", "always"],
"semi": "off",
"@typescript-eslint/explicit-function-return-type": ["warn"],
"@typescript-eslint/semi": ["warn"],
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
],
"import/order": ["error", {
"groups": ["builtin", "external", ["internal", "parent", "sibling", "index", "object"], "type", "unknown"],
"pathGroups": [
{
"pattern": "*.scss",
"patternOptions": { "matchBase": true },
"group": "unknown",
"position": "after"
},
{
"pattern": "*.types",
"patternOptions": { "matchBase": true },
"group": "type",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [],
"newlines-between": "always"
}]
}
}