20 lines
502 B
JavaScript
20 lines
502 B
JavaScript
import js from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
import eslintConfigPrettier from 'eslint-config-prettier'
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ['dist', 'node_modules'] },
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...pluginVue.configs['flat/recommended'],
|
|
{
|
|
files: ['**/*.vue'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: tseslint.parser,
|
|
},
|
|
},
|
|
},
|
|
eslintConfigPrettier
|
|
)
|