@@ -22,7 +22,6 @@ import js from "@eslint/js";
2222import json from "@eslint/json" ;
2323import markdown from "@eslint/markdown" ;
2424
25- // eslint-disable-next-line import/no-unresolved
2625import { defineConfig , globalIgnores } from "eslint/config" ;
2726import importPlugin from "eslint-plugin-import" ;
2827import jest from "eslint-plugin-jest" ;
@@ -31,7 +30,6 @@ import prettier from "eslint-plugin-prettier/recommended";
3130import react from "eslint-plugin-react" ;
3231import hooks from "eslint-plugin-react-hooks" ;
3332import globals from "globals" ;
34- // eslint-disable-next-line import/no-unresolved
3533import tseslint from "typescript-eslint" ;
3634
3735const typedLinting = {
@@ -82,42 +80,7 @@ export default defineConfig([
8280 } ,
8381 // TS config
8482 ...tseslint . configs . recommended ,
85- importPlugin . flatConfigs . recommended ,
86- {
87- languageOptions : {
88- parserOptions : {
89- projectService : true ,
90- tsconfigRootDir : import . meta. dirname ,
91- } ,
92- } ,
93- rules : {
94- "@typescript-eslint/no-floating-promises" : "error" ,
95- "@typescript-eslint/no-empty-function" : [
96- "error" ,
97- {
98- allow : [ "arrowFunctions" ] ,
99- } ,
100- ] ,
101- "@typescript-eslint/consistent-type-imports" : [
102- "error" ,
103- {
104- prefer : "type-imports" ,
105- } ,
106- ] ,
107- "@typescript-eslint/return-await" : [ "error" , "in-try-catch" ] ,
108- } ,
109- // Lint imports based on TS module resolution.
110- extends : [ importPlugin . flatConfigs . typescript ] ,
111- files : [ "**/*.ts" , "**/*.tsx" ] ,
112- // This avoids requiring a dedicated tsconfig.eslint.json file in every repo.
113- ignores : [
114- "**/*.test.ts" ,
115- "**/*.mock*.ts" ,
116- "**/jest.setup.ts" ,
117- "**/e2e.playwright.ts" ,
118- "**/globalSetup.ts" ,
119- ] ,
120- } ,
83+ typedLinting ,
12184 // React config
12285 {
12386 plugins : {
@@ -218,6 +181,7 @@ export default defineConfig([
218181
219182export const ignoreTypedLinting = ( paths ) => {
220183 paths . forEach ( ( path ) => {
184+ console . log ( "Ignoring " + path ) ;
221185 typedLinting . ignores . push ( path ) ;
222186 } ) ;
223187} ;
0 commit comments