From daf463379a3f4cab274101fb45c2b87bb16df381 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 6 May 2019 23:19:00 +0900 Subject: [PATCH] feat(deps): bump eslint-plugin-react from 7.12.4 to 7.13.0 (#386) Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.12.4 to 7.13.0. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.12.4...v7.13.0) Signed-off-by: dependabot[bot] --- package-lock.json | 42 +++++++++++++++++++++++++------------- package.json | 2 +- rules/plugins/react-jsx.js | 1 + rules/plugins/react.js | 3 +++ 4 files changed, 33 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 49ea7912..b0cf8495 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2349,17 +2349,17 @@ } }, "eslint-plugin-react": { - "version": "7.12.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz", - "integrity": "sha512-1puHJkXJY+oS1t467MjbqjvX53uQ05HXwjqDgdbGBqf5j9eeydI54G3KwiJmWciQ0HTBacIKw2jgwSBSH3yfgQ==", + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.13.0.tgz", + "integrity": "sha512-uA5LrHylu8lW/eAH3bEQe9YdzpPaFd9yAJTwTi/i/BKTD7j6aQMKVAdGM/ML72zD6womuSK7EiGtMKuK06lWjQ==", "requires": { "array-includes": "^3.0.3", "doctrine": "^2.1.0", "has": "^1.0.3", - "jsx-ast-utils": "^2.0.1", + "jsx-ast-utils": "^2.1.0", "object.fromentries": "^2.0.0", - "prop-types": "^15.6.2", - "resolve": "^1.9.0" + "prop-types": "^15.7.2", + "resolve": "^1.10.1" }, "dependencies": { "doctrine": { @@ -2370,10 +2370,18 @@ "esutils": "^2.0.2" } }, + "jsx-ast-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.1.0.tgz", + "integrity": "sha512-yDGDG2DS4JcqhA6blsuYbtsT09xL8AoLuUR2Gb5exrw7UEM19sBcOTq+YBBhrNbl0PUC4R4LnFu+dHg2HKeVvA==", + "requires": { + "array-includes": "^3.0.3" + } + }, "resolve": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", - "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.1.tgz", + "integrity": "sha512-KuIe4mf++td/eFb6wkaPbMDnP6kObCaEtIDuHOUED6MNUo4K670KZUHuuvYPZDxNF0WVLw49n06M2m2dXphEzA==", "requires": { "path-parse": "^1.0.6" } @@ -5909,12 +5917,13 @@ "dev": true }, "prop-types": { - "version": "15.6.2", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz", - "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==", + "version": "15.7.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", + "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", "requires": { - "loose-envify": "^1.3.1", - "object-assign": "^4.1.1" + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.8.1" } }, "property-expr": { @@ -5986,6 +5995,11 @@ } } }, + "react-is": { + "version": "16.8.6", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.8.6.tgz", + "integrity": "sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==" + }, "read-pkg": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", diff --git a/package.json b/package.json index 2c6f3963..a4f95556 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-node": "^9.0.1", "eslint-plugin-prettier": "^3.0.1", - "eslint-plugin-react": "^7.12.4", + "eslint-plugin-react": "^7.13.0", "eslint-restricted-globals": "^0.2.0" }, "devDependencies": { diff --git a/rules/plugins/react-jsx.js b/rules/plugins/react-jsx.js index 127bc543..f001058c 100644 --- a/rules/plugins/react-jsx.js +++ b/rules/plugins/react-jsx.js @@ -25,6 +25,7 @@ module.exports = { allowAllCaps: true, }, ], + "react/jsx-props-no-spreading": "off", "react/jsx-sort-default-props": "off", "react/jsx-sort-props": "off", }, diff --git a/rules/plugins/react.js b/rules/plugins/react.js index af4db2b6..6d5ba515 100644 --- a/rules/plugins/react.js +++ b/rules/plugins/react.js @@ -25,6 +25,7 @@ module.exports = { "react/no-unused-state": "error", "react/no-will-update-set-state": "error", "react/prefer-es6-class": "error", + "react/prefer-read-only-props": "off", "react/prefer-stateless-function": ["error", { ignorePureComponents: true }], "react/require-default-props": [ "error", @@ -36,6 +37,8 @@ module.exports = { "react/self-closing-comp": "error", "react/sort-comp": "error", "react/sort-prop-types": "off", + "react/state-in-constructor": "off", + "react/static-property-placement": "warn", "react/style-prop-object": "error", "react/void-dom-elements-no-children": "error", },