Skip to content

Commit

Permalink
Disabled Lint error for no-undef
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedalatawi committed Nov 9, 2024
1 parent 161f22c commit 6b4f209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default [
{
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
},
{ languageOptions: { globals: globals.browser } },
{ languageOptions: { globals: { ...globals.browser, ...globals.jest } } },
{
ignores: ['src/generated/**/*', 'dist/**/*'],
},
Expand Down
6 changes: 2 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ts-expect-error fix this later
const config = {
/* eslint-disable no-undef */
module.exports = {
testEnvironment: 'jsdom',
transform: {
'^.+\\.tsx?$': 'ts-jest',
Expand All @@ -12,5 +12,3 @@ const config = {

setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
}

export default config

0 comments on commit 6b4f209

Please sign in to comment.