mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
build: Update ESLint to v9 (#16639)
This commit is contained in:
@@ -1,12 +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: ['src/expressions/grammar*.ts'],
|
||||
};
|
||||
11
packages/@n8n/codemirror-lang/eslint.config.mjs
Normal file
11
packages/@n8n/codemirror-lang/eslint.config.mjs
Normal file
@@ -0,0 +1,11 @@
|
||||
import { defineConfig, globalIgnores } from 'eslint/config';
|
||||
import { baseConfig } from '@n8n/eslint-config/base';
|
||||
|
||||
export default defineConfig(baseConfig, globalIgnores(['src/expressions/grammar*.ts']), {
|
||||
rules: {
|
||||
// TODO: Remove this
|
||||
'@typescript-eslint/naming-convention': 'warn',
|
||||
'no-useless-escape': 'warn',
|
||||
'@typescript-eslint/unbound-method': 'warn',
|
||||
},
|
||||
});
|
||||
@@ -22,8 +22,8 @@
|
||||
"generate": "pnpm generate:expressions:grammar && pnpm format",
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
"test": "jest",
|
||||
"lint": "eslint . --ext .ts --quiet",
|
||||
"lintfix": "eslint . --ext .ts --fix",
|
||||
"lint": "eslint . --quiet",
|
||||
"lintfix": "eslint . --fix",
|
||||
"format": "biome format --write src test",
|
||||
"format:check": "biome ci src test"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user