mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
build: Update ESLint to v9 (#16639)
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
const sharedOptions = require('@n8n/eslint-config/shared');
|
||||
|
||||
/**
|
||||
* @type {import('@types/eslint').ESLint.ConfigData}
|
||||
*/
|
||||
module.exports = {
|
||||
extends: ['@n8n/eslint-config/node'],
|
||||
|
||||
...sharedOptions(__dirname),
|
||||
};
|
||||
10
packages/@n8n/utils/eslint.config.mjs
Normal file
10
packages/@n8n/utils/eslint.config.mjs
Normal file
@@ -0,0 +1,10 @@
|
||||
import { defineConfig } from 'eslint/config';
|
||||
import { nodeConfig } from '@n8n/eslint-config/node';
|
||||
|
||||
export default defineConfig(nodeConfig, {
|
||||
rules: {
|
||||
// TODO: Remove this
|
||||
'no-prototype-builtins': 'warn',
|
||||
'@typescript-eslint/require-await': 'warn',
|
||||
},
|
||||
});
|
||||
@@ -24,8 +24,8 @@
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest run",
|
||||
"test:dev": "vitest --silent=false",
|
||||
"lint": "eslint src --ext .js,.ts,.vue --quiet",
|
||||
"lintfix": "eslint src --ext .js,.ts,.vue --fix",
|
||||
"lint": "eslint src --quiet",
|
||||
"lintfix": "eslint src --fix",
|
||||
"format": "biome format --write . && prettier --write . --ignore-path ../../../.prettierignore",
|
||||
"format:check": "biome ci . && prettier --check . --ignore-path ../../../.prettierignore"
|
||||
},
|
||||
@@ -36,9 +36,9 @@
|
||||
"@testing-library/jest-dom": "catalog:frontend",
|
||||
"@testing-library/user-event": "catalog:frontend",
|
||||
"tsup": "catalog:",
|
||||
"typescript": "catalog:frontend",
|
||||
"vite": "catalog:frontend",
|
||||
"vitest": "catalog:frontend"
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:",
|
||||
"vitest": "catalog:"
|
||||
},
|
||||
"license": "See LICENSE.md file in the root of the repository"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export type CallbackFn = Function;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export type CallbackFn = (...args: any[]) => any;
|
||||
|
||||
type Payloads<ListenerMap> = {
|
||||
[E in keyof ListenerMap]: unknown;
|
||||
|
||||
@@ -221,7 +221,7 @@ function getValue<T extends object>(obj: T, prop: string): unknown {
|
||||
|
||||
export function sublimeSearch<T extends object>(
|
||||
filter: string,
|
||||
data: Readonly<T[]>,
|
||||
data: readonly T[],
|
||||
keys: Array<{ key: string; weight: number }> = DEFAULT_KEYS,
|
||||
): Array<{ score: number; item: T }> {
|
||||
const results = data.reduce((accu: Array<{ score: number; item: T }>, item: T) => {
|
||||
|
||||
Reference in New Issue
Block a user