-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
34 lines (34 loc) · 902 Bytes
/
.eslintrc.json
File metadata and controls
34 lines (34 loc) · 902 Bytes
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
{
"env": {
"node": true,
"es2022": true,
"browser": true
},
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
"no-console": "off",
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"semi": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true }],
"indent": ["error", 2, { "SwitchCase": 1 }],
"comma-dangle": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": "error",
"eol-last": ["error", "always"],
"no-constant-condition": "warn",
"no-empty": "warn"
},
"ignorePatterns": ["node_modules/", "coverage/", "*.min.js", "dist/", "build/"]
}