Skip to content

Commit

Permalink
Ignore JSX nodes for "indent" rule
Browse files Browse the repository at this point in the history
Fixes #177

Supercedes: #178

Thanks @bcomnes!
  • Loading branch information
feross committed Oct 28, 2020
1 parent 6cd5bd5 commit 77f1692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
"ignoreComments": false,
"ignoredNodes": ["TemplateLiteral *"],
"ignoredNodes": ["TemplateLiteral *", "JSXElement", "JSXElement > *", "JSXAttribute", "JSXIdentifier", "JSXNamespacedName", "JSXMemberExpression", "JSXSpreadAttribute", "JSXExpressionContainer", "JSXOpeningElement", "JSXClosingElement", "JSXFragment", "JSXOpeningFragment", "JSXClosingFragment", "JSXText", "JSXEmptyExpression", "JSXSpreadChild"],
"offsetTernaryExpressions": true
}],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
Expand Down

0 comments on commit 77f1692

Please sign in to comment.