@robinblomberg/eslint-config-robinblomberg 0.7.5 → 0.7.9
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/index.js +15 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3,8 +3,6 @@ const error = 'error';
|
|
|
3
3
|
const off = 'off';
|
|
4
4
|
const warn = IS_DEVELOPMENT ? 'warn' : 'error';
|
|
5
5
|
|
|
6
|
-
const camelCasePrefixes = ['I', 'T'];
|
|
7
|
-
|
|
8
6
|
// eslint-disable-next-line import/no-commonjs
|
|
9
7
|
module.exports = {
|
|
10
8
|
env: {
|
|
@@ -127,7 +125,14 @@ module.exports = {
|
|
|
127
125
|
// '@typescript-eslint/index': warn,
|
|
128
126
|
'@typescript-eslint/init-declarations': off,
|
|
129
127
|
'@typescript-eslint/keyword-spacing': warn,
|
|
130
|
-
'@typescript-eslint/lines-between-class-members':
|
|
128
|
+
'@typescript-eslint/lines-between-class-members': [
|
|
129
|
+
warn,
|
|
130
|
+
'always',
|
|
131
|
+
{
|
|
132
|
+
exceptAfterOverload: true,
|
|
133
|
+
exceptAfterSingleLine: true,
|
|
134
|
+
},
|
|
135
|
+
],
|
|
131
136
|
'@typescript-eslint/member-delimiter-style': [
|
|
132
137
|
warn,
|
|
133
138
|
{
|
|
@@ -197,14 +202,12 @@ module.exports = {
|
|
|
197
202
|
'@typescript-eslint/naming-convention': [
|
|
198
203
|
warn,
|
|
199
204
|
{
|
|
200
|
-
format: ['
|
|
205
|
+
format: ['camelCase'],
|
|
201
206
|
leadingUnderscore: 'allow',
|
|
202
|
-
prefix: camelCasePrefixes,
|
|
203
207
|
selector: 'default',
|
|
204
208
|
},
|
|
205
209
|
{
|
|
206
|
-
format: ['
|
|
207
|
-
prefix: camelCasePrefixes,
|
|
210
|
+
format: ['PascalCase'],
|
|
208
211
|
selector: [
|
|
209
212
|
'class',
|
|
210
213
|
'enum',
|
|
@@ -214,19 +217,16 @@ module.exports = {
|
|
|
214
217
|
],
|
|
215
218
|
},
|
|
216
219
|
{
|
|
217
|
-
format: ['
|
|
218
|
-
prefix: camelCasePrefixes,
|
|
220
|
+
format: ['camelCase', 'PascalCase'],
|
|
219
221
|
selector: ['function'],
|
|
220
222
|
},
|
|
221
223
|
{
|
|
222
|
-
format: ['
|
|
223
|
-
prefix: camelCasePrefixes,
|
|
224
|
+
format: ['camelCase', 'UPPER_CASE'],
|
|
224
225
|
selector: ['objectLiteralMethod', 'objectLiteralProperty'],
|
|
225
226
|
},
|
|
226
227
|
{
|
|
227
|
-
format: ['
|
|
228
|
+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
|
228
229
|
leadingUnderscore: 'allow',
|
|
229
|
-
prefix: camelCasePrefixes,
|
|
230
230
|
selector: ['variable'],
|
|
231
231
|
},
|
|
232
232
|
{
|
|
@@ -410,6 +410,8 @@ module.exports = {
|
|
|
410
410
|
'jsdoc/require-returns-description': off,
|
|
411
411
|
'jsdoc/require-returns-type': off,
|
|
412
412
|
'keyword-spacing': off,
|
|
413
|
+
'lines-between-class-members': off,
|
|
414
|
+
'no-dupe-class-members': off,
|
|
413
415
|
'no-empty-function': off,
|
|
414
416
|
'no-extra-parens': off,
|
|
415
417
|
'no-extra-semi': off,
|