Skip to content

Commit

Permalink
Update eslint rules
Browse files Browse the repository at this point in the history
Those are in sync with qbt WebUI.
  • Loading branch information
Chocobo1 committed Jul 15, 2024
1 parent b90e669 commit f45a15e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _site/scripts/download.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';
"use strict";

function setIdClassAttr(id, value) {
const element = document.getElementById(id);
Expand Down
18 changes: 17 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
{
Expand All @@ -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": ["*"] }]
}
}
];
2 changes: 1 addition & 1 deletion src/scripts/download.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';
"use strict";

function setIdClassAttr(id, value) {
const element = document.getElementById(id);
Expand Down

0 comments on commit f45a15e

Please sign in to comment.