Skip to content

Commit 364f50d

Browse files
committed
example to move to devDependencies
1 parent ee42bd7 commit 364f50d

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Designed to be used in VSCode and comes with workspace settings in `.vscode/sett
1212

1313
Replace `my-app` with the name of your application
1414

15+
After install, modify `package.json` by moving all eslint dependencies into devDependencies like in `example.package.json`.
16+
1517
For more information, please refer to:
1618

1719
- [Getting Started](https://create-react-app.dev/docs/getting-started) – How to create a new app.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cra-template-danrowe",
3-
"version": "1.0.0",
3+
"version": "1.0.3",
44
"author": "DanRowe",
55
"description": "Base Create React App template with Eslint and prettier configured.",
66
"keywords": [

template/example.package.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "my-app",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "latest",
7+
"@testing-library/react": "latest",
8+
"@testing-library/user-event": "latest",
9+
"react": "latest",
10+
"react-dom": "latest",
11+
"react-scripts": "latest",
12+
"web-vitals": "latest"
13+
},
14+
"devDependencies": {
15+
"babel-eslint": "latest",
16+
"eslint": "latest",
17+
"eslint-config-babel": "latest",
18+
"eslint-config-prettier": "latest",
19+
"eslint-plugin-import": "latest",
20+
"eslint-plugin-prettier": "latest",
21+
"eslint-plugin-react": "latest",
22+
"eslint-plugin-react-hooks": "latest",
23+
"eslint-plugin-standard": "latest",
24+
"prettier": "latest"
25+
},
26+
"scripts": {
27+
"start": "react-scripts start",
28+
"build": "react-scripts build",
29+
"test": "react-scripts test",
30+
"eject": "react-scripts eject"
31+
},
32+
"eslintConfig": {
33+
"extends": "react-app"
34+
},
35+
"browserslist": {
36+
"production": [
37+
">0.2%",
38+
"not dead",
39+
"not op_mini all"
40+
],
41+
"development": [
42+
"last 1 chrome version",
43+
"last 1 firefox version",
44+
"last 1 safari version"
45+
]
46+
}
47+
}

0 commit comments

Comments
 (0)