@@ -97,19 +97,15 @@ export default tseslint.config(
9797 parserOptions : {
9898 ecmaVersion : 2018 ,
9999 sourceType : "module" ,
100- projectService : true ,
100+ projectService : {
101+ allowDefaultProject : [ 'jest.config.js' ] ,
102+ } ,
101103 tsconfigRootDir : import . meta. dirname ,
102- project : resolve ( __dirname , "tsconfig.lint.json" ) ,
103104 } ,
104105 } ,
105106 } ,
106107 {
107108 files : [ "src/stories/**/*" ] ,
108- languageOptions : {
109- parserOptions : {
110- project : resolve ( __dirname , "src/stories/tsconfig.json" ) ,
111- } ,
112- } ,
113109 extends : [
114110 react . configs . flat . recommended ,
115111 react . configs . flat [ 'jsx-runtime' ] ,
@@ -129,11 +125,6 @@ export default tseslint.config(
129125 } ,
130126 {
131127 files : [ "src/view/**/*" ] ,
132- languageOptions : {
133- parserOptions : {
134- project : resolve ( __dirname , "src/view/tsconfig.json" ) ,
135- } ,
136- } ,
137128 extends : [
138129 react . configs . flat . recommended ,
139130 react . configs . flat [ 'jsx-runtime' ] ,
@@ -167,9 +158,6 @@ export default tseslint.config(
167158 {
168159 files : [ "test/vscode-tests/**/*" ] ,
169160 languageOptions : {
170- parserOptions : {
171- project : resolve ( __dirname , "test/tsconfig.json" ) ,
172- } ,
173161 globals : {
174162 jest : true ,
175163 } ,
@@ -183,9 +171,6 @@ export default tseslint.config(
183171 {
184172 files : [ "test/**/*" ] ,
185173 languageOptions : {
186- parserOptions : {
187- project : resolve ( __dirname , "test/tsconfig.json" ) ,
188- } ,
189174 globals : {
190175 jest : true ,
191176 } ,
@@ -202,11 +187,6 @@ export default tseslint.config(
202187 } ,
203188 {
204189 files : [ ".storybook/**/*" , "src/stories/**/*" ] ,
205- languageOptions : {
206- parserOptions : {
207- project : resolve ( __dirname , ".storybook/tsconfig.json" ) ,
208- } ,
209- } ,
210190 rules : {
211191 // Storybook doesn't use the automatic JSX runtime in the addon yet, so we need to allow
212192 // `React` to be imported.
0 commit comments