Skip to content

Commit 2084ff3

Browse files
committed
fix: add eslint and fix eslint warnings
1 parent 886586d commit 2084ff3

File tree

7 files changed

+726
-23
lines changed

7 files changed

+726
-23
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc.cjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
extends: [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:react-hooks/recommended",
6+
"prettier",
7+
],
8+
parser: "@typescript-eslint/parser",
9+
root: true,
10+
}

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@
2727
"@testing-library/react": "^13.4.0",
2828
"@types/react": "^18.0.26",
2929
"@types/react-dom": "^18.0.9",
30+
"@typescript-eslint/eslint-plugin": "^5.47.0",
31+
"@typescript-eslint/parser": "^5.47.0",
3032
"@vitejs/plugin-react": "^2.2.0",
3133
"aplayer": "^1.10.1",
3234
"esbuild-plugin-svgr": "^1.0.1",
35+
"eslint": "^8.30.0",
36+
"eslint-config-prettier": "^8.5.0",
37+
"eslint-plugin-react-hooks": "^4.6.0",
3338
"happy-dom": "^8.1.0",
3439
"prettier": "2.5.1",
3540
"react": "^18.2.0",

0 commit comments

Comments
 (0)