File tree Expand file tree Collapse file tree 3 files changed +180
-286
lines changed
Expand file tree Collapse file tree 3 files changed +180
-286
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments