Skip to content

Commit

Permalink
Upate PRs in config doc & upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Comeza committed Jul 17, 2024
1 parent fc067e5 commit db0e083
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 38 deletions.
Binary file modified liberica/bun.lockb
Binary file not shown.
28 changes: 18 additions & 10 deletions liberica/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ import globals from "globals";
import eslintJs from "@eslint/js";
import tseslint from "typescript-eslint";

/* import eslintPluginReact from "eslint-plugin-react";
* import eslintPluginReactHooks from "eslint-plugin-react-hooks";
* import eslintPluginReactRefresh from "eslint-plugin-react-refresh";
*/ import eslintPlugini18next from "eslint-plugin-i18next";

// Prettier
import eslintPluginPrettier from "eslint-plugin-prettier/recommended"
import eslintConfigPrettier from "eslint-config-prettier"
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
import eslintConfigPrettier from "eslint-config-prettier";

/* Currently some React related plugins are still not supported:
*
Expand All @@ -15,7 +20,8 @@ import eslintConfigPrettier from "eslint-config-prettier"
*
* For more information see the corresponding PRs:
* - https://github.com/jsx-eslint/eslint-plugin-react/pull/3743
* - https://github.com/edvardchen/eslint-plugin-i18next/pull/120
* - https://github.com/edvardchen/eslint-plugin-i18next/pull/126
* - https://github.com/facebook/react/pull/29770
*/

/** @type {import("eslint").Config} */
Expand All @@ -26,23 +32,25 @@ export default [
globals: globals.browser,
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname
}
}
tsconfigRootDir: import.meta.dirname,
},
},
},

eslintJs.configs.recommended,

// eslintPluginReact.configs.recommended,
// eslintPlugini18next.configs.recommended,

eslintPluginPrettier,
eslintConfigPrettier, // disables some rules that cause conflicts

...tseslint.configs.strictTypeChecked, // strict is a superset of recommended
...tseslint.configs.stylistic,


{
rules: {
"@typescript-eslint/no-confusing-void-expression": "off"
}
}
"@typescript-eslint/no-confusing-void-expression": "off",
},
},
];
56 changes: 28 additions & 28 deletions liberica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,44 @@
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.6.2",
"i18next": "^23.7.11",
"i18next-browser-languagedetector": "^7.2.0",
"axios": "^1.7.2",
"i18next": "^23.12.1",
"i18next-browser-languagedetector": "^8.0.0",
"leaflet": "^1.9.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^14.1.1",
"react-i18next": "^15.0.0",
"react-icons": "^5.2.1",
"react-leaflet": "^4.2.1",
"react-router-dom": "^6.23.1",
"react-router-dom": "^6.25.1",
"runtypes": "^6.7.0",
"use-interval": "^1.4.0"
},
"devDependencies": {
"@eslint/js": "^9.2.0",
"@types/leaflet": "^1.9.8",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.16",
"eslint": "^9.2.0",
"@eslint/js": "^9.7.0",
"@types/leaflet": "^1.9.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"autoprefixer": "^10.4.19",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-i18next": "^6.0.3",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"globals": "^15.2.0",
"postcss": "^8.4.31",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"typescript-eslint": "^7.9.0",
"vite": "^5.0.10",
"vite-tsconfig-paths": "^4.2.1"
"eslint-plugin-i18next": "^6.0.9",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.34.4",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.8",
"globals": "^15.8.0",
"postcss": "^8.4.39",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.6",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.1",
"vite": "^5.3.4",
"vite-tsconfig-paths": "^4.3.2"
},
"packageManager": "[email protected]"
}

0 comments on commit db0e083

Please sign in to comment.