import pluginVue from 'eslint-plugin-vue'
import neostandard, { plugins } from 'neostandard'
+// export default plugins['typescript-eslint'].config({
+// files: ['** /*.ts'],
+// extends: [
+// eslint.configs.recommended,
+// ...plugins['typescript-eslint'].configs.recommended,
+// ],
+// rules: {
+// '@typescript-eslint/array-type': 'error',
+// '@typescript-eslint/consistent-type-imports': 'error',
+// },
+// languageOptions: {
+// parserOptions: {
+// projectService: true,
+// tsconfigRootDir: import.meta.dirname,
+// },
+// },
+// })
+
export default defineFlatConfig([
{
ignores: ['**/dist/**'],
},
},
},
- ...plugins['typescript-eslint'].config(
- {
- files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'],
- extends: [
- ...plugins['typescript-eslint'].configs.strictTypeChecked,
- ...plugins['typescript-eslint'].configs.stylisticTypeChecked,
- ],
- },
- {
- files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
- languageOptions: {
- parserOptions: {
- projectService: true,
- tsconfigRootDir: import.meta.dirname,
- },
+ ...plugins['typescript-eslint'].config({
+ files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'],
+ extends: [
+ ...plugins['typescript-eslint'].configs.strictTypeChecked,
+ ...plugins['typescript-eslint'].configs.stylisticTypeChecked,
+ ],
+ languageOptions: {
+ parserOptions: {
+ projectService: true,
+ tsconfigRootDir: import.meta.dirname,
},
- }
- ),
+ },
+ }),
{
files: ['**/*.js', '**/*.mjs', '**/*.cjs'],
...plugins['typescript-eslint'].configs.disableTypeChecked,