-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
37 lines (37 loc) · 1.07 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"overrides": [
{
"files": ["server/**/*.js"],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"allowImportExportEverywhere": true
},
"rules": {
"semi": "error",
"eol-last": "error",
"no-unexpected-multiline": "error",
"max-len": ["error", {"code": 200, "tabWidth": 4, "ignoreComments": true, "ignoreTemplateLiterals": true}],
"no-inline-comments": "error",
"no-trailing-spaces": "error",
"quotes": ["error", "single"],
"prefer-arrow-callback": "error",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"comma-dangle": ["error", "always-multiline"],
"dot-notation": "error",
"eqeqeq": "error",
"no-alert": "error",
"indent": ["error", 4, { "SwitchCase": 1 }]
}
}