diff --git a/.eslintrc.json b/.eslintrc.json index 4e05f0c5..0c9a5f46 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,7 +8,8 @@ ], "extends": [ "eslint:recommended", - "plugin:@typescript-eslint/recommended" + "plugin:@typescript-eslint/recommended", + "plugin:inferno/recommended" ], "parser": "@typescript-eslint/parser", "parserOptions": { diff --git a/package.json b/package.json index a430314b..b88a251c 100644 --- a/package.json +++ b/package.json @@ -25,13 +25,13 @@ "emoji-short-name": "^2.0.0", "express": "~4.18.1", "i18next": "^21.8.14", - "inferno": "^7.4.11", - "inferno-create-element": "^7.4.11", + "inferno": "^8.0.3", + "inferno-create-element": "^8.0.3", "inferno-helmet": "^5.2.1", - "inferno-hydrate": "^7.4.11", + "inferno-hydrate": "^8.0.3", "inferno-i18next-dess": "^0.0.1", - "inferno-router": "^7.4.11", - "inferno-server": "^7.4.11", + "inferno-router": "^8.0.3", + "inferno-server": "^8.0.3", "isomorphic-cookie": "^1.2.4", "jwt-decode": "^3.1.2", "markdown-it": "^13.0.1", @@ -55,7 +55,7 @@ "@babel/plugin-proposal-decorators": "^7.18.9", "@babel/plugin-transform-runtime": "^7.18.9", "@babel/plugin-transform-typescript": "^7.18.8", - "@babel/preset-env": "7.18.9", + "@babel/preset-env": "7.19.1", "@babel/preset-typescript": "^7.18.6", "@babel/runtime": "^7.18.9", "@sniptt/monads": "^0.5.10", @@ -74,6 +74,7 @@ "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.7.1", "eslint": "^8.20.0", + "eslint-plugin-inferno": "^7.31.8", "eslint-plugin-prettier": "^4.2.1", "husky": "^8.0.1", "import-sort-style-module": "^6.0.0", @@ -95,7 +96,7 @@ "typescript": "^4.7.4", "webpack": "5.74.0", "webpack-cli": "^4.10.0", - "webpack-dev-server": "4.9.3", + "webpack-dev-server": "4.11.1", "webpack-node-externals": "^3.0.0" }, "engines": { diff --git a/src/shared/components/app/app.tsx b/src/shared/components/app/app.tsx index 72119a8d..960f6bad 100644 --- a/src/shared/components/app/app.tsx +++ b/src/shared/components/app/app.tsx @@ -42,7 +42,7 @@ export class App extends Component { none: <>, })} -
+
{routes.map(({ path, exact, component: C, ...rest }) => ( { render() { return ( -