@paratco/eslint-config 0.8.3 → 0.8.5
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.
- package/package.json +1 -1
- package/src/configs/base.js +1 -1
- package/src/lints/typescript/index.js +17 -1
package/package.json
CHANGED
package/src/configs/base.js
CHANGED
|
@@ -260,5 +260,21 @@ export default {
|
|
|
260
260
|
// Disallow type parameters that aren't used multiple times
|
|
261
261
|
// https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
262
262
|
// Note: This rule is in the strict rules. But we decided to disable this rule.
|
|
263
|
-
"@typescript-eslint/no-unnecessary-type-parameters": ["off"]
|
|
263
|
+
"@typescript-eslint/no-unnecessary-type-parameters": ["off"],
|
|
264
|
+
|
|
265
|
+
// Disallow unused variables.
|
|
266
|
+
// https://typescript-eslint.io/rules/no-unused-vars
|
|
267
|
+
// Note: This rule is in the recommended rules. But we modify it.
|
|
268
|
+
"@typescript-eslint/no-unused-vars": [
|
|
269
|
+
"error",
|
|
270
|
+
{
|
|
271
|
+
args: "all",
|
|
272
|
+
argsIgnorePattern: "^_",
|
|
273
|
+
caughtErrors: "all",
|
|
274
|
+
caughtErrorsIgnorePattern: "^_",
|
|
275
|
+
destructuredArrayIgnorePattern: "^_",
|
|
276
|
+
varsIgnorePattern: "^_",
|
|
277
|
+
ignoreRestSiblings: true
|
|
278
|
+
}
|
|
279
|
+
]
|
|
264
280
|
};
|