diff --git a/config/lint/eslint.config.mjs b/config/lint/eslint.config.mjs index f187827..c664808 100644 --- a/config/lint/eslint.config.mjs +++ b/config/lint/eslint.config.mjs @@ -61,46 +61,24 @@ const style = { } } -/** @type {import('eslint').Linter.FlatConfig[]} */ +/** @type {import('eslint').Linter.Config} */ export default tseslint.config( // Base JavaScript rules eslint.configs.recommended, - ...tseslint.configs.recommended, + tseslint.configs.recommended, style, - // TypeScript support - // { - // files: ['**/*.ts', '**/*.tsx'], - // languageOptions: { - // parser: parserTs, - // parserOptions: { - // ecmaVersion: 'latest', - // sourceType: 'module', - // project: './tsconfig.json', - // ecmaFeatures: { - // jsx: true, - // }, - // }, - // }, - // plugins: { - // '@typescript-eslint': typescript, - // }, - // rules: { - // ...typescript.configs.recommended.rules, - // ...style.rules, - // }, - // }, - // Vue support (including TS and JSX inside SFCs) { files: ['**/*.vue'], - extends: [ - 'plugin: vue/recommended' - ], plugins: { - 'vue-eslint-parser': vue, + 'vue': vue, '@typescript-eslint': typescript, }, + extends: [ + eslint.configs.recommended, + ...vue.configs['flat/recommended'] + ], rules: { ...typescript.configs.recommended.rules, ...style.rules, @@ -111,7 +89,7 @@ export default tseslint.config( 'vue/script-indent': ['error', 4], 'vue/max-attributes-per-line': ['error', { singleline: 3, - multiline: { max: 1, allowFirstLine: false }, + multiline: 1, }], }, },