-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
43 lines (42 loc) · 921 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
43 lines (42 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { n8nCommunityNodesPlugin } from '@n8n/eslint-plugin-community-nodes';
import tsParser from '@typescript-eslint/parser';
/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: ['**/dist/**', '**/node_modules/**', '**/*.js', 'scripts/**'],
},
n8nCommunityNodesPlugin.configs.recommended,
{
files: ['**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 'latest',
sourceType: 'module',
},
},
},
{
files: ['package.json'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: './tsconfig.json',
extraFileExtensions: ['.json'],
},
},
},
{
files: ['**/HaloPsaTrigger.node.ts'],
rules: {
'@n8n/community-nodes/node-usable-as-tool': 'off',
},
},
{
files: ['**/normalizeEndpoint.ts'],
rules: {
'@n8n/community-nodes/require-node-api-error': 'off',
},
},
];