forked from ivov/eslint-plugin-n8n-nodes-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
78 lines (72 loc) · 2.13 KB
/
.eslintrc.js
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: ["./tsconfig.json"],
},
plugins: [
/**
* Plugin with ruleset required by eslint-config-airbnb-typescript
* https://github.com/iamturns/eslint-config-airbnb-typescript#2-install-eslint-plugins
*/
"@typescript-eslint/eslint-plugin",
/**
* Plugin to lint import/export syntax
* https://github.com/import-js/eslint-plugin-import
*/
"eslint-plugin-import",
/**
* Plugin to report misformatting as lint violations
* https://github.com/prettier/eslint-plugin-prettier
*/
"eslint-plugin-prettier",
/**
* Plugin to lint ESLint plugins
* https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin
*/
"eslint-plugin-eslint-plugin",
],
extends: [
/**
* Config for Airbnb style guide for TS, /base to remove React rules
*
* https://github.com/iamturns/eslint-config-airbnb-typescript
* https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base/rules
*/
"eslint-config-airbnb-typescript/base",
/**
* Config for rules recommended by typescript-eslint (without type checking)
*
* https://github.com/typescript-eslint/typescript-eslint/blob/1c1b572c3000d72cfe665b7afbada0ec415e7855/packages/eslint-plugin/src/configs/recommended.ts
*/
"plugin:@typescript-eslint/recommended",
/**
* Config to disable ESLint rules covered by Prettier
*
* https://github.com/prettier/eslint-config-prettier
*/
"eslint-config-prettier",
/**
* Recommended config for eslint-plugin-eslint-plugin
*/
"plugin:eslint-plugin/recommended",
],
rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "variable",
format: ["camelCase", "PascalCase", "UPPER_CASE"],
leadingUnderscore: "allow",
},
],
},
};