Skip to content

Commit

Permalink
chore: clean up eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso committed Nov 13, 2024
1 parent b4e6702 commit 66d35e1
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default tseslint.config(
'@lwc/lwc-internal': lwcInternal,
import: _import,
header,
vitest,
},

linterOptions: {
Expand Down Expand Up @@ -223,7 +222,7 @@ export default tseslint.config(
},
},
{
files: ['**/__tests__/**', '**/__mocks__/**', 'packages/@lwc/integration-karma/**'],
files: ['packages/@lwc/integration-karma/**'],

languageOptions: {
globals: {
Expand All @@ -240,20 +239,17 @@ export default tseslint.config(
'vitest/no-focused-tests': 'error',
'vitest/valid-expect': 'error',
'vitest/valid-expect-in-promise': 'error',
'vitest/no-conditional-tests': 'error',
'vitest/no-done-callback': 'error',
},
},
{
files: ['**/__tests__/**'],
ignores: ['packages/@lwc/integration-karma/**'],
rules: {
...vitest.configs.recommended.rules,
plugins: {
vitest,
},
},
{
files: ['packages/@lwc/integration-karma/**'],
rules: {
'vitest/no-conditional-tests': 'error',
'vitest/no-done-callback': 'error',
...vitest.configs.recommended.rules,
},
},
{
Expand Down

0 comments on commit 66d35e1

Please sign in to comment.