Skip to content

Commit 2ae8f88

Browse files
committed
ts,: add some jsx rules
1 parent bcee8af commit 2ae8f88

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

typescript.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
rules: {
1717
// Default ESlint rules to TypeScript-ESlint
1818
'@stylistic/array-bracket-spacing': [ 'error', 'always' ],
19+
'@stylistic/arrow-parens': [ 'error', 'as-needed' ],
1920
'brace-style': 0,
2021
'@stylistic/brace-style': 2,
2122
'comma-dangle': 0,
@@ -134,6 +135,13 @@ module.exports = {
134135
'MemberExpression': 'off',
135136
'SwitchCase': 0
136137
}
137-
]
138+
],
139+
'@stylistic/jsx-equals-spacing': [ 'error', 'always' ],
140+
'@stylistic/jsx-closing-bracket-location': [
141+
'error',
142+
'after-props'
143+
],
144+
'@stylistic/jsx-quotes': [ 'error', 'prefer-single' ],
145+
'@stylistic/jsx-indent-props': 2
138146
}
139147
}

0 commit comments

Comments
 (0)