From f3a54283e15a82b2ed25909d48168fbcc4bc18ee Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Sun, 22 Sep 2024 21:17:10 +0200 Subject: [PATCH] chore(eslint): update ignores --- eslint.config.js | 7 +++++-- eslint.ignores.js | 18 +++--------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 3ea4f64b48..52b3aa34e6 100755 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,7 +5,6 @@ import pluginSecurity from 'eslint-plugin-security'; export default withNuxt({ files: ['**/*.js', '**/*.vue'], - ignores: eslintIgnores, rules: { 'prettier/prettier': 'error', classPrivateMethods: 'off', @@ -39,4 +38,8 @@ export default withNuxt({ 'vue/multi-word-component-names': 'off', 'vue/html-self-closing': 'off' // prettier conflict } -}).prepend(pluginSecurity.configs.recommended, eslintPluginPrettierRecommended); +}).prepend( + eslintIgnores, + pluginSecurity.configs.recommended, + eslintPluginPrettierRecommended +); diff --git a/eslint.ignores.js b/eslint.ignores.js index cb2492fbab..8d29c9775d 100644 --- a/eslint.ignores.js +++ b/eslint.ignores.js @@ -1,15 +1,3 @@ -export default [ - // Common - 'node_modules', - 'dist', - '.nuxt', - 'coverage', - '.reports', - 'publish', - 'sw.js', - '.output', - - // Docs - 'docs/.vitepress/dist', - 'docs/.vitepress/cache' -]; +export default { + ignores: ['.history', '**/.vitepress/cache/*', '**/dist/*'] +};