10000 Task: Add `react-jsx-tag-spacing` (#15) · sveltejs/eslint-config@71817d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 71817d8

Browse files
authored
Task: Add react-jsx-tag-spacing (#15)
* New rule react-jsx-tag-spacing * Fix double quote * Minor: re-order rules to be in alphabetical order
1 parent c6e8d8a commit 71817d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

react.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ module.exports = {
1717

1818
rules: {
1919
'jsx-quotes': [ error, 'prefer-double' ],
20-
'react/jsx-indent': [ warn, 2 ],
21-
'react/jsx-indent-props': [ warn, 2 ],
2220
'react/forbid-prop-types': [ error, { 'forbid': [ any ] } ],
2321
'react/jsx-boolean-value': [ off ],
22+
'react/jsx-indent': [ warn, 2 ],
23+
'react/jsx-indent-props': [ warn, 2 ],
24+
'react/jsx-pascal-case': error,
25+
'react/jsx-tag-spacing': [ error, { 'beforeSelfClosing': 'always' } ],
2426
'react/sort-comp': [ error, {
2527
'order': [
2628
'static-methods',
@@ -54,7 +56,6 @@ module.exports = {
5456
]
5557
}
5658
} ],
57-
'react/jsx-pascal-case': error,
5859
'react/no-did-mount-set-state': error,
5960
'react/no-did-update-set-state': error,
6061
'react/no-unused-prop-types': warn,

0 commit comments

Comments
 (0)
0