-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
27 lines (27 loc) · 910 Bytes
/
.eslintrc.json
File metadata and controls
27 lines (27 loc) · 910 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
{
"env": { "node": true, "browser": true, "es2021": true },
"parserOptions": { "ecmaVersion": 2022 },
"overrides": [
{
"files": ["client/**/*.js"],
"parserOptions": { "sourceType": "module" }
}
],
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-undef": "error",
"no-const-assign": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"eqeqeq": ["error", "always"],
"no-var": "error",
"prefer-const": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"comma-dangle": ["error", "never"],
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }]
}
}