Skip to content

Commit e43a215

Browse files
committed
ADD: ESLint;
Signed-off-by: HarmonySkull <[email protected]>
1 parent 5fca21c commit e43a215

File tree

3 files changed

+1241
-51
lines changed

3 files changed

+1241
-51
lines changed

.eslintrc.json

Lines changed: 36 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,38 @@
11
{
2-
"env": {
3-
"node": true,
4-
"es2021": true,
5-
"browser": true
6-
},
7-
"extends": [
8-
"eslint:recommended",
9-
"plugin:react/recommended",
10-
"plugin:prettier/recommended",
11-
"plugin:@typescript-eslint/recommended"
12-
],
13-
"parser": "@typescript-eslint/parser",
14-
"parserOptions": {
15-
"ecmaFeatures": {
16-
"jsx": true
17-
},
18-
"sourceType": "module",
19-
"ecmaVersion": "latest"
20-
},
21-
"plugins": [
22-
"react",
23-
"@typescript-eslint"
24-
],
25-
"rules": {
26-
"prettier/prettier": [
27-
"error",
28-
{
29-
"endOfLine": "auto"
30-
},
31-
{
32-
"usePrettierrc": true
33-
}
34-
],
35-
"@typescript-eslint/ban-types": [
36-
"error",
37-
{
38-
"extendDefaults": true,
39-
"types": {
40-
"{}": false
41-
}
42-
}
43-
],
44-
"react/react-in-jsx-scope": "off"
45-
}
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:react/recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"ecmaFeatures": {
15+
"jsx": true
16+
},
17+
"ecmaVersion": "latest",
18+
"sourceType": "module"
19+
},
20+
"plugins": [
21+
"react",
22+
"prettier",
23+
"@typescript-eslint"
24+
],
25+
"rules": {
26+
"@typescript-eslint/no-non-null-assertion": "off",
27+
"prettier/prettier": [
28+
"error",
29+
{
30+
"endOfLine": "auto"
31+
},
32+
{
33+
"usePrettierrc": true
34+
}
35+
],
36+
"react/react-in-jsx-scope": "off"
37+
}
4638
}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"@typescript-eslint/parser": "^5.30.6",
2424
"@vitejs/plugin-react": "^2.0.0",
2525
"autoprefixer": "^10.4.7",
26+
"eslint": "^8.19.0",
27+
"eslint-config-prettier": "^8.5.0",
28+
"eslint-plugin-prettier": "^4.2.1",
29+
"eslint-plugin-react": "^7.30.1",
2630
"postcss": "^8.4.14",
2731
"prettier": "2.7.1",
2832
"tailwindcss": "^3.1.6",

0 commit comments

Comments
 (0)