-
Notifications
You must be signed in to change notification settings - Fork 40
/
.eslintrc.json
48 lines (48 loc) · 1022 Bytes
/
.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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"ignorePatterns": ["node_modules", "dist", "build"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["prettier", "import"],
"rules": {
"import/no-unresolved": [2, { "caseSensitive": false }],
"import/order": [
2,
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "always"
}
],
"indent": ["error", 2],
"linebreak-style": [0, "windows"],
"prettier/prettier": "error",
"quotes": ["error", "single"],
"semi": ["error", "never"]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js"],
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}