Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bdanzer committed Apr 15, 2024
1 parent e6348a5 commit 2182954
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 135 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
"browser": true
},
"parserOptions": {
"parser": "typescript-eslint-parser",
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["typescript"],
"settings": { "react": { "version": "18.2" } },
"rules": {
"no-duplicate-imports": "warn",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-typescript": "^0.14.0",
"eslint-plugin-vitest-globals": "^1.5.0",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"typescript-eslint-parser": "^22.0.0",
"vite": "^5.2.8",
"vite-plugin-pwa": "^0.19.8",
"vite-plugin-svgr": "^4.2.0",
Expand All @@ -46,7 +48,7 @@
"preview": "vite preview",
"prepare": "husky",
"coverage": "vitest run --coverage",
"eslint-check": "eslint src/**/*.{ts,tsx}",
"eslint-check": "eslint . --ext .tsx,.ts",
"fix-prettier": "npx eslint src/**/*.{ts,tsx} --fix"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit 2182954

Please sign in to comment.