@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.
package/dist/util/lint.util.js
CHANGED
|
@@ -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);
|