Skip to content

Commit

Permalink
Introduce ESLint and modify the configuration file to solve some issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichiro committed May 30, 2024
1 parent 5b78968 commit 01db85a
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"es6": true,
"node": true,
"jest": true,
"jasmine": true
"jasmine": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["react", "prettier"],
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"scripts": {
"start": "vite",
"type-check": "tsc --noEmit",
"build": "yarn type-check && vite build",
"lint": "eslint src --ext .ts,.tsx",
"build": "yarn type-check && yarn lint && vite build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"format": "prettier --write './src/**/*.{ts,tsx}'",
Expand Down Expand Up @@ -100,6 +101,7 @@
"@typescript-eslint/parser": "^7.11.0",
"@vitejs/plugin-react": "^4.3.0",
"babel-eslint": "^10.1.0",
"eslint": "8.57.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.21.5",
Expand Down
Loading

0 comments on commit 01db85a

Please sign in to comment.