Skip to content

Commit

Permalink
chore(eslint): update ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Sep 22, 2024
1 parent 99b54c0 commit f3a5428
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
7 changes: 5 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import pluginSecurity from 'eslint-plugin-security';

export default withNuxt({
files: ['**/*.js', '**/*.vue'],
ignores: eslintIgnores,
rules: {
'prettier/prettier': 'error',
classPrivateMethods: 'off',
Expand Down Expand Up @@ -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
);
18 changes: 3 additions & 15 deletions eslint.ignores.js
Original file line number Diff line number Diff line change
@@ -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/*']
};

0 comments on commit f3a5428

Please sign in to comment.