[eslint config] [react] [patch] loosen jsx-pascal-case rule to allow all caps component names

This commit is contained in:
Jordan Harband
2016-05-09 15:41:52 -07:00
parent d25a199c56
commit db732788e7

View File

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