Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update: Use sane defaults for JSX indentation (fixes #8425) This updates the `indent` rule to enforce reasonable defaults for JSX nodes. Previously, it always enforced that their indentation was zero, which was usually undesirable. For some users, this might make it so that the `jsx-indent` rule from `eslint-plugin-react` is no longer necessary. However, `indent` is not aiming for full compatibility with the `jsx-indent` rule. In the future it should be possible to ignore specified nodes with the `indent` rule (e.g. JSX elements), which will allow users to continue to use `indent` and `jsx-indent` simultaneously. * Handle JSXAttribute indentation correctly
- Loading branch information
1 parent
d21f528
commit 268d52e
Showing
2 changed files
with
1,352 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.