diff --git a/assets/eslint.config.js b/assets/eslint.config.js index 89159b71..aaae607d 100644 --- a/assets/eslint.config.js +++ b/assets/eslint.config.js @@ -265,6 +265,11 @@ export default tsEslint.config( 'no-unused-vars': 'off', 'no-redeclare': 'off', 'no-shadow': 'off', + + // Often conflicts with prettier. + // TODO: prettier should just be enforced by CI. + 'no-extra-parens': 'off', + '@typescript-eslint/no-unused-vars': [ 2, { vars: 'all', args: 'after-used', varsIgnorePattern: '^_.*', argsIgnorePattern: '^_.*' }, @@ -285,6 +290,13 @@ export default tsEslint.config( 'no-unused-expressions': 0, 'vitest/valid-expect': 0, '@typescript-eslint/no-unused-expressions': 0, + 'vitest/expect-expect': [ + 'error', + { + // Custom `expectStuff()` functions must also count as assertions. + assertFunctionNames: ['expect*', '*.expect*'], + }, + ], }, }, );