@@ -167,9 +167,8 @@ module.exports = {
167167 '@typescript-eslint/no-unused-vars' : [
168168 'error' ,
169169 {
170- varsIgnorePattern : '^React$' ,
170+ varsIgnorePattern : '^( React|_)' , // allow underscores in destructuring
171171 argsIgnorePattern : '^_' ,
172- ignoreRestSiblings : true ,
173172 } ,
174173 ] ,
175174
@@ -356,7 +355,8 @@ module.exports = {
356355 'unicorn/prefer-dom-node-text-content' : 'error' ,
357356 quotes : [ 'error' , 'single' , { avoidEscape : true } ] , // Matches Prettier, but also replaces backticks with single quotes
358357 // TODO: Fix all errors for the following rules included in recommended config
359- '@typescript-eslint/no-var-requires' : 'off' ,
358+ '@typescript-eslint/no-require-imports' : 'off' ,
359+ 'import-x/no-named-as-default-member' : 'off' ,
360360 } ,
361361 } ,
362362 {
@@ -372,6 +372,9 @@ module.exports = {
372372 '@typescript-eslint/consistent-type-assertions' : 'error' ,
373373 '@typescript-eslint/no-duplicate-type-constituents' : 'error' ,
374374 // TODO: Fix all errors for the following rules included in recommended config
375+ '@typescript-eslint/no-deprecated' : 'off' ,
376+ '@typescript-eslint/no-unsafe-function-type' : 'off' ,
377+
375378 '@typescript-eslint/no-explicit-any' : 'off' ,
376379 '@typescript-eslint/no-non-null-assertion' : 'off' ,
377380 '@typescript-eslint/ban-ts-comment' : 'off' ,
@@ -381,12 +384,37 @@ module.exports = {
381384 '@typescript-eslint/no-namespace' : 'off' ,
382385 } ,
383386 parserOptions : {
384- project : [
385- 'packages/*/tsconfig.json' ,
386- 'examples/*/tsconfig.json' ,
387- 'packages/graphiql/cypress/tsconfig.json' ,
388- 'tsconfig.eslint.json' ,
389- ] ,
387+ projectService : {
388+ allowDefaultProject : [
389+ 'examples/monaco-graphql-react-vite/vite.config.ts' ,
390+ 'packages/*/vitest.config.mts' ,
391+ 'packages/*/vite.config.mts' ,
392+
393+ 'packages/cm6-graphql/__tests__/test.spec.ts' ,
394+ 'packages/graphiql-react/setup-files.ts' ,
395+ 'packages/graphiql/src/GraphiQL.spec.tsx' ,
396+ 'packages/vscode-graphql-syntax/tests/*.spec.ts' ,
397+ 'packages/graphql-language-service-cli/src/__tests__/*.test.ts' ,
398+ 'packages/monaco-graphql/test/monaco-editor.test.ts' ,
399+
400+ 'packages/codemirror-graphql/setup-files.ts' ,
401+ 'packages/codemirror-graphql/src/__tests__/testSchema.ts' ,
402+ 'packages/codemirror-graphql/src/__tests__/*.test.ts' ,
403+ 'packages/codemirror-graphql/src/{variables,utils,results}/__tests__/*.test.ts' ,
404+
405+ 'packages/graphql-language-service/benchmark/index.ts' ,
406+ 'packages/graphql-language-service/src/{utils,parser,interface}/__tests__/*.test.ts' ,
407+ 'packages/graphql-language-service/src/parser/__tests__/OnlineParserUtils.ts' ,
408+
409+ 'packages/graphql-language-service-server/src/__tests__/*.{spec,test}.ts' ,
410+ 'packages/graphql-language-service-server/src/__tests__/__utils__/utils.ts' ,
411+ 'packages/graphql-language-service-server/src/__tests__/__utils__/MockProject.ts' ,
412+
413+ 'packages/vscode-graphql-syntax/tests/__utilities__/serializer.ts' ,
414+ 'packages/vscode-graphql-syntax/tests/__utilities__/utilities.ts' ,
415+ ] ,
416+ maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING : 100 ,
417+ } ,
390418 } ,
391419 } ,
392420 // Cypress plugin, global, etc., only for cypress directory
0 commit comments