eslint-config-xo-typescript
Advanced tools
Comparing version 0.34.0 to 0.34.1
36
index.js
@@ -397,14 +397,16 @@ 'use strict'; | ||
'@typescript-eslint/no-unused-expressions': 'error', | ||
// Disabled as the `@typescript-eslint/no-unused-vars` rule is buggy and marks arguments in overloads as unused... For example: https://github.com/sindresorhus/pageres/blob/6785f65efb354da364da858dba4c192891629971/source/index.ts#L109 | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: /^_/.source, | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: /^_$/.source | ||
} | ||
], | ||
// '@typescript-eslint/no-unused-vars': [ | ||
// 'error', | ||
// { | ||
// vars: 'all', | ||
// args: 'after-used', | ||
// ignoreRestSiblings: true, | ||
// argsIgnorePattern: /^_/.source, | ||
// caughtErrors: 'all', | ||
// caughtErrorsIgnorePattern: /^_$/.source | ||
// } | ||
// ], | ||
@@ -524,3 +526,13 @@ // Disabled for now as it's marked as experimental. | ||
'no-redeclare': 'off' | ||
} | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'**/*.d.ts' | ||
], | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': 'off' | ||
} | ||
} | ||
] | ||
}; |
{ | ||
"name": "eslint-config-xo-typescript", | ||
"version": "0.34.0", | ||
"version": "0.34.1", | ||
"description": "ESLint shareable config for TypeScript to be used with eslint-config-xo", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20663
512