diff options
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eslint.config.js b/eslint.config.js index 32f4c364..917ce7e6 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -95,7 +95,11 @@ export default tseslint.config( '@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }], '@typescript-eslint/no-unused-vars': [ 'warn', - { argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }, + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, ], 'no-cond-assign': 'error', 'no-debugger': 'error', @@ -108,12 +112,14 @@ export default tseslint.config( }, { selector: 'ThrowStatement > Literal:not([value=/^\\w+Error:/])', - message: 'Do not throw string literals or non-Error objects. Throw new Error("...") instead.', + message: + 'Do not throw string literals or non-Error objects. Throw new Error("...") instead.', }, ], 'no-unsafe-finally': 'error', 'no-unused-expressions': 'off', // Disable base rule - '@typescript-eslint/no-unused-expressions': [ // Enable TS version + '@typescript-eslint/no-unused-expressions': [ + // Enable TS version 'error', { allowShortCircuit: true, allowTernary: true }, ], |
