2026-01-28 22:41:50 -08:00
|
|
|
import js from '@eslint/js'
|
|
|
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
|
|
|
import eslintConfigPrettier from 'eslint-config-prettier'
|
2026-01-29 01:23:34 -08:00
|
|
|
import globals from 'globals'
|
2026-01-28 22:41:50 -08:00
|
|
|
|
|
|
|
|
export default tseslint.config(
|
|
|
|
|
{ ignores: ['dist', 'node_modules'] },
|
|
|
|
|
js.configs.recommended,
|
|
|
|
|
...tseslint.configs.recommended,
|
2026-01-29 16:26:27 -08:00
|
|
|
{
|
|
|
|
|
rules: {
|
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
|
'error',
|
|
|
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-01-28 22:41:50 -08:00
|
|
|
...pluginVue.configs['flat/recommended'],
|
2026-01-29 01:23:34 -08:00
|
|
|
{
|
|
|
|
|
languageOptions: {
|
|
|
|
|
globals: {
|
|
|
|
|
...globals.browser,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-01-28 22:41:50 -08:00
|
|
|
{
|
|
|
|
|
files: ['**/*.vue'],
|
|
|
|
|
languageOptions: {
|
|
|
|
|
parserOptions: {
|
|
|
|
|
parser: tseslint.parser,
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-01-29 01:23:34 -08:00
|
|
|
rules: {
|
|
|
|
|
'vue/multi-word-component-names': 'off',
|
|
|
|
|
},
|
2026-01-28 22:41:50 -08:00
|
|
|
},
|
|
|
|
|
eslintConfigPrettier
|
|
|
|
|
)
|