[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
This commit is contained in:
Jordan Harband
2016-08-29 00:11:52 -07:00
parent a43c16e330
commit 0e4517ea38

View File

@@ -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,