@naturalcycles/dev-lib 12.13.1 → 12.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cfg/eslint-rules.js
CHANGED
|
@@ -370,5 +370,6 @@ module.exports = {
|
|
|
370
370
|
'@typescript-eslint/unbound-method': 0,
|
|
371
371
|
'@typescript-eslint/no-unsafe-argument': 0, // prevents "legit" use of `any`
|
|
372
372
|
'unicorn/prefer-export-from': 0, // breaks auto-imports in IntelliJ Idea
|
|
373
|
+
'unicorn/no-await-expression-member': 0, // some cases are better as-is
|
|
373
374
|
},
|
|
374
375
|
}
|
|
@@ -14,7 +14,7 @@ const paths_cnst_1 = require("../cnst/paths.cnst");
|
|
|
14
14
|
// lint-staged is ESM since 12.0
|
|
15
15
|
// const lintStaged = await import('lint-staged')
|
|
16
16
|
// eslint-disable-next-line no-eval
|
|
17
|
-
const lintStaged =
|
|
17
|
+
const { default: lintStaged } = await eval(`import('lint-staged')`);
|
|
18
18
|
const success = await lintStaged({
|
|
19
19
|
configPath: config,
|
|
20
20
|
});
|