mirror of
https://github.com/qbittorrent/qBittorrent-website.git
synced 2024-10-06 23:13:21 +00:00
Update eslint rules
Those are in sync with qbt WebUI.
This commit is contained in:
parent
b90e669071
commit
f45a15e7bc
@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
function setIdClassAttr(id, value) {
|
||||
const element = document.getElementById(id);
|
||||
|
@ -23,9 +23,16 @@ export default [
|
||||
Stylistic
|
||||
},
|
||||
rules: {
|
||||
"curly": ["error", "multi-or-nest", "consistent"],
|
||||
"eqeqeq": "error",
|
||||
"guard-for-in": "error",
|
||||
"no-undef": "off",
|
||||
"no-unused-vars": "off",
|
||||
"no-var": "error",
|
||||
"operator-assignment": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"prefer-const": "error",
|
||||
"radix": "error",
|
||||
"Stylistic/no-mixed-operators": [
|
||||
"error",
|
||||
{
|
||||
@ -35,7 +42,16 @@ export default [
|
||||
}
|
||||
],
|
||||
"Stylistic/nonblock-statement-body-position": ["error", "below"],
|
||||
"Stylistic/semi": "error"
|
||||
"Stylistic/quotes": [
|
||||
"error",
|
||||
"double",
|
||||
{
|
||||
"avoidEscape": true,
|
||||
"allowTemplateLiterals": true
|
||||
}
|
||||
],
|
||||
"Stylistic/semi": "error",
|
||||
"Stylistic/spaced-comment": ["error", "always", { "exceptions": ["*"] }]
|
||||
}
|
||||
}
|
||||
];
|
||||
|
@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
function setIdClassAttr(id, value) {
|
||||
const element = document.getElementById(id);
|
||||
|
Loading…
Reference in New Issue
Block a user