Skip to content

Commit

Permalink
Updated dependencies and eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Jarjour committed Aug 17, 2023
1 parent 53d86de commit 904c1e9
Show file tree
Hide file tree
Showing 10 changed files with 383 additions and 354 deletions.
11 changes: 6 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
"project": true
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["@typescript-eslint", "react", "no-relative-import-paths"],
"plugins": ["react", "no-relative-import-paths", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"prettier" // Ensure this is last as it disables conflicting rules.
],
"rules": {
// Javascript
"prefer-const": "warn",
"eqeqeq": ["warn", "always"],
"require-await": "warn",
"curly": "warn",
"no-console": "warn",
"no-debugger": "warn",
Expand All @@ -39,9 +40,9 @@
"rootDir": "src"
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],

// React
"react/react-in-jsx-scope": "off", // React >=v17 doesn't require React import
"react/no-unsafe": "error",
"react/no-redundant-should-component-update": "error",
"react/jsx-fragments": "warn",
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@
"@fontsource/roboto": "^5.0.8",
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.4",
"@mui/material": "^5.14.5",
"@nabla/vite-plugin-eslint": "^1.5.0",
"@tsconfig/vite-react": "^2.0.0",
"@types/node": "^20.4.9",
"@types/react": "^18.2.19",
"@types/node": "^20.5.0",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"@vitejs/plugin-react": "^4.0.4",
"eslint": "^8.46.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-no-relative-import-paths": "^1.5.2",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^3.0.1",
"lint-staged": "^14.0.0",
"prettier": "^3.0.2",
"prettier-plugin-pkg": "^0.18.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
Loading

0 comments on commit 904c1e9

Please sign in to comment.