From 870a26d76680e4182dd2e929491674bd63e9ba47 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Sat, 8 Aug 2026 15:33:31 +0200 Subject: [PATCH] feat(lint): add ESLint rules Added some ESLint rules (see eslint.config.js). --- eslint.config.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 627e989..26ee042 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -13,6 +13,38 @@ export default defineConfig([ ...globals.browser, ...globals.node } + }, + rules: { + 'eqeqeq': 'error', + + 'no-unused-vars': 'error', + 'no-undef': 'error', + 'prefer-const': 'error', + 'no-var': 'error', + 'no-duplicate-imports': 'error', + 'no-import-assign': 'error', + + 'no-empty-function': 'error', + 'default-param-last': 'error', + 'prefer-arrow-callback': 'error', + 'require-await': 'warn', + 'no-async-promise-executor': 'error', + + 'no-unreachable': 'error', + + 'no-constant-condition': 'error', + + 'no-debugger': 'error', + 'no-alert': 'error', + 'no-console': 'warn', + + 'no-new-object': 'error', + 'no-array-constructor': 'error', + 'no-prototype-builtins': 'error', + 'object-shorthand': 'error', + + 'prefer-template': 'error', + } }, pluginVue.configs['flat/essential'],