Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Dec 14, 2024
1 parent 9d9dcb2 commit 658613d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,14 @@ module.exports = {
'unicorn/prefer-node-protocol': 'error',
'import-x/no-unresolved': [
'error',
{ ignore: ['^node:', '\\.svg\\?react$', 'vitest/config'] },
{
ignore: [
'^node:',
'\\.svg\\?react$',
'vitest/config',
'./vite.config.mjs',
],
},
],
'no-extra-boolean-cast': [
'error',
Expand Down Expand Up @@ -430,6 +437,7 @@ module.exports = {
'**/tests/**',
'test.config.js',
'vitest.config.mts',
'setup-files.ts',
],
rules: {
'import-x/no-extraneous-dependencies': 'off',
Expand Down
4 changes: 3 additions & 1 deletion packages/graphiql-react/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import packageJSON from './package.json';
const ReactCompilerConfig = {
target: '17',
sources(filename) {
if (filename.includes('__tests__')) return false;
if (filename.includes('__tests__')) {
return false;
}
return filename.includes('graphiql-react');
},
};
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql-react/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { defineConfig } from 'vitest/config';
import { plugins } from './vite.config.mjs';

export default defineConfig({
plugins,
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./setup-files.ts'],
},
plugins,
});
3 changes: 1 addition & 2 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
"packages/*/vite.config.mts",
"packages/*/vitest.config.mts",
"examples/*/vite.config.ts",
"packages/graphiql/setup-files.ts",
"packages/*/setup-files.ts",
"packages/graphiql/src/*.spec.tsx",
"packages/cm6-graphql/__tests__/**/*.ts",
"packages/graphql-language-service/benchmark/index.ts",
"packages/graphiql/cypress.config.ts",
"packages/graphiql/__mocks__/codemirror.ts",
"packages/monaco-graphql/test/*.test.ts",
"packages/graphiql-react/vite.config.d.ts",
"packages/vscode-graphql-syntax/tests/**/*.ts",
"packages/vscode-graphql-syntax/serializer.ts"
]
Expand Down

0 comments on commit 658613d

Please sign in to comment.