From 8c836dc44c4e8a1b73263259509df490c8e9fddf Mon Sep 17 00:00:00 2001 From: Divlo Date: Fri, 2 Jul 2021 12:15:02 +0200 Subject: [PATCH] fix: relax rule default-param-last (#591) --- src/index.test.ts | 2 -- src/index.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index 47ae4a50..7f482fbd 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -36,7 +36,6 @@ test('export', (t): void => { 'brace-style': 'off', camelcase: 'off', 'comma-spacing': 'off', - 'default-param-last': 'off', 'dot-notation': 'off', 'func-call-spacing': 'off', indent: 'off', @@ -67,7 +66,6 @@ test('export', (t): void => { } ], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'], - '@typescript-eslint/default-param-last': 'error', '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }], '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true, diff --git a/src/index.ts b/src/index.ts index 6dc41097..4529f70b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,7 +50,6 @@ const config: Linter.Config = { // Rules replaced by @typescript-eslint versions: ...fromEntries(equivalents.map((name) => [name, 'off'])), camelcase: 'off', - 'default-param-last': 'off', 'no-use-before-define': 'off', // @typescript-eslint versions of Standard.js rules: @@ -74,7 +73,6 @@ const config: Linter.Config = { } ], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'], - '@typescript-eslint/default-param-last': 'error', '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true, allowHigherOrderFunctions: true,