Skip to content

Commit 4b680bc

Browse files
committed
Update rules to respect Prettier formatting
1 parent d7fb031 commit 4b680bc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
{
8585
arrays: 'always-multiline',
8686
objects: 'always-multiline',
87-
imports: 'never',
87+
imports: 'always-multiline',
8888
exports: 'never',
8989
functions: 'never',
9090
},
@@ -115,6 +115,8 @@ module.exports = {
115115
// Disallow empty block statements
116116
'no-empty': ['error', { allowEmptyCatch: true }],
117117

118+
'no-extra-parens': 'off',
119+
118120
// Disallow `if` statements as the only statement in `else` blocks
119121
'no-lonely-if': 'error',
120122

@@ -139,7 +141,13 @@ module.exports = {
139141
'object-curly-spacing': ['error', 'always'],
140142

141143
// Require single quotes
142-
quotes: ['error', 'single'],
144+
quotes: [
145+
'error',
146+
'single',
147+
{
148+
avoidEscape: true,
149+
},
150+
],
143151

144152
// Require space before blocks
145153
'space-before-blocks': ['error', 'always'],

0 commit comments

Comments
 (0)