forked from opal/opal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.03 KB
/
.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
30
31
32
33
34
35
36
37
38
39
module.exports = {
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-unused-vars": ["error", {
"varsIgnorePattern": "(\$(\$|\$\$|yield|post_args|[a-z])|self)",
"argsIgnorePattern": "(\$(\$|\$\$|yield|post_args|[a-z])|self)",
}],
"no-extra-semi": "off",
"no-empty": "off",
"no-unreachable": "off",
"no-cond-assign": "off",
"no-prototype-builtins": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-useless-escape": "off",
"no-fallthrough": ["error", { "commentPattern": "raise|no-break" }],
"no-regex-spaces": "off",
"no-control-regex": "off",
},
"globals": {
"ArrayBuffer": "readonly",
"DataView": "readonly",
"globalThis": "readonly",
"Opal": "readonly",
"Promise": "readonly",
"Proxy": "readonly",
"Reflect": "readonly",
"Uint8Array": "readonly",
"Int32Array": "readonly",
"WeakRef": "readonly",
"Map": "readonly",
}
};