-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy patheslint.config.cjs
More file actions
57 lines (55 loc) · 1.59 KB
/
eslint.config.cjs
File metadata and controls
57 lines (55 loc) · 1.59 KB
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
54
55
56
57
"use strict";
const js = require("@eslint/js");
const globals = require("globals");
module.exports = [
{
ignores: [
".eslintrc.js",
"dist/**",
"examples/**",
"documentation/**",
"node_modules/**",
"out/**",
"src/shell-post.js",
"src/shell-pre.js",
"test/**"
]
},
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 5,
sourceType: "script",
globals: {
...globals.browser,
...globals.node,
...globals.es2015,
Atomics: "readonly",
SharedArrayBuffer: "readonly"
}
},
rules: {
camelcase: "off",
"comma-dangle": "off",
"dot-notation": "off",
indent: ["error", 4, { SwitchCase: 1 }],
"max-len": ["error", { code: 80 }],
"no-bitwise": "off",
"no-cond-assign": ["error", "except-parens"],
"no-param-reassign": "off",
"no-throw-literal": "off",
"no-useless-assignment": "off",
"no-var": "off",
"no-unused-vars": ["error", { caughtErrors: "none" }],
"object-shorthand": "off",
"prefer-arrow-callback": "off",
"prefer-destructuring": "off",
"prefer-spread": "off",
"prefer-template": "off",
quotes: ["error", "double"],
strict: "off",
"vars-on-top": "off"
}
}
];