-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
eslint.config.js
37 lines (35 loc) · 935 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
import js from "@eslint/js";
import globals from "globals";
import stylistic from "@stylistic/eslint-plugin";
export default [
js.configs.recommended,
{
plugins: {
"@stylistic": stylistic
},
languageOptions: {
globals: {
channel: "readonly",
...globals.browser
},
ecmaVersion: 2022,
sourceType: "module"
},
rules: {
"no-var": ["error"],
"@stylistic/brace-style": ["error", "1tbs"],
"@stylistic/indent": ["error", 4],
"@stylistic/linebreak-style": ["error", "unix"],
"@stylistic/quotes": ["error", "double"],
"@stylistic/semi": ["error", "always"],
},
},
{
ignores: [
"app/build/",
"app/src/*/assets/viewer",
"build/",
"releases/"
]
}
];