forked from lucassm02/nodejs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·114 lines (114 loc) · 2.52 KB
/
.eslintrc.json
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"env": {
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-import-helpers",
"prettier"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn", // TODO: Remover this in the near future
"@typescript-eslint/no-unused-vars": "warn",
"no-unreachable-loop": "off",
"no-labels": "off",
"no-unused-labels": "off",
"no-underscore-dangle": "off",
"no-throw-literal": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"no-param-reassign": "off",
"func-names": "off",
"import/export": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-namespace-keyword": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-namespace": "off",
"consistent-return": "off",
"@typescript-eslint/ban-types": "off",
"camelcase": "off",
"import/no-unresolved": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": [
"PascalCase"
],
"custom": {
"regex": "^[A-Z]",
"match": true
}
}
],
"class-methods-use-this": "off",
"import/prefer-default-export": "off",
"no-shadow": "off",
"no-console": [
"error"
],
"no-useless-constructor": "off",
"no-empty-function": "off",
"lines-between-class-members": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
],
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
"absolute",
"module",
"/^@/",
[
"parent",
"sibling",
"index"
]
]
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.spec.js",
"**/*.spec.ts",
"jest.config.ts"
]
}
],
"prettier/prettier": [
"error",
{},
{
"usePrettierrc": true
}
],
"no-use-before-define": "off"
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}