[Eslint] Fix config
This commit is contained in:
		| @@ -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, | ||||
|             }], | ||||
|         }, | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user