diff options
| author | Taylor Mullen <[email protected]> | 2025-04-17 18:06:21 -0400 |
|---|---|---|
| committer | N. Taylor Mullen <[email protected]> | 2025-04-17 15:29:34 -0700 |
| commit | cfc697a96d2e716a75e1c3b7f0f34fce81abaf1e (patch) | |
| tree | e06bcba67ca71a874048aa887b17457dbd409bdf /eslint.config.js | |
| parent | 7928c1727f0b208ed34850cc89bbb36ea3dd23e5 (diff) | |
Run `npm run format`
- Also updated README.md accordingly.
Part of https://b.corp.google.com/issues/411384603
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 }, ], |
