From 0285eef378bf139582d70dd4a8622fcdec94fa13 Mon Sep 17 00:00:00 2001 From: Sergei Startsev Date: Thu, 21 Jun 2018 02:30:16 +0300 Subject: [PATCH] Excluded `no-unsafe` from the recommended for now to avoid breaking changes --- README.md | 1 - index.js | 2 +- lib/rules/no-unsafe.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f83a2d78c..5b787b1afc 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,6 @@ The rules enabled in this configuration are: * [react/no-string-refs](docs/rules/no-string-refs.md) * [react/no-unescaped-entities](docs/rules/no-unescaped-entities.md) * [react/no-unknown-property](docs/rules/no-unknown-property.md) -* [react/no-unsafe](docs/rules/no-unsafe.md) * [react/prop-types](docs/rules/prop-types.md) * [react/react-in-jsx-scope](docs/rules/react-in-jsx-scope.md) * [react/require-render-return](docs/rules/require-render-return.md) diff --git a/index.js b/index.js index af7da134b7..45a96d7da3 100644 --- a/index.js +++ b/index.js @@ -140,7 +140,7 @@ module.exports = { 'react/no-string-refs': 2, 'react/no-unescaped-entities': 2, 'react/no-unknown-property': 2, - 'react/no-unsafe': 2, + 'react/no-unsafe': 0, 'react/prop-types': 2, 'react/react-in-jsx-scope': 2, 'react/require-render-return': 2 diff --git a/lib/rules/no-unsafe.js b/lib/rules/no-unsafe.js index d168d61491..006e5596fb 100644 --- a/lib/rules/no-unsafe.js +++ b/lib/rules/no-unsafe.js @@ -19,7 +19,7 @@ module.exports = { docs: { description: 'Prevent usage of UNSAFE_ methods', category: 'Best Practices', - recommended: true, + recommended: false, url: docsUrl('no-unsafe') }, schema: []