forked from qbittorrent/qBittorrent-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
42 lines (41 loc) · 1.12 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
import Globals from "globals";
import Html from "eslint-plugin-html";
import Js from "@eslint/js";
import Stylistic from '@stylistic/eslint-plugin';
export default [
Js.configs.recommended,
Stylistic.configs['disable-legacy'],
{
files: [
"**/*.html",
"**/*.cjs",
"**/*.js",
"**/*.mjs"
],
languageOptions: {
ecmaVersion: 2021,
globals: {
...Globals.browser
}
},
plugins: {
Html,
Stylistic
},
rules: {
"eqeqeq": "error",
"no-undef": "off",
"no-unused-vars": "off",
"Stylistic/no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>", "==", "!=", "===", "!==", ">", ">=", "<", "<=", "&&", "||", "in", "instanceof"]
]
}
],
"Stylistic/nonblock-statement-body-position": ["error", "below"],
"Stylistic/semi": "error"
}
}
];