From 8e92c7b3e21d6f1ab7c41e624b0c813428c35e96 Mon Sep 17 00:00:00 2001 From: indexzero Date: Tue, 7 Feb 2017 22:32:08 -0500 Subject: [PATCH] =?UTF-8?q?[fix]=20Turn=20=E2=80=9Dreact/prefer-es6-class"?= =?UTF-8?q?=20on=20as=20an=20error.=20Fixes=20#36.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/eslint-config-godaddy-es5/react.js | 1 + packages/eslint-config-godaddy-react/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/eslint-config-godaddy-es5/react.js b/packages/eslint-config-godaddy-es5/react.js index 5e01bdf..3878e5b 100644 --- a/packages/eslint-config-godaddy-es5/react.js +++ b/packages/eslint-config-godaddy-es5/react.js @@ -15,6 +15,7 @@ module.exports = { }, rules: { 'react/display-name': 2, + 'react/prefer-es6-class': 0, 'strict': [2, 'never'] } }; diff --git a/packages/eslint-config-godaddy-react/index.js b/packages/eslint-config-godaddy-react/index.js index 0c13130..dffd1f4 100644 --- a/packages/eslint-config-godaddy-react/index.js +++ b/packages/eslint-config-godaddy-react/index.js @@ -9,6 +9,7 @@ module.exports = { rules: { 'react/display-name': 0, 'react/jsx-uses-react': 1, + 'react/prefer-es6-class': 2, // // Whitespace rules for specific scenarios (e.g. JSX) //