35 lines
847 B
JavaScript
35 lines
847 B
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
import eslintConfigPrettier from 'eslint-config-prettier'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: ['dist', 'node_modules', 'tmp'],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...pluginVue.configs['flat/recommended'],
|
|
{
|
|
files: ['**/*.{ts,mts,tsx,vue}'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
extraFileExtensions: ['.vue'],
|
|
parser: tseslint.parser,
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
rules: {
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
},
|
|
},
|
|
eslintConfigPrettier,
|
|
)
|