refactor: Linting in andere workspaces

This commit is contained in:
Tibo De Peuter 2025-03-23 14:39:40 +01:00
parent 65ebf1a083
commit 103af06cc9
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 4 additions and 7 deletions

View file

@ -6,9 +6,9 @@ import { includeIgnoreFile } from '@eslint/compat';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, '.gitignore');
const filename = fileURLToPath(import.meta.url);
const dirname = path.dirname(filename);
const gitignorePath = path.resolve(dirname, '.gitignore');
export default [
pluginJs.configs.recommended,
@ -194,14 +194,11 @@ export default [
'no-console': 'warn',
'no-continue': 'warn',
'no-else-return': 'warn',
'no-empty-function': 'warn',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-label': 'error',
'no-implicit-coercion': 'warn',
'no-implied-eval': 'error',
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-label-var': 'warn',
'no-labels': 'warn',