Skip to content

Commit

Permalink
The first JSX property should always be placed on a new line if the J…
Browse files Browse the repository at this point in the history
…SX tag takes up multiple lines and there are multiple properties (react/jsx-first-prop-new-line)

Fixes: standard/standard#696
  • Loading branch information
feross committed Aug 14, 2019
1 parent 8c25bab commit bac48ca
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 @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Enforce consistent line breaks inside braces ([object-curly-newline](https://eslint.org/docs/rules/object-curly-newline)) [#782](https://github.com/standard/standard/issues/782) (1%)
- Disallow template literals when placeholders or tagged template features are not used. ([quotes](https://eslint.org/docs/rules/quotes)) [#838](https://github.com/standard/standard/issues/838) [eslint-config-standard/#151](https://github.com/standard/eslint-config-standard/pull/151) (1%)
- Disallow lexical declarations in case/default clauses ([no-case-declarations](https://eslint.org/docs/rules/no-case-declarations)) [#1211](https://github.com/standard/standard/issues/1211) [eslint-config-standard/#137](https://github.com/standard/eslint-config-standard/pull/137) (1%)
- The first JSX property should always be placed on a new line if the JSX tag takes up multiple lines and there are multiple properties ([react/jsx-first-prop-new-line](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md)) [#696](https://github.com/standard/standard/issues/696) (1%)
- Forbid import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#861](https://github.com/standard/standard/issues/861) [#1343](https://github.com/standard/standard/issues/1343) (0%)
- Enforce no spaces before JSX closing brackets (i.e. no `<div >` or `</div >`) ([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%)
- 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%)
Expand Down
1 change: 1 addition & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
"quotes": ["error", "single", { "avoidEscape": true }],

"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-tag-spacing": ["error", {
"closingSlash": "never",
"beforeSelfClosing": "always",
Expand Down

0 comments on commit bac48ca

Please sign in to comment.