Skip to content

Commit db73278

Browse files
committed
[eslint config] [react] [patch] loosen jsx-pascal-case rule to allow all caps component names
1 parent d25a199 commit db73278

File tree

1 file changed

+4
-1
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+4
-1
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ module.exports = {
6464
'react/jsx-no-undef': 2,
6565
// Enforce PascalCase for user-defined JSX components
6666
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md
67-
'react/jsx-pascal-case': 2,
67+
'react/jsx-pascal-case': [2, {
68+
'allowAllCaps': true,
69+
'ignore': [],
70+
}],
6871
// Enforce propTypes declarations alphabetical sorting
6972
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md
7073
'react/sort-prop-types': [0, {

0 commit comments

Comments
 (0)