mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 00:28:25 -05:00
[eslint config] [react] [patch] loosen jsx-pascal-case rule to allow all caps component names
This commit is contained in:
5
packages/eslint-config-airbnb/rules/react.js
vendored
5
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -64,7 +64,10 @@ module.exports = {
|
||||
'react/jsx-no-undef': 2,
|
||||
// Enforce PascalCase for user-defined JSX components
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md
|
||||
'react/jsx-pascal-case': 2,
|
||||
'react/jsx-pascal-case': [2, {
|
||||
'allowAllCaps': true,
|
||||
'ignore': [],
|
||||
}],
|
||||
// Enforce propTypes declarations alphabetical sorting
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md
|
||||
'react/sort-prop-types': [0, {
|
||||
|
||||
Reference in New Issue
Block a user