Skip to content

Commit

Permalink
chore(eslint-plugin-query): expect-expect warning for `expectArrayE…
Browse files Browse the repository at this point in the history
…qualIgnoreOrder` (#8143)

* fix: `expect-expect` warning for `expectArrayEqualIgnoreOrder`

* fix: lint error could not find plugin `vitest`
  • Loading branch information
saul-atomrigs authored Oct 9, 2024
1 parent 78b086b commit 85a525a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/eslint-plugin-query/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
// @ts-check

import rootConfig from '../../eslint.config.js'
import vitest from '@vitest/eslint-plugin'

export default [...rootConfig]
export default [
...rootConfig,
{
plugins: { vitest },
rules: {
'vitest/expect-expect': [
'warn',
{
assertFunctionNames: ['expect', 'expectArrayEqualIgnoreOrder'],
},
],
},
},
]

0 comments on commit 85a525a

Please sign in to comment.