Skip to content

Commit b821743

Browse files
committed
build(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 58.0.0
- closes #51 Signed-off-by: Lexus Drumgold <[email protected]>
1 parent e89b15f commit b821743

File tree

3 files changed

+180
-286
lines changed

3 files changed

+180
-286
lines changed

eslint.base.config.mjs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@ import pkg from './package.json' with { type: 'json' }
2727
* @return {Promise<Plugin>}
2828
* Eslint plugin
2929
*/
30-
const plugin = async name => (await import(name)).default
30+
const plugin = async name => {
31+
/**
32+
* Plugin module.
33+
*
34+
* @type {{ default: Plugin } | Plugin}
35+
* @const m
36+
*/
37+
const m = await import(name)
38+
39+
return 'default' in m ? m.default : m
40+
}
3141

3242
/**
3343
* Eslint configuration objects.
@@ -729,7 +739,6 @@ export default [
729739
ignore: []
730740
}
731741
],
732-
'unicorn/import-index': 2,
733742
'unicorn/import-style': [2, { styles: {} }],
734743
'unicorn/new-for-builtins': 2,
735744
'unicorn/no-abusive-eslint-disable': 2,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
"eslint-plugin-mdx": "3.1.5",
172172
"eslint-plugin-n": "17.15.1",
173173
"eslint-plugin-promise": "7.2.1",
174-
"eslint-plugin-unicorn": "56.0.1",
174+
"eslint-plugin-unicorn": "58.0.0",
175175
"eslint-plugin-yml": "1.17.0",
176176
"globals": "16.0.0",
177177
"growl": "1.10.5",

0 commit comments

Comments
 (0)