34 lines
893 B
JavaScript
34 lines
893 B
JavaScript
import vuePlugin from 'eslint-plugin-vue'
|
|
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
|
import tsParser from '@typescript-eslint/parser'
|
|
import vueParser from 'vue-eslint-parser'
|
|
|
|
export default [
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**', 'api/**', 'data/**'],
|
|
},
|
|
{
|
|
files: ['**/*.{ts,vue}'],
|
|
languageOptions: {
|
|
parser: vueParser,
|
|
parserOptions: {
|
|
parser: tsParser,
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
plugins: {
|
|
vue: vuePlugin,
|
|
'@typescript-eslint': tsPlugin,
|
|
},
|
|
rules: {
|
|
...(vuePlugin.configs['vue3-recommended']?.rules ?? {}),
|
|
...(tsPlugin.configs.recommended?.rules ?? {}),
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
},
|
|
},
|
|
]
|
|
|