29 lines
781 B
JavaScript
29 lines
781 B
JavaScript
import eslint from '@eslint/js'
|
|
import prettier from 'eslint-config-prettier'
|
|
import vue from 'eslint-plugin-vue'
|
|
import globals from 'globals'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ['dist', 'node_modules'] },
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...vue.configs['flat/recommended'],
|
|
{ languageOptions: { globals: { ...globals.browser } } },
|
|
{
|
|
files: ['**/*.vue'],
|
|
languageOptions: {
|
|
parser: vue.parser,
|
|
parserOptions: { parser: tseslint.parser, ecmaVersion: 'latest', sourceType: 'module' },
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
},
|
|
},
|
|
prettier,
|
|
)
|
|
|