Skip to content

Commit 4166956

Browse files
committed
refactor(eslint-multi-formatter): fix lint
1 parent ee9aae1 commit 4166956

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tools/eslint-multi-format/eslint.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ export default tseslint.config(
1515
{
1616
files: ['**/*.json'],
1717
rules: {
18-
'@nx/dependency-checks': 'error',
18+
'@nx/dependency-checks': [
19+
'error',
20+
{
21+
ignoredDependencies: ['@nx/vite', 'vite', 'vite-plugin-dts'],
22+
},
23+
],
1924
},
2025
},
2126
);

tools/eslint-multi-format/src/lib/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,15 @@ export function persistEslintReport(
128128
): boolean {
129129
const { outputDir, filename, format, verbose = false } = options;
130130
try {
131+
// eslint-disable-next-line n/no-sync
131132
mkdirSync(outputDir, { recursive: true });
133+
// eslint-disable-next-line n/no-sync
132134
writeFileSync(
133135
path.join(outputDir, `${filename}.${getExtensionForFormat(format)}`),
134136
content,
135137
);
136138
if (verbose) {
139+
// eslint-disable-next-line no-console
137140
console.log(`ESLint report (${format}) written to: ${outputDir}`);
138141
}
139142
return true;

0 commit comments

Comments
 (0)