ci: Expand ESLint to tests in BE packages (no-changelog) (#6147)

* 🔧 Adjust base ESLint config

* 🔧 Adjust `lint` and `lintfix` in `nodes-base`

* 🔧 Include `test` and `utils` in `nodes-base`

* 📘 Convert JS tests to TS

* 👕 Apply lintfixes
This commit is contained in:
Iván Ovejero
2023-05-02 10:37:19 +02:00
committed by GitHub
parent c63181b317
commit 06fa6f1fb3
59 changed files with 390 additions and 307 deletions

View File

@@ -5,7 +5,6 @@ import type {
DeclarativeRestApiSettings,
IRunExecutionData,
INodeProperties,
IDataObject,
IExecuteSingleFunctions,
IHttpRequestOptions,
IN8nHttpFullResponse,
@@ -34,7 +33,7 @@ const preSendFunction1 = async function (
this: IExecuteSingleFunctions,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
requestOptions.headers = (requestOptions.headers || {}) as IDataObject;
requestOptions.headers = requestOptions.headers || {};
requestOptions.headers.addedIn = 'preSendFunction1';
return requestOptions;
};
@@ -344,6 +343,7 @@ describe('RoutingNode', () => {
type: 'string',
routing: {
send: {
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
property: '={{ `value${5+1}A` }}',
type: 'query',
value: '={{$value.toUpperCase()}}',
@@ -357,6 +357,7 @@ describe('RoutingNode', () => {
type: 'string',
routing: {
send: {
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
property: '={{ `value${6+1}B` }}',
type: 'body',
value: "={{$value.split(',')}}",