Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,19 @@ export default tseslint.config(
'vitest/valid-expect-in-promise': 'error',
'vitest/no-conditional-tests': 'error',
'vitest/no-done-callback': 'error',
// Note that vitest's "no focused tests" rules do not cover `fit`/`fdescribe`
// https://github.com/salesforce/lwc/issues/5106
'no-restricted-globals': [
'error',
{
name: 'fdescribe',
message: 'Do not commit focused tests. Use `describe` instead.',
},
{
name: 'fit',
message: 'Do not commit focused tests. Use `it` instead.',
},
],
},
},
{
Expand Down