From 0e4517ea38681ea1368a522591e2aefc18b108ba Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 29 Aug 2016 00:11:52 -0700 Subject: [PATCH] [eslint config] [patch] set `ignoreCase` to `true` in disabled rules. When/if these rules are enabled, we will want to ignore case. This also helps https://github.com/pinterest-web/eslint-config-pinterest/pull/46/files#r76165293 --- packages/eslint-config-airbnb/rules/react.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/eslint-config-airbnb/rules/react.js b/packages/eslint-config-airbnb/rules/react.js index 1552b7ea..99215262 100644 --- a/packages/eslint-config-airbnb/rules/react.js +++ b/packages/eslint-config-airbnb/rules/react.js @@ -67,7 +67,7 @@ module.exports = { // Prevent duplicate props in JSX // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md - 'react/jsx-no-duplicate-props': ['off', { ignoreCase: false }], + 'react/jsx-no-duplicate-props': ['off', { ignoreCase: true }], // Prevent usage of unwrapped JSX strings // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-literals.md @@ -87,7 +87,7 @@ module.exports = { // Enforce propTypes declarations alphabetical sorting // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md 'react/sort-prop-types': ['off', { - ignoreCase: false, + ignoreCase: true, callbacksLast: false, requiredFirst: false, }], @@ -98,7 +98,7 @@ module.exports = { // Enforce props alphabetical sorting // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md 'react/jsx-sort-props': ['off', { - ignoreCase: false, + ignoreCase: true, callbacksLast: false, shorthandFirst: false, shorthandLast: false,