-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
50 lines (49 loc) · 988 Bytes
/
eslint.config.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
40
41
42
43
44
45
46
47
48
49
50
import js from "@eslint/js";
import globals from "globals";
export default [
{
ignores: ["dist/**"]
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.webextensions,
}
},
rules: {
"no-unused-vars": "warn",
"no-console": "off",
"semi": "off",
"quotes": "off",
"no-useless-escape": "off" // Move here to apply globally
}
},
{
files: ["webpack.config.js"],
languageOptions: {
sourceType: "commonjs",
globals: {
...globals.node
}
}
},
{
files: [
"./lib/emotes.js",
"./lib/lib.js",
"./lib/navigation.js",
"./lib/observer.js",
"./lib/processor.js",
"./lib/styles.js",
"./lib/tooltip.js",
"./main.js"
],
rules: {
// Optional: you can add additional rules here if needed for specific files
}
}
];