diff --git a/_site/scripts/download.js b/_site/scripts/download.js index 34c277b..6c2ffdb 100644 --- a/_site/scripts/download.js +++ b/_site/scripts/download.js @@ -1,4 +1,4 @@ -'use strict'; +"use strict"; function setIdClassAttr(id, value) { const element = document.getElementById(id); diff --git a/eslint.config.mjs b/eslint.config.mjs index 22c690b..5b0d2b2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -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": ["*"] }] } } ]; diff --git a/src/scripts/download.js b/src/scripts/download.js index 34c277b..6c2ffdb 100644 --- a/src/scripts/download.js +++ b/src/scripts/download.js @@ -1,4 +1,4 @@ -'use strict'; +"use strict"; function setIdClassAttr(id, value) { const element = document.getElementById(id);