Skip to content

Commit d9526b9

Browse files
committed
feat(@typescript-eslint): enable no-unsafe-assignment
1 parent b933691 commit d9526b9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

@typescript-eslint.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const config = {
8282
],
8383
'@typescript-eslint/no-unnecessary-qualifier': 'error',
8484
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
85+
'@typescript-eslint/no-unsafe-assignment': 'error',
8586
'@typescript-eslint/no-unsafe-call': 'error',
8687
'@typescript-eslint/no-unsafe-member-access': 'error',
8788
'@typescript-eslint/no-unsafe-return': 'error',

test/configs.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ describe('for each config file', () => {
4747
const makeRuleWarn = (
4848
value: ESLint.Linter.RuleLevel | ESLint.Linter.RuleLevelAndOptions
4949
): ESLint.Linter.RuleLevel | ESLint.Linter.RuleLevelAndOptions =>
50-
Array.isArray(value) ? ['warn', ...value.slice(1)] : 'warn';
50+
Array.isArray(value)
51+
? ['warn', ...(value.slice(1) as unknown[])]
52+
: 'warn';
5153

5254
expect(() => {
5355
const baseConfig: ESLint.Linter.Config = {

0 commit comments

Comments
 (0)