Skip to content

Commit

Permalink
Update eslint 9 libs
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Jun 12, 2024
1 parent 1bea58b commit f386d10
Show file tree
Hide file tree
Showing 16 changed files with 448 additions and 353 deletions.
2 changes: 2 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
routeTree.gen.ts
2 changes: 1 addition & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ deps:
pnpm install --frozen-lockfile

check-eslint:
pnpm run eslint:check
pnpm run eslint:check --ignore-pattern dist/

check-prettier:
pnpm prettier src/ --check
Expand Down
7 changes: 5 additions & 2 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
eslintPluginPrettierRecommended,
{
files: ['src/**/*.ts', 'eslint.config.js']
files: ['src/**/*.ts', 'src/**/*.tss', 'eslint.config.js'],
// Doesn't actually work? It's ignored via cli flag in the Makefile for now.
ignores: ['dist/']
}
);
22 changes: 10 additions & 12 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,26 @@
"@fontsource/roboto": "^5.0.13",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@tanstack/react-form": "^0.20.3",
"@tanstack/react-query": "^5.40.1",
"@tanstack/react-router": "^1.35.3",
"@tanstack/react-form": "^0.21.0",
"@tanstack/react-query": "^5.44.0",
"@tanstack/react-router": "^1.35.6",
"@tanstack/react-table": "^8.17.3",
"@tanstack/router-vite-plugin": "^1.34.8",
"@tanstack/zod-form-adapter": "^0.20.3",
"@tanstack/router-vite-plugin": "^1.35.4",
"@tanstack/zod-form-adapter": "^0.21.0",
"@types/jest": "^29.5.12",
"@types/loadable__component": "^5.13.9",
"@types/lodash": "^4.17.4",
"@types/lodash": "^4.17.5",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/steamid": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^8.0.0-alpha.10",
"@typescript-eslint/parser": "^7.12.0",
"@typescript-eslint/parser": "8.0.0-alpha.30",
"@vitejs/plugin-react-swc": "^3.7.0",
"browserslist": "^4.23.0",
"browserslist": "^4.23.1",
"date-fns": "^3.6.0",
"eslint": "^9.4.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-no-loops": "^0.3.0",
"eslint-plugin-prettier": "^5.1.3",
"i18next": "^23.11.5",
Expand All @@ -83,7 +81,7 @@
"js@latest": "link:eslint/js@latest",
"material-ui-popup-state": "^5.1.2",
"mui-nested-menu": "^3.4.0",
"prettier": "^3.3.1",
"prettier": "^3.3.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^14.1.2",
Expand All @@ -92,7 +90,7 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.12.0",
"typescript-eslint": "8.0.0-alpha.30",
"vite": "^5.2.13",
"vite-plugin-html": "^3.2.2",
"vite-tsconfig-paths": "^4.3.2",
Expand Down
Loading

0 comments on commit f386d10

Please sign in to comment.