Skip to content

Commit 1966d15

Browse files
committed
feat: Added config for object-shorthand
BREAKING CHANGE: `object-shorthand` will fail if existing code does not follow this rule
1 parent da33e6f commit 1966d15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
],
1212
plugins: ['prettier'],
1313
rules: {
14+
'object-shorthand': ['error', 'always'],
1415
'prettier/prettier': 'error',
1516
'import/named': ['off'],
1617
'import/order': ['error', { 'newlines-between': 'always' }],

0 commit comments

Comments
 (0)