Skip to content

Commit b823acd

Browse files
committed
chore(eslint): fix config
1 parent a39a41d commit b823acd

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

eslint.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
55
import eslintIgnores from './eslint.ignores.js';
66

77
export default [
8-
{
9-
ignores: eslintIgnores
10-
},
8+
eslintIgnores,
119
pluginJs.configs.recommended,
1210
...pluginVue.configs['flat/essential'],
1311
eslintPluginPrettierRecommended,
1412
{
15-
files: ['**/*.js', '**/*.vue'],
1613
languageOptions: {
1714
globals: { ...globals.node, ...globals.browser }
1815
},

eslint.ignores.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
export default [
2-
// Common
3-
'node_modules',
4-
'dist',
5-
'.nuxt',
6-
'coverage',
7-
'.reports',
8-
'.history',
9-
'publish',
10-
'sw.js',
11-
'.output',
12-
13-
// Docs
14-
'docs/.vitepress/dist',
15-
'docs/.vitepress/cache'
16-
];
1+
export default {
2+
ignores: ['.history', '**/.vitepress/cache/*', '**/dist/*']
3+
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"build": "vite build playground",
2323
"preview": "vite preview playground",
2424
"prepare": "husky",
25-
"lint:es": "eslint --fix .",
25+
"lint": "npm run lint:es && npm run lint:css",
26+
"lint:es": "eslint .",
2627
"lint:css": "stylelint \"(src|playground)/**/*.vue\"",
2728
"docs:dev": "vitepress dev docs",
2829
"docs:build": "vitepress build docs",

0 commit comments

Comments
 (0)