Skip to content

Commit dcad861

Browse files
author
Ray Schamp
committed
docs(setup): Add instructions for linting React
1 parent 8494d2b commit dcad861

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ module.exports = {
5353
This will set up all the files in the project for linting as Node.js by default,
5454
except for those in `src/`, which will be linted as ES6 and React files.
5555

56+
If you're linting React, also make sure your lint script lints `.jsx` files:
57+
```json
58+
"scripts": {
59+
"lint": "eslint . --ext .js,.jsx"
60+
}
61+
```
5662

5763
## Committing
5864
This project uses [semantic release](https://github.com/semantic-release/semantic-release)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"peerDependencies": {
3232
"babel-eslint": "7.x",
33-
"eslint": "~3.8"
33+
"eslint": "3.x"
3434
},
3535
"devDependencies": {
3636
"cz-conventional-changelog": "1.2.0",

0 commit comments

Comments
 (0)