Skip to content

Commit

Permalink
Closes #54
Browse files Browse the repository at this point in the history
Fix the eslint configuration for vitest.
  • Loading branch information
Sojusan committed Jul 6, 2023
1 parent 99e3e5a commit e807b0c
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
},
extends: [
"plugin:@typescript-eslint/recommended",
"airbnb",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:vitest/recommended",
],
globals: {
React: true,
JSX: true,
jest: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
Expand All @@ -23,7 +22,7 @@ module.exports = {
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "jest", "prettier"],
plugins: ["react", "@typescript-eslint", "vitest", "prettier"],
settings: {
"import/resolver": {
typescript: {},
Expand Down
270 changes: 270 additions & 0 deletions 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 @@ -40,6 +40,7 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-vitest": "^0.2.6",
"prettier": "^2.8.3",
"typescript": "^4.9.4",
"vitest": "^0.33.0"
Expand Down

0 comments on commit e807b0c

Please sign in to comment.