Skip to content

Commit 081e8d6

Browse files
committed
refactor: Update eslint config
1 parent 74b1fd3 commit 081e8d6

File tree

8 files changed

+1320
-3296
lines changed

8 files changed

+1320
-3296
lines changed

.eslintignore

-2
This file was deleted.

.eslintrc.cjs

-26
This file was deleted.

eslint.config.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import pluginVue from 'eslint-plugin-vue';
2+
import vueTsEslintConfig from '@vue/eslint-config-typescript';
3+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
4+
5+
export default [
6+
{
7+
name: 'app/files-to-lint',
8+
files: ['**/*.{ts,mts,tsx,vue}'],
9+
},
10+
{
11+
name: 'app/files-to-ignore',
12+
ignores: ['**/dist/**', '**/coverage/**', '**/*.scss', '**/node_modules/**'],
13+
},
14+
...pluginVue.configs['flat/recommended'],
15+
...vueTsEslintConfig(),
16+
skipFormatting,
17+
{
18+
rules: {
19+
'@typescript-eslint/no-unused-vars': ['error', { caughtErrors: 'none', varsIgnorePattern: '^_' }],
20+
'vue/multi-word-component-names': 'off',
21+
'@typescript-eslint/no-explicit-any': 'off',
22+
},
23+
},
24+
];

0 commit comments

Comments
 (0)