Skip to content

Commit

Permalink
Make approach more consistent with alveusgg
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Andrade committed Dec 16, 2024
1 parent 8829ee4 commit 87acf47
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 95 deletions.
21 changes: 14 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
// @ts-check
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import reactPlugin from "eslint-plugin-react";
import prettiereslint from "eslint-config-prettier";

export default [
eslint.configs.recommended,
export default tseslint.config(
{
name: "eslint/recommended",
...eslint.configs.recommended,
},
...tseslint.configs.recommended,
pluginReact.configs.flat?.recommended,
eslintPluginPrettierRecommended,
// @ts-expect-error - incorrect types
reactPlugin.configs.flat.recommended,
{
name: "prettier/config",
...prettiereslint,
},
{
languageOptions: {
parserOptions: {
Expand All @@ -30,4 +37,4 @@ export default [
"react/react-in-jsx-scope": "off",
},
},
];
);
94 changes: 7 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"devDependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"@types/dotenv-webpack": "^7.0.8",
"@types/eslint-config-prettier": "^6.11.3",
"@types/node": "~20.17.9",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
Expand All @@ -44,7 +45,6 @@
"dotenv-webpack": "^8.1.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"html-webpack-plugin": "^5.6.3",
Expand Down

0 comments on commit 87acf47

Please sign in to comment.