@naturalcycles/dev-lib 13.23.2 → 13.24.0

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.
@@ -9,7 +9,6 @@ exports.expectResults = void 0;
9
9
  * ]).toMatchSnapshot()
10
10
  */
11
11
  function expectResults(fn, values) {
12
- // eslint-disable-next-line jest/valid-expect
13
12
  return expect(new Map(values.map(v => [v, fn(v)])));
14
13
  }
15
14
  exports.expectResults = expectResults;
@@ -14,7 +14,6 @@ function getTSConfigPathScripts() {
14
14
  return [`./scripts/tsconfig.json`].find(p => fs.existsSync(p)) || `${paths_cnst_1.scriptsDir}/tsconfig.json`;
15
15
  }
16
16
  exports.getTSConfigPathScripts = getTSConfigPathScripts;
17
- // eslint-disable-next-line max-params
18
17
  async function runESLint(dir, eslintConfigPath, tsconfigPath, extensions = ['ts', 'tsx', 'vue'], fix = true) {
19
18
  if (!fs.existsSync(dir))
20
19
  return; // faster to bail-out like this
@@ -24,6 +23,7 @@ async function runESLint(dir, eslintConfigPath, tsconfigPath, extensions = ['ts'
24
23
  `${dir}/**/*.{${extensions.join(',')}}`,
25
24
  ...(tsconfigPath ? [`--parser-options=project:${tsconfigPath}`] : []),
26
25
  `--no-error-on-unmatched-pattern`,
26
+ `--report-unused-disable-directives`,
27
27
  fix ? `--fix` : '',
28
28
  ].filter(Boolean);
29
29
  await (0, exec_1.execWithArgs)('eslint', args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.23.2",
3
+ "version": "13.24.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",