-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
eslint.config.mjs
38 lines (37 loc) · 954 Bytes
/
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
import globals from "globals";
import js from "@eslint/js";
export default [
js.configs.recommended,
{
ignores: ["**/.instrumented/*"]
},
{
files: ["javascript/*.js", "test/*.js"],
languageOptions: {
ecmaVersion: 2015,
globals: {
...globals.browser,
...globals.node,
define: "readonly",
JZZ: "readonly"
}
},
rules: {
"no-empty" : ["error", { "allowEmptyCatch": true }],
"no-prototype-builtins": "off",
"no-unused-vars": ["error", { caughtErrors: "none"}]
}
},
{
files: ["test/*.js"],
languageOptions: {
ecmaVersion: 2017,
globals: {
describe: "readonly",
it: "readonly",
before: "readonly",
after: "readonly"
}
}
}
];