mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 05:08:25 -05:00
[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:
6
packages/eslint-config-airbnb/rules/react.js
vendored
6
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user