build: Update ESLint to v9 (#16639)

This commit is contained in:
Elias Meire
2025-06-27 10:42:47 +02:00
committed by GitHub
parent a99ccfffe1
commit 0775fd859e
176 changed files with 5417 additions and 4111 deletions

View File

@@ -1,16 +0,0 @@
const sharedOptions = require('@n8n/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}
*/
module.exports = {
extends: ['@n8n/eslint-config/base'],
...sharedOptions(__dirname),
ignorePatterns: [
'templates/**', // TODO: remove this
],
rules: {
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
'n8n-local-rules/no-plain-errors': 'off',
},
};

View File

@@ -0,0 +1,12 @@
import { defineConfig } from 'eslint/config';
import { baseConfig } from '@n8n/eslint-config/base';
export default defineConfig(baseConfig, {
rules: {
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
// TODO: Remove this
'unicorn/filename-case': 'warn',
'@typescript-eslint/naming-convention': 'warn',
},
});

View File

@@ -15,8 +15,8 @@
"build-node-dev": "tsc",
"format": "biome format --write .",
"format:check": "biome ci .",
"lint": "eslint . --quiet",
"lintfix": "eslint . --fix",
"lint": "eslint src --quiet",
"lintfix": "eslint src --fix",
"prepack": "echo \"Building project...\" && rm -rf dist && tsc -b",
"watch": "tsc --watch"
},