forked from redanthrax/cove-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
55 lines (54 loc) · 1.3 KB
/
Copy patheslint.config.mjs
File metadata and controls
55 lines (54 loc) · 1.3 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
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: ['**/CoveDataProtectionApi.credentials.ts'],
rules: {
'@n8n/community-nodes/icon-validation': 'off',
'@n8n/community-nodes/cred-class-field-icon-missing': 'off',
},
},
{
files: ['**/CoveDataProtection.node.ts'],
rules: {
'@n8n/community-nodes/require-continue-on-fail': 'off',
'@n8n/community-nodes/icon-prefer-themed-variants': 'off',
},
},
{
files: [
'**/nodes/CoveDataProtection/transport.ts',
'**/nodes/CoveDataProtection/actions/router.ts',
],
rules: {
'@n8n/community-nodes/require-node-api-error': 'off',
'@n8n/community-nodes/no-http-request-with-manual-auth': 'off',
},
},
];