@naturalcycles/dev-lib 13.51.0 → 13.51.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
|
@@ -149,7 +149,7 @@ module.exports = {
|
|
|
149
149
|
complexity: [
|
|
150
150
|
2,
|
|
151
151
|
{
|
|
152
|
-
max:
|
|
152
|
+
max: 40,
|
|
153
153
|
},
|
|
154
154
|
],
|
|
155
155
|
'constructor-super': 2,
|
|
@@ -354,6 +354,7 @@ module.exports = {
|
|
|
354
354
|
'unicorn/no-array-push-push': 0,
|
|
355
355
|
'unicorn/no-abusive-eslint-disable': 0,
|
|
356
356
|
'unicorn/no-negated-condition': 0,
|
|
357
|
+
'unicorn/no-array-method-this-argument': 0, // bug: wrongly removes`readable.flatMap` concurrency option
|
|
357
358
|
'unicorn/number-literal-case': 0, // conflicts with prettier
|
|
358
359
|
'unicorn/prevent-abbreviations': 0,
|
|
359
360
|
'unicorn/prefer-module': 0,
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
Supports default configs for `prettier`, `stylelint`, `eslint`, if they are not found in target project.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// this probably doesn't work, but we're still trying
|
|
8
|
+
process.env['ESLINT_USE_FLAT_CONFIG'] = 'false'
|
|
9
|
+
|
|
7
10
|
const micromatch = require('micromatch')
|
|
8
11
|
const fs = require('node:fs')
|
|
9
12
|
const { execSync } = require('node:child_process')
|
|
@@ -10,6 +10,8 @@ const paths_cnst_1 = require("../cnst/paths.cnst");
|
|
|
10
10
|
const localConfig = `./lint-staged.config.js`;
|
|
11
11
|
const sharedConfig = `${paths_cnst_1.cfgDir}/lint-staged.config.js`;
|
|
12
12
|
const config = node_fs_1.default.existsSync(localConfig) ? localConfig : sharedConfig;
|
|
13
|
+
// this probably doesn't work, but we're still trying
|
|
14
|
+
process.env['ESLINT_USE_FLAT_CONFIG'] = 'false';
|
|
13
15
|
// await execWithArgs(`lint-staged`, [`--config`, config])
|
|
14
16
|
// const lintStaged = require('lint-staged')
|
|
15
17
|
// lint-staged is ESM since 12.0
|