forked from gadingnst/quran-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
35 lines (35 loc) · 809 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
{
"env": {
"node": true,
"commonjs": true,
"es2021": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"semi": ["error", "always"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"comma-dangle": ["error", "never"],
"space-before-blocks": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": "error",
"keyword-spacing": "error",
"arrow-spacing": "error",
"space-infix-ops": "error",
"no-console": "warn",
"no-useless-catch": "off",
"space-before-function-paren": ["error", "never"],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
]
}
}