n8n: throw on FAILED memory events (was silently returned), poll on any non-terminal status (PENDING or RUNNING), use top_k (not limit) for search, coerce search/getAll responses to arrays, guard invalid-JSON metadata, reject empty updates, mark user_id required; lint clean. Zapier: coerce boolean fields (String(x) !== 'false') + boolean defaults so "Wait"/"Infer = No" are honored, throw on HTTP >= 400 (was silent empty/fake-success), throw on FAILED events, use top_k, numeric coercion with clamping, mark user_id required.
32 lines
1.0 KiB
JavaScript
32 lines
1.0 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es6: true, node: true },
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: { sourceType: 'module', extraFileExtensions: ['.json'] },
|
|
ignorePatterns: ['.eslintrc.js', '**/*.js', '**/node_modules/**', '**/dist/**'],
|
|
overrides: [
|
|
{
|
|
files: ['package.json'],
|
|
plugins: ['eslint-plugin-n8n-nodes-base'],
|
|
extends: ['plugin:n8n-nodes-base/community'],
|
|
rules: { 'n8n-nodes-base/community-package-json-name-still-default': 'off' },
|
|
},
|
|
{
|
|
files: ['./credentials/**/*.ts'],
|
|
plugins: ['eslint-plugin-n8n-nodes-base'],
|
|
extends: ['plugin:n8n-nodes-base/credentials'],
|
|
rules: {
|
|
// This rule only applies to nodes in n8n's main repository (where
|
|
// documentationUrl is an internal docs slug). Community nodes use a
|
|
// full external URL, so it is disabled here.
|
|
'n8n-nodes-base/cred-class-field-documentation-url-miscased': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['./nodes/**/*.ts'],
|
|
plugins: ['eslint-plugin-n8n-nodes-base'],
|
|
extends: ['plugin:n8n-nodes-base/nodes'],
|
|
},
|
|
],
|
|
};
|