Skip to content

Commit 6c61960

Browse files
authored
Update 'prefer-const' destructuring rule from 'any' to 'all' (#58)
* update prefer-const destructuring rule from 'any' to 'all' * bump version
1 parent 5617c49 commit 6c61960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/eslint-config/eslint-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const baseConfig = createConfig(
126126
'operator-assignment': 'error',
127127
'padding-line-between-statements': 'error',
128128
'prefer-arrow-callback': 'error',
129-
'prefer-const': 'error',
129+
'prefer-const': ['error', { destructuring: 'all' }],
130130
'prefer-exponentiation-operator': 'error',
131131
'prefer-named-capture-group': 'error',
132132
'prefer-numeric-literals': 'error',

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"access": "public",
55
"provenance": true
66
},
7-
"version": "1.0.1",
7+
"version": "1.0.2",
88
"description": "ESLint configuration for projects at Viam.",
99
"type": "module",
1010
"main": "./eslint-config.js",

0 commit comments

Comments
 (0)