From 14865544046decced679c6e33702cd1f62ec4ea8 Mon Sep 17 00:00:00 2001 From: divlo Date: Fri, 15 Jan 2021 09:26:01 +0100 Subject: [PATCH] feat: require-array-sort-compare ignoreStringArrays --- src/index.test.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index ba251baa..a8fb3b1c 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -142,7 +142,7 @@ test('export', (t): void => { '@typescript-eslint/promise-function-async': 'error', '@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }], '@typescript-eslint/restrict-plus-operands': ['error', { checkCompoundAssignments: true }], - '@typescript-eslint/require-array-sort-compare': 'error', + '@typescript-eslint/require-array-sort-compare': ['error', { ignoreStringArrays: true }], '@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }], '@typescript-eslint/return-await': ['error', 'always'], '@typescript-eslint/semi': ['error', 'never'], diff --git a/src/index.ts b/src/index.ts index 5ec2b798..7912657c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -121,7 +121,7 @@ const config: Linter.Config = { '@typescript-eslint/prefer-reduce-type-parameter': 'error', '@typescript-eslint/prefer-ts-expect-error': 'error', '@typescript-eslint/promise-function-async': 'error', - '@typescript-eslint/require-array-sort-compare': 'error', + '@typescript-eslint/require-array-sort-compare': ['error', { ignoreStringArrays: true }], '@typescript-eslint/restrict-plus-operands': ['error', { checkCompoundAssignments: true }], '@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }], '@typescript-eslint/return-await': ['error', 'always'],