Skip to content

Commit 06abb98

Browse files
authored
Merge pull request #19 from saminjay/eslint-fix
Fixed ESlint
2 parents 655bbd8 + a4a84ac commit 06abb98

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

eslint.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import globals from "globals";
33
import reactHooks from "eslint-plugin-react-hooks";
44
import reactRefresh from "eslint-plugin-react-refresh";
55
import tseslint from "typescript-eslint";
6-
import prettier from "eslint-plugin-prettier";
6+
import prettier from "eslint-plugin-prettier/recommended";
77

88
export default tseslint.config(
99
{ ignores: ["dist"] },
1010
{
1111
extends: [
1212
js.configs.recommended,
1313
...tseslint.configs.recommended,
14-
"plugin:prettier/recommended",
14+
prettier,
1515
],
1616
files: ["**/*.{ts,tsx}"],
1717
languageOptions: {
@@ -21,7 +21,6 @@ export default tseslint.config(
2121
plugins: {
2222
"react-hooks": reactHooks,
2323
"react-refresh": reactRefresh,
24-
prettier,
2524
},
2625
rules: {
2726
...reactHooks.configs.recommended.rules,

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"@eslint/js": "^9.11.1",
23+
"@types/eslint-plugin-react-refresh": "^0.4.0",
2324
"@types/react": "^18.3.10",
2425
"@types/react-dom": "^18.3.0",
2526
"@types/react-syntax-highlighter": "^15.5.13",

0 commit comments

Comments
 (0)