Skip to content

Commit 306539c

Browse files
authored
Update package.json (#86)
Linting options added as scripts to allow user to automatically fix whatever can be fixed with the `--fix` tag. The `lint` scripts lints all the errors, and the `lint-fix` script fixes what it can.
1 parent 8e8abdc commit 306539c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"start": "react-scripts start",
1111
"build": "react-scripts build",
1212
"test": "react-scripts test",
13-
"eject": "react-scripts eject"
13+
"eject": "react-scripts eject",
14+
"lint": "eslint ./",
15+
"lint-fix": "eslint ./ --fix"
1416
},
1517
"eslintConfig": {
1618
"extends": "react-app"

0 commit comments

Comments
 (0)