详细说明: - 修复了@n8n/config包的TypeScript配置错误 - 移除了不存在的jest-expect-message类型引用 - 清理了所有TypeScript构建缓存 - 更新了可行性分析文档,添加了技术实施方案 - 更新了Agent prompt文档 - 添加了会展策划工作流文档 - 包含了n8n-chinese-translation子项目 - 添加了exhibition-demo展示系统框架
40 lines
1.3 KiB
JavaScript
Executable File
40 lines
1.3 KiB
JavaScript
Executable File
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
import { baseConfig } from '@n8n/eslint-config/base';
|
|
import cypressPlugin from 'eslint-plugin-cypress/flat';
|
|
|
|
export default defineConfig(
|
|
globalIgnores(['scripts/**/*.js']),
|
|
baseConfig,
|
|
cypressPlugin.configs.recommended,
|
|
{
|
|
rules: {
|
|
// TODO: Remove this
|
|
'no-useless-escape': 'warn',
|
|
'import-x/order': 'warn',
|
|
'import-x/no-extraneous-dependencies': [
|
|
'error',
|
|
{
|
|
devDependencies: ['**/cypress/**'],
|
|
optionalDependencies: false,
|
|
},
|
|
],
|
|
'@typescript-eslint/naming-convention': 'warn',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
'@typescript-eslint/no-unused-expressions': 'warn',
|
|
'@typescript-eslint/no-use-before-define': 'warn',
|
|
'@typescript-eslint/promise-function-async': 'warn',
|
|
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
|
|
'@typescript-eslint/unbound-method': 'warn',
|
|
'cypress/no-assigning-return-values': 'warn',
|
|
'cypress/no-unnecessary-waiting': 'warn',
|
|
'cypress/unsafe-to-chain-command': 'warn',
|
|
'n8n-local-rules/no-uncaught-json-parse': 'warn',
|
|
},
|
|
},
|
|
);
|