Skip to content

Commit c69d35a

Browse files
committed
update
1 parent 7b78c1b commit c69d35a

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.eslintrc.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
{
2-
"extends": "react-app"
2+
"extends": "react-app",
3+
"rules": {
4+
"react/react-in-jsx-scope": "off",
5+
"react/display-name": "off",
6+
"react/prop-types": "off",
7+
"react/jsx-key": "error",
8+
"no-console": 1,
9+
"no-unused-vars": "off",
10+
"@typescript-eslint/no-unused-vars": "error"
11+
}
312
}

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc && vite build",
9-
"preview": "vite preview"
9+
"preview": "vite preview",
10+
"start": "npm run build && vite preview",
11+
"lint": "eslint --ext .ts,.tsx src --color",
12+
"format": "prettier --write \"./src/**/*.{ts,tsx,json}\"",
13+
"prepare": "husky install"
1014
},
1115
"dependencies": {
1216
"react": "^18.2.0",
@@ -16,9 +20,15 @@
1620
"@types/node": "^18.11.11",
1721
"@types/react": "^18.0.24",
1822
"@types/react-dom": "^18.0.8",
23+
"@typescript-eslint/eslint-plugin": "^5.48.1",
24+
"@typescript-eslint/parser": "^5.48.1",
1925
"@vitejs/plugin-react": "^2.2.0",
2026
"eslint": "^8.31.0",
2127
"eslint-config-react-app": "^7.0.1",
28+
"husky": "^8.0.0",
29+
"lint-staged": "^13.1.0",
30+
"prettier": "^2.8.2",
31+
"sass": "^1.57.1",
2232
"typescript": "^4.6.4",
2333
"vite": "^3.2.3",
2434
"vite-plugin-checker": "^0.5.1",

0 commit comments

Comments
 (0)