@fullstacksjs/eslint-config 11.2.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -121,7 +121,10 @@ function typescript(options = {}) {
|
|
|
121
121
|
'@typescript-eslint/no-unused-vars': ['warn', {
|
|
122
122
|
argsIgnorePattern: '^_',
|
|
123
123
|
varsIgnorePattern: '^([iI]gnore(d)?)|(_+)',
|
|
124
|
+
caughtErrorsIgnorePattern: '^_',
|
|
125
|
+
destructuredArrayIgnorePattern: '^_',
|
|
124
126
|
args: 'after-used',
|
|
127
|
+
caughtErrors: 'all',
|
|
125
128
|
ignoreRestSiblings: true
|
|
126
129
|
}],
|
|
127
130
|
'@typescript-eslint/no-use-before-define': ['error', {
|
package/package.json
CHANGED
|
@@ -110,7 +110,15 @@ function typescript(options = {}) {
|
|
|
110
110
|
'@typescript-eslint/no-unused-expressions': 'error',
|
|
111
111
|
'@typescript-eslint/no-unused-vars': [
|
|
112
112
|
'warn',
|
|
113
|
-
{
|
|
113
|
+
{
|
|
114
|
+
argsIgnorePattern: '^_',
|
|
115
|
+
varsIgnorePattern: '^([iI]gnore(d)?)|(_+)',
|
|
116
|
+
caughtErrorsIgnorePattern: '^_',
|
|
117
|
+
destructuredArrayIgnorePattern: '^_',
|
|
118
|
+
args: 'after-used',
|
|
119
|
+
caughtErrors: 'all',
|
|
120
|
+
ignoreRestSiblings: true,
|
|
121
|
+
},
|
|
114
122
|
],
|
|
115
123
|
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: true }],
|
|
116
124
|
'@typescript-eslint/no-useless-constructor': 'error',
|