Skip to content

Commit

Permalink
fix incorrect lint
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed May 8, 2024
1 parent 29cfcdf commit 7ed9418
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
env: { browser: true, es2022: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand Down
12 changes: 7 additions & 5 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "es2022",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["es2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"references": [
{
"path": "./tsconfig.node.json"
}
]
}

0 comments on commit 7ed9418

Please sign in to comment.