@robinblomberg/eslint-config-robinblomberg 0.7.11 → 0.8.3

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.
Files changed (2) hide show
  1. package/index.js +23 -20
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -198,7 +198,7 @@ module.exports = {
198
198
  ],
199
199
  },
200
200
  ],
201
- '@typescript-eslint/method-signature-style': [warn, 'property'],
201
+ '@typescript-eslint/method-signature-style': [warn, 'method'],
202
202
  '@typescript-eslint/naming-convention': [
203
203
  warn,
204
204
  {
@@ -207,14 +207,8 @@ module.exports = {
207
207
  selector: 'default',
208
208
  },
209
209
  {
210
- format: ['PascalCase'],
211
- selector: [
212
- 'class',
213
- 'enum',
214
- 'interface',
215
- 'typeAlias',
216
- 'typeParameter',
217
- ],
210
+ format: ['camelCase', 'snake_case', 'PascalCase', 'UPPER_CASE'],
211
+ selector: ['objectLiteralProperty'],
218
212
  },
219
213
  {
220
214
  format: ['camelCase', 'PascalCase'],
@@ -222,12 +216,18 @@ module.exports = {
222
216
  },
223
217
  {
224
218
  format: ['camelCase', 'UPPER_CASE'],
225
- selector: ['objectLiteralMethod', 'objectLiteralProperty'],
219
+ leadingUnderscore: 'allow',
220
+ selector: ['objectLiteralMethod', 'typeMethod', 'variable'],
226
221
  },
227
222
  {
228
- format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
229
- leadingUnderscore: 'allow',
230
- selector: ['variable'],
223
+ format: ['PascalCase'],
224
+ selector: [
225
+ 'class',
226
+ 'enum',
227
+ 'interface',
228
+ 'typeAlias',
229
+ 'typeParameter',
230
+ ],
231
231
  },
232
232
  {
233
233
  format: ['UPPER_CASE'],
@@ -265,12 +265,7 @@ module.exports = {
265
265
  },
266
266
  ],
267
267
  '@typescript-eslint/no-for-in-array': warn,
268
- '@typescript-eslint/no-implicit-any-catch': [
269
- warn,
270
- {
271
- allowExplicitAny: true,
272
- },
273
- ],
268
+ '@typescript-eslint/no-implicit-any-catch': off,
274
269
  '@typescript-eslint/no-implied-eval': warn,
275
270
  '@typescript-eslint/no-inferrable-types': warn,
276
271
  '@typescript-eslint/no-invalid-this': warn,
@@ -742,6 +737,13 @@ module.exports = {
742
737
  'jsdoc/require-jsdoc': off,
743
738
  },
744
739
  },
740
+ {
741
+ files: ['**/*.config.js', '**/*.config.ts'],
742
+ rules: {
743
+ '@typescript-eslint/no-magic-numbers': off,
744
+ 'no-magic-numbers': off,
745
+ },
746
+ },
745
747
  {
746
748
  files: [
747
749
  '**/*.stories.js',
@@ -1303,7 +1305,8 @@ module.exports = {
1303
1305
  },
1304
1306
  ],
1305
1307
  radix: warn,
1306
- 'require-atomic-updates': warn,
1308
+ // Disabled due to false (?) positives:
1309
+ 'require-atomic-updates': off,
1307
1310
  'require-await': warn,
1308
1311
  'require-unicode-regexp': off,
1309
1312
  'require-yield': warn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.7.11",
3
+ "version": "0.8.3",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {