@keeex/eslint-config 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/config/typescript.js +12 -0
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keeex/eslint-config",
|
|
3
3
|
"description": "Common eslint configuration",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.11.0",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"src/**/*.js"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"check": "npx eslint .",
|
|
11
|
+
"prepublishOnly": "publish_check.sh",
|
|
11
12
|
"test": "echo No test for this project"
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
package/src/config/typescript.js
CHANGED
|
@@ -63,6 +63,7 @@ const rulesBase = {
|
|
|
63
63
|
"ignoreComments": true,
|
|
64
64
|
},
|
|
65
65
|
],
|
|
66
|
+
"@typescript-eslint/member-delimiter-style": ["warn"],
|
|
66
67
|
"@typescript-eslint/member-ordering": [
|
|
67
68
|
"warn",
|
|
68
69
|
{
|
|
@@ -74,6 +75,7 @@ const rulesBase = {
|
|
|
74
75
|
"public-static-field",
|
|
75
76
|
"protected-static-field",
|
|
76
77
|
"private-static-field",
|
|
78
|
+
"#private-static-field",
|
|
77
79
|
|
|
78
80
|
"public-decorated-field",
|
|
79
81
|
"protected-decorated-field",
|
|
@@ -82,6 +84,7 @@ const rulesBase = {
|
|
|
82
84
|
"public-instance-field",
|
|
83
85
|
"protected-instance-field",
|
|
84
86
|
"private-instance-field",
|
|
87
|
+
"#private-instance-field",
|
|
85
88
|
|
|
86
89
|
"public-abstract-field",
|
|
87
90
|
"protected-abstract-field",
|
|
@@ -89,6 +92,7 @@ const rulesBase = {
|
|
|
89
92
|
"public-field",
|
|
90
93
|
"protected-field",
|
|
91
94
|
"private-field",
|
|
95
|
+
"#private-field",
|
|
92
96
|
|
|
93
97
|
"static-field",
|
|
94
98
|
"instance-field",
|
|
@@ -99,6 +103,7 @@ const rulesBase = {
|
|
|
99
103
|
"field",
|
|
100
104
|
|
|
101
105
|
// Constructors
|
|
106
|
+
"static-initialization",
|
|
102
107
|
"public-constructor",
|
|
103
108
|
"protected-constructor",
|
|
104
109
|
"private-constructor",
|
|
@@ -109,6 +114,7 @@ const rulesBase = {
|
|
|
109
114
|
["public-static-get", "public-static-set"],
|
|
110
115
|
["protected-static-get", "protected-static-set"],
|
|
111
116
|
["private-static-get", "private-static-set"],
|
|
117
|
+
["#private-static-get", "#private-static-set"],
|
|
112
118
|
|
|
113
119
|
["public-decorated-get", "public-decorated-set"],
|
|
114
120
|
["protected-decorated-get", "protected-decorated-set"],
|
|
@@ -117,6 +123,7 @@ const rulesBase = {
|
|
|
117
123
|
["public-instance-get", "public-instance-set"],
|
|
118
124
|
["protected-instance-get", "protected-instance-set"],
|
|
119
125
|
["private-instance-get", "private-instance-set"],
|
|
126
|
+
["#private-instance-get", "#private-instance-set"],
|
|
120
127
|
|
|
121
128
|
["public-abstract-get", "public-abstract-set"],
|
|
122
129
|
["protected-abstract-get", "protected-abstract-set"],
|
|
@@ -124,6 +131,7 @@ const rulesBase = {
|
|
|
124
131
|
["public-get", "public-set"],
|
|
125
132
|
["protected-get", "protected-set"],
|
|
126
133
|
["private-get", "private-set"],
|
|
134
|
+
["#private-get", "#private-set"],
|
|
127
135
|
|
|
128
136
|
["static-get", "static-set"],
|
|
129
137
|
["instance-get", "instance-set"],
|
|
@@ -137,6 +145,7 @@ const rulesBase = {
|
|
|
137
145
|
"public-static-method",
|
|
138
146
|
"protected-static-method",
|
|
139
147
|
"private-static-method",
|
|
148
|
+
"#private-static-method",
|
|
140
149
|
|
|
141
150
|
"public-decorated-method",
|
|
142
151
|
"protected-decorated-method",
|
|
@@ -145,6 +154,7 @@ const rulesBase = {
|
|
|
145
154
|
"public-instance-method",
|
|
146
155
|
"protected-instance-method",
|
|
147
156
|
"private-instance-method",
|
|
157
|
+
"#private-instance-method",
|
|
148
158
|
|
|
149
159
|
"public-abstract-method",
|
|
150
160
|
"protected-abstract-method",
|
|
@@ -152,6 +162,7 @@ const rulesBase = {
|
|
|
152
162
|
"public-method",
|
|
153
163
|
"protected-method",
|
|
154
164
|
"private-method",
|
|
165
|
+
"#private-method",
|
|
155
166
|
|
|
156
167
|
"static-method",
|
|
157
168
|
"instance-method",
|
|
@@ -219,6 +230,7 @@ const rulesBase = {
|
|
|
219
230
|
"allowCallbacks": "always",
|
|
220
231
|
"allowMappedTypes": "always",
|
|
221
232
|
"allowGenerics": "always",
|
|
233
|
+
"allowConditionalTypes": "always",
|
|
222
234
|
},
|
|
223
235
|
],
|
|
224
236
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": ["error"],
|