-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
29 lines (29 loc) · 875 Bytes
/
.eslintrc.js
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
module.exports = {
"env": {
"node":true,
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"ignorePatterns": ["dist/", "node_modules/"],
"rules": {
"no-console": 1,
"no-dupe-args":1,
"no-duplicate-case": 1,
"no-empty": 1,
"eqeqeq": ["error", "smart"],
"comma-spacing": [1, { "before": false, "after": true }],
"no-trailing-spaces": 1,
"no-empty-function": "error",
"space-infix-ops": ["error", { "int32Hint": false }],
"quotes": ["error", "double",{ "allowTemplateLiterals": true }],
"object-curly-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"]
}
};