Skip to content

Commit de32b11

Browse files
committed
fix: Fixed eslint issues
1 parent c87fedb commit de32b11

File tree

14 files changed

+617
-36
lines changed

14 files changed

+617
-36
lines changed

.eslintrc.cjs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
module.exports = {
22
env: { browser: true, es2020: true },
3-
extends: [
4-
'eslint:recommended',
5-
'plugin:@typescript-eslint/recommended',
6-
'plugin:react-hooks/recommended',
7-
],
8-
parser: '@typescript-eslint/parser',
9-
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
10-
plugins: ['react-refresh'],
3+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react/recommended", "plugin:react-hooks/recommended"],
4+
parser: "@typescript-eslint/parser",
5+
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
6+
plugins: ["react-refresh"],
117
rules: {
12-
'react-refresh/only-export-components': 'warn',
8+
"react-refresh/only-export-components": "warn",
9+
"react/react-in-jsx-scope": "off",
10+
"react/jsx-no-target-blank": "off",
1311
},
14-
}
12+
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"adm-zip": "^0.5.10",
5050
"autoprefixer": "^10.4.14",
5151
"eslint": "^8.43.0",
52+
"eslint-plugin-react": "^7.32.2",
5253
"eslint-plugin-react-hooks": "^4.6.0",
5354
"eslint-plugin-react-refresh": "^0.4.1",
5455
"postcss": "^8.4.24",

0 commit comments

Comments
 (0)