Skip to content

Commit

Permalink
fix: postpone plugin config initialisation to fix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
AMorgaut authored Aug 21, 2024
1 parent 56a9dab commit 97b58c1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions eslint-plugin/lib/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ const plugin = {
version: "1.6.0"

Check failure on line 39 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (18.x, 11)

Replace `······version:·"1.6.0"` with `····version:·"1.6.0",`

Check failure on line 39 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (20.x, 11)

Replace `······version:·"1.6.0"` with `····version:·"1.6.0",`
},
rules: allRules,
configs: {
recommended: {
plugins: ["@ecocode"], rules,
}
['flat/recommended'] = {
plugins: { '@ecocode': plugin }, rules,
}
},
};

plugin.configs = {

Check failure on line 44 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (18.x, 11)

Delete `·`

Check failure on line 44 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (20.x, 11)

Delete `·`
recommended: {

Check failure on line 45 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (18.x, 11)

Insert `(`

Check failure on line 45 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (20.x, 11)

Insert `(`
plugins: ["@ecocode"], rules,

Check failure on line 46 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (18.x, 11)

Insert `⏎···`

Check failure on line 46 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (20.x, 11)

Insert `⏎···`
}

Check failure on line 47 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (18.x, 11)

Replace `·⏎··['flat/recommended'` with `["flat/recommended"`

Check failure on line 47 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (20.x, 11)

Replace `·⏎··['flat/recommended'` with `["flat/recommended"`
['flat/recommended'] = {
plugins: { '@ecocode': plugin }, rules,

Check failure on line 49 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (18.x, 11)

Replace `'@ecocode':·plugin·},` with `"@ecocode":·plugin·},⏎···`

Check failure on line 49 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (20.x, 11)

Replace `'@ecocode':·plugin·},` with `"@ecocode":·plugin·},⏎···`
}

Check failure on line 50 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (18.x, 11)

Insert `),`

Check failure on line 50 in eslint-plugin/lib/standalone.js

View workflow job for this annotation

GitHub Actions / Lint and Test (20.x, 11)

Insert `),`
}

module.exports = plugin;

0 comments on commit 97b58c1

Please sign in to comment.