Skip to content

Commit

Permalink
Require PascalCase for user-defined JSX components (react/jsx-pascal-…
Browse files Browse the repository at this point in the history
…case)

Fixes: #1365
  • Loading branch information
feross committed Aug 15, 2019
1 parent 93027d9 commit d3d14a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Require no spaces before JSX closing brackets ([react/jsx-tag-spacing](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md)) [#1348](https://github.com/standard/standard/issues/1348) [eslint-config-standard-jsx/38](https://github.com/standard/eslint-config-standard-jsx/pull/38) [0%]
- Disallow multiple spaces between inline JSX props ([react/jsx-props-no-multi-spaces](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md)) [#1363](https://github.com/standard/standard/issues/1363) [0%]
- Require shorthand form for JSX fragments ([react/jsx-fragments](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-fragments.md)) [#1364](https://github.com/standard/standard/issues/1364) [0%]
- Require PascalCase for user-defined JSX components ([react/jsx-pascal-case](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md)) [#1365](https://github.com/standard/standard/issues/1365) [0%]
- Require JSX closing tag to be aligned with the opening tag ([react/jsx-closing-tag-location](https://eslint.org/docs/rules/react/jsx-closing-tag-location)) [#1358](https://github.com/standard/standard/issues/1358) [0%]
- Disallow missing parentheses around multiline JSX ([react/jsx-wrap-multilines](https://eslint.org/docs/rules/react/jsx-wrap-multilines)) [#710](https://github.com/standard/standard/issues/710) [0%]
- Require pipeline operators to appear at the start of a line ([operator-linebreak](https://eslint.org/docs/rules/operator-linebreak)) [eslint-config-standard/#121](https://github.com/standard/eslint-config-standard/pull/121) [0%]
Expand Down
1 change: 1 addition & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"react/jsx-closing-tag-location": "error",
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-pascal-case": ["error", { "allowAllCaps": false }],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-props-no-multi-spaces": "error",
"react/jsx-tag-spacing": ["error", {
Expand Down

0 comments on commit d3d14a5

Please sign in to comment.