Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Commit 0ac83d3

Browse files
Update rules
- Show warning for “prefer-const” - Show warning fro “prefer-destructuring”
1 parent 95b0eba commit 0ac83d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ module.exports = {
3030
'no-restricted-syntax': 'off',
3131
'no-undef': 'off',
3232
'object-shorthand': ['error', 'always'],
33-
'prefer-const': 'off',
33+
'prefer-const': ['warn', { destructuring: 'all' }],
34+
'prefer-destructuring': 'warn',
3435
'semi': ['error', 'always', { omitLastInOneLineBlock: true }],
3536
},
3637
};

0 commit comments

Comments
 (0)