Skip to content

Commit

Permalink
fix jest lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aorin committed Dec 17, 2024
1 parent c21f7bd commit 742ccf6
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import js from "@eslint/js";
import reactPlugin from "eslint-plugin-react";
import securityPlugin from "eslint-plugin-security";
import cypressPlugin from "eslint-plugin-cypress/flat";
import jestPlugin from "eslint-plugin-jest";
import globals from "globals";

export default [
Expand All @@ -14,12 +15,14 @@ export default [
reactPlugin,
pluginSecurity: securityPlugin,
cypress: cypressPlugin,
jest: jestPlugin
},

languageOptions: {
globals: {
...globals.node,
...globals.browser,
...jestPlugin.environments.globals.globals,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
Expand Down
168 changes: 167 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-jest": "^28.9.0",
"globals": "^15.12.0"
}
}

0 comments on commit 742ccf6

Please sign in to comment.