Skip to content

Commit

Permalink
Upgrade dependencies (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Oct 7, 2024
1 parent f35107f commit a74fb8b
Show file tree
Hide file tree
Showing 15 changed files with 2,257 additions and 2,101 deletions.
37 changes: 0 additions & 37 deletions .eslintrc

This file was deleted.

74 changes: 74 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import react from "eslint-plugin-react";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...fixupConfigRules(
compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
),
),
{
plugins: {
react: fixupPluginRules(react),
"@typescript-eslint": fixupPluginRules(typescriptEslint),
},

languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: "module",

parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},

settings: {
react: {
version: "detect",
},
},

rules: {
"react/react-in-jsx-scope": "off",

"react/no-unknown-property": [
"error",
{
ignore: ["css"],
},
],

"no-constant-condition": "off",

"no-restricted-imports": [
"warn",
{
paths: ["@emotion/styled/macro", "@emotion/react/macro", "lodash"],
},
],

"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "none" }],
},
},
];
79 changes: 41 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,53 @@
"packageManager": "[email protected]+sha256.9551e803dcb7a1839fdf5416153a844060c7bce013218ce823410532504ac10b",
"dependencies": {
"@color-spaces/convert": "^1.3.1",
"@emotion/css": "^11.11.2",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@floating-ui/react": "^0.26.13",
"@floating-ui/react-dom": "^2.0.9",
"@emotion/css": "^11.13.4",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@floating-ui/react": "^0.26.24",
"@floating-ui/react-dom": "^2.1.2",
"@fortawesome/fontawesome-pro": "^5.15.4",
"@fortawesome/fontawesome-svg-core": "~1.2.36",
"@fortawesome/pro-duotone-svg-icons": "^5.15.4",
"@fortawesome/pro-light-svg-icons": "^5.15.4",
"@fortawesome/pro-regular-svg-icons": "^5.15.4",
"@fortawesome/pro-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.19",
"@reduxjs/toolkit": "^2.2.4",
"@vitejs/plugin-react": "^4.2.1",
"axios": "^1.6.8",
"axios-retry": "^4.1.0",
"chroma-js": "^2.4.2",
"date-fns": "^3.6.0",
"date-fns-tz": "^3.1.3",
"@reduxjs/toolkit": "^2.2.7",
"@vitejs/plugin-react": "^4.3.2",
"axios": "^1.7.7",
"axios-retry": "^4.5.0",
"chroma-js": "^3.1.1",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"detect-browser": "^5.3.0",
"emotion": "^11.0.0",
"fast-xml-parser": "^4.3.6",
"fast-xml-parser": "^4.5.0",
"geolib": "^3.3.4",
"gsl-parser": "^3.0.1",
"i18next": "^23.11.4",
"i18next": "^23.15.2",
"i18next-browser-languagedetector": "^8.0.0",
"iso8601-duration": "^2.1.2",
"leaflet": "^1.9.4",
"linkify-html": "^4.1.3",
"linkify-react": "^4.1.3",
"linkifyjs": "^4.1.3",
"lodash": "^4.17.21",
"metar-taf-parser": "^9.0.0",
"metar-taf-parser": "^9.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^14.1.1",
"react-intersection-observer": "^9.10.2",
"react-i18next": "^15.0.2",
"react-intersection-observer": "^9.13.1",
"react-leaflet": "^4.2.1",
"react-page-visibility": "^7.0.0",
"react-redux": "^9.1.2",
"react-router": "^6.23.1",
"react-router-dom": "^6.23.1",
"react-router": "^6.26.2",
"react-router-dom": "^6.26.2",
"react-spring-bottom-sheet": "^3.4.1",
"react-string-replace": "^1.1.1",
"react-transition-group": "^4.4.5",
"suncalc": "^1.9.0",
"typescript": "^5.4.5",
"typescript": "^5.6.2",
"velitherm": "^1.2.0"
},
"scripts": {
Expand Down Expand Up @@ -84,35 +84,38 @@
]
},
"devDependencies": {
"@emotion/babel-plugin": "^11.11.0",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@emotion/babel-plugin": "^11.12.0",
"@eslint/compat": "^1.2.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/chroma-js": "^2.4.4",
"@types/geojson": "^7946.0.14",
"@types/leaflet": "^1.9.12",
"@types/lodash": "^4.17.1",
"@types/react": "^18.3.2",
"@types/lodash": "^4.17.10",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@types/react-page-visibility": "^6.4.4",
"@types/react-transition-group": "^4.4.10",
"@types/react-transition-group": "^4.4.11",
"@types/smoothscroll-polyfill": "^0.3.4",
"@types/suncalc": "^1.9.2",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.8.0",
"eslint": "^9.12.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-testing-library": "^6.2.2",
"happy-dom": "^14.10.1",
"prettier": "^3.2.5",
"pwa-asset-generator": "^6.3.1",
"eslint-plugin-testing-library": "^6.3.0",
"happy-dom": "^15.7.4",
"prettier": "^3.3.3",
"pwa-asset-generator": "^6.3.2",
"source-map-explorer": "^2.5.3",
"vite": "^5.2.11",
"vite": "^5.4.8",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-pwa": "^0.20.0",
"vite-plugin-pwa": "^0.20.5",
"vite-plugin-svgr": "^4.2.0",
"vitest": "^1.6.0"
"vitest": "^2.1.2"
}
}
Loading

0 comments on commit a74fb8b

Please sign in to comment.