forked from opal/opal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.mjs
53 lines (46 loc) · 1.23 KB
/
eslint.config.mjs
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import globals from "globals";
import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 12,
sourceType: "commonjs",
globals: {
...globals.browser,
...globals.node,
ArrayBuffer: "readonly",
DataView: "readonly",
globalThis: "readonly",
Opal: "readonly",
Promise: "readonly",
Proxy: "readonly",
Reflect: "readonly",
Uint8Array: "readonly",
Int32Array: "readonly",
WeakRef: "readonly",
Map: "readonly",
},
},
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",
},
}
];