Skip to content

Commit a19bf08

Browse files
author
flyasher
committed
chore(package): update eslint-plugin-react and add babel-eslint (#357)
* chore(package): update eslint-plugin-react to 7.9.1 which solves the issue jsx-eslint/eslint-plugin-react#1785 * chore(package): Add babel-eslint as parser for eslint * lock dependencies
1 parent e290ddb commit a19bf08

File tree

3 files changed

+249
-6
lines changed

3 files changed

+249
-6
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ module.exports = {
1212
},
1313
extends: ["eslint:recommended", "plugin:react/recommended"],
1414
parserOptions: {
15+
ecmaVersion: "6",
1516
ecmaFeatures: {
16-
experimentalObjectRestSpread: true,
1717
jsx: true
1818
},
1919
sourceType: "module"
2020
},
2121
plugins: ["react", "jsx-a11y"],
22+
"parser": "babel-eslint",
2223
rules: {
2324
"indent": [2, 2],
2425
"linebreak-style": [2, "unix"],

package-lock.json

Lines changed: 244 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"devDependencies": {
4444
"babel-cli": "6.26.0",
4545
"babel-core": "6.26.0",
46+
"babel-eslint": "8.1.0",
4647
"babel-jest": "23.0.0-alpha.0",
4748
"babel-loader": "^7.1.4",
4849
"babel-preset-env": "1.6.1",
@@ -55,8 +56,8 @@
5556
"eslint": "5.0.0",
5657
"eslint-plugin-jest": "21.15.1",
5758
"eslint-plugin-jsx-a11y": "6.0.3",
58-
"eslint-plugin-react": "7.8.0",
59-
"greenkeeper-lockfile": "^1.15.1",
59+
"eslint-plugin-react": "7.9.1",
60+
"greenkeeper-lockfile": "1.15.1",
6061
"jest": "22.1.4",
6162
"jsdom": "11.6.2",
6263
"npm-run-all": "4.1.3",

0 commit comments

Comments
 (0)