Skip to content

Commit

Permalink
Broken eslint, waiting plugins support v9
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxuanjun committed Apr 7, 2024
1 parent 104b471 commit 93a2c57
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 565 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs → .eslintrc.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
extends: [
'eslint:recommended',
'plugin:react/recommended'
Expand Down
11 changes: 8 additions & 3 deletions farm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ export default defineConfig({
'@': resolve(process.cwd(), './src')
},
},
partialBundling: {
enforceTargetMinSize: true,
targetConcurrentRequests: 10,
targetMinSize: 200 * 1024
},
output: {
targetEnv: 'browser-esnext',
filename: '[ext]/[resourceName].[ext]',
assetsFilename: '[ext]/[resourceName].[ext]'
entryFilename: '[entryName].[contentHash].[ext]',
filename: '[ext]/[resourceName].[contentHash].[ext]',
assetsFilename: '[ext]/[resourceName].[contentHash].[ext]'
},
comments: false,
sourcemap: false
},
envPrefix: ['MIRROR_']
Expand Down
4 changes: 2 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pre-commit:
commands:
tsc:
run: node_modules/.bin/tsc
eslint:
run: node_modules/.bin/eslint src --fix
# eslint:
# run: node_modules/.bin/eslint src --fix
autocorrect:
run: node src/tools/autocorrect src/**/*.md
33 changes: 15 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,29 @@
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",
"@emotion/styled": "^11.11.5",
"@farmfe/cli": "^1.0.0",
"@farmfe/core": "^1.0.0",
"@farmfe/core": "^1.0.13",
"@farmfe/plugin-react": "^1.0.0",
"@fontsource/roboto": "^5.0.12",
"@mui/material": "^5.15.14",
"@mui/styles": "^5.15.14",
"@tanstack/react-query": "^5.28.9",
"@mui/material": "^5.15.15",
"@mui/styles": "^5.15.15",
"@tanstack/react-query": "^5.29.0",
"@tanstack/react-virtual": "^3.2.0",
"@types/markdown-it": "^13.0.7",
"@types/node": "^20.11.30",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vitejs/plugin-react-swc": "^3.6.0",
"@types/markdown-it": "^14.0.0",
"@types/node": "^20.12.5",
"@types/react": "^18.2.74",
"@types/react-dom": "^18.2.24",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"autocorrect-node": "^2.9.0",
"clsx": "^2.1.0",
"core-js": "^3.36.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"glob": "^10.3.10",
"lefthook": "^1.6.7",
"glob": "^10.3.12",
"lefthook": "^1.6.8",
"markdown-it": "^14.1.0",
"markdown-it-prism": "^2.3.0",
"mdi-material-ui": "^7.8.0",
Expand All @@ -45,12 +44,10 @@
"react-dom": "^18.2.0",
"react-refresh": "^0.14.0",
"react-router-dom": "^6.22.3",
"rollup-plugin-visualizer": "^5.12.0",
"terser": "^5.30.0",
"terser": "^5.30.3",
"timeago.js": "^4.0.2",
"typeface-roboto": "^1.1.13",
"typescript": "^5.4.3",
"vite": "^5.2.6",
"typescript": "^5.4.4",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-svgr": "^4.2.0"
}
Expand Down
Loading

0 comments on commit 93a2c57

Please sign in to comment.