Skip to content

Commit

Permalink
Try to fix extensibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronMoat committed Sep 25, 2024
1 parent f329bf1 commit 34a68a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-candles-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-config-seek': patch
---

Define plugins without `file` scopes, to allow for improved extensibility
6 changes: 4 additions & 2 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ module.exports = [
{
plugins: {
'import-x': importX,
jest: jestPlugin,
cypress,
'@typescript-eslint': tseslint.plugin,
},
},
importX.flatConfigs.typescript,
Expand Down Expand Up @@ -125,6 +128,7 @@ module.exports = [
...[...tseslint.configs.recommended, ...tseslint.configs.stylistic].map(
(config) => ({
...config,
plugins: undefined,
files: [`**/*.{${tsExtensions}}`],
}),
),
Expand Down Expand Up @@ -218,7 +222,6 @@ module.exports = [
`**/__tests__/**/*.{${allExtensions}}`,
`**/*.@(spec|test).{${allExtensions}}`,
],
plugins: { jest: jestPlugin },
languageOptions: {
globals: {
...globals.jest,
Expand All @@ -231,7 +234,6 @@ module.exports = [
},
{
files: [`**/cypress/**/*.{${allExtensions}}`],
plugins: { cypress },
languageOptions: {
globals: {
...cypress.environments.globals.globals,
Expand Down

0 comments on commit 34a68a8

Please sign in to comment.