Skip to content

Commit 03fa224

Browse files
committed
Run 'npm i eslint eslint-plugin-react --save-dev', install proptypes, add eslintrc
1 parent 9e4dae5 commit 03fa224

File tree

3 files changed

+47
-5
lines changed

3 files changed

+47
-5
lines changed

.eslintrc.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"jest": true
6+
},
7+
"extends": ["eslint:recommended", "plugin:react/recommended"],
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
},
12+
"ecmaVersion": 12,
13+
"sourceType": "module"
14+
},
15+
"plugins": ["react"],
16+
"rules": {
17+
"quotes": ["error", "double"],
18+
"react/require-default-props": 2
19+
}
20+
}

package-lock.json

+22-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"@testing-library/jest-dom": "^5.16.5",
77
"@testing-library/react": "^13.4.0",
88
"@testing-library/user-event": "^13.5.0",
9+
"prop-types": "^15.8.1",
910
"react": "^18.2.0",
1011
"react-dom": "^18.2.0",
1112
"react-scripts": "5.0.1",
@@ -34,5 +35,9 @@
3435
"last 1 firefox version",
3536
"last 1 safari version"
3637
]
38+
},
39+
"devDependencies": {
40+
"eslint": "^8.32.0",
41+
"eslint-plugin-react": "^7.32.1"
3742
}
3843
}

0 commit comments

Comments
 (0)