Skip to content

Commit

Permalink
chore: ⬆️ Updated eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsadam committed Nov 6, 2024
1 parent 106b960 commit 4d984b3
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 442 deletions.
54 changes: 0 additions & 54 deletions src/main/webapp/.eslintrc.js

This file was deleted.

35 changes: 35 additions & 0 deletions src/main/webapp/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
{
languageOptions: {
globals: {
...globals.browser,
...globals.jest,
i18n: true,
__webpack_public_path__: true,
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
"react/prop-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": "off",
},
settings: {
react: {
version: "detect",
},
},
},
];
19 changes: 9 additions & 10 deletions src/main/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.20.1",
"@eslint/js": "^9.14.0",
"@types/lodash": "^4.14.182",
"@types/lodash.uniqby": "^4.7.7",
"@types/node": "^17.0.39",
Expand All @@ -90,21 +91,18 @@
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5",
"@types/styled-components": "^5.1.25",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"autoprefixer": "^10.4.4",
"babel-loader": "^8.2.4",
"babel-plugin-import": "^1.13.5",
"browserslist": "^4.20.2",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^3.4.1",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"expose-loader": "^3.1.0",
"eslint": "^9.14.0",
"eslint-plugin-react": "^7.37.2",
"expose-loader": "^5.0.0",
"globals": "^15.12.0",
"jest": "^27.5.1",
"less": "^4.1.2",
"less-loader": "^10.2.0",
Expand All @@ -113,13 +111,14 @@
"postcss-import": "^14.1.0",
"postcss-loader": "^6.2.1",
"postcss-preset-env": "^7.4.3",
"prettier": "^2.7.1",
"prettier": "^3.3.3",
"properties-reader": "^2.2.0",
"react-is": "^17.0.2",
"run-z": "^1.10.1",
"speed-measure-webpack-plugin": "^1.5.0",
"terser-webpack-plugin": "^5.3.1",
"typescript": "^4.7.2",
"typescript-eslint": "^8.13.0",
"webpack": "^5.72.0",
"webpack-assets-manifest": "^5.1.0",
"webpack-cli": "^4.9.2"
Expand Down
Loading

0 comments on commit 4d984b3

Please sign in to comment.