@allthings/eslint-config 2.2.0-dev.0 → 2.2.0-dev.1

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 (3) hide show
  1. package/index.js +11 -1
  2. package/node.js +11 -0
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -146,6 +146,8 @@ module.exports = {
146
146
  '@typescript-eslint/no-inferrable-types': 'error',
147
147
  '@typescript-eslint/no-misused-new': 'error',
148
148
  '@typescript-eslint/no-namespace': 'error',
149
+ '@typescript-eslint/no-redundant-type-constituents': 'warn',
150
+ '@typescript-eslint/no-require-imports': 'warn',
149
151
  '@typescript-eslint/no-shadow': [
150
152
  'error',
151
153
  {
@@ -153,6 +155,11 @@ module.exports = {
153
155
  },
154
156
  ],
155
157
  '@typescript-eslint/no-this-alias': 'error',
158
+ '@typescript-eslint/no-unsafe-argument': 'warn',
159
+ '@typescript-eslint/no-unsafe-assignment': 'warn',
160
+ '@typescript-eslint/no-unsafe-call': 'warn',
161
+ '@typescript-eslint/no-unsafe-member-access': 'warn',
162
+ '@typescript-eslint/no-unsafe-return': 'warn',
156
163
  '@typescript-eslint/no-unused-expressions': 'error',
157
164
  '@typescript-eslint/no-unused-vars': [
158
165
  'error',
@@ -163,7 +170,8 @@ module.exports = {
163
170
  '@typescript-eslint/prefer-for-of': 'error',
164
171
  '@typescript-eslint/prefer-function-type': 'error',
165
172
  '@typescript-eslint/prefer-namespace-keyword': 'error',
166
- '@typescript-eslint/prefer-nullish-coalescing': 'warn',
173
+ '@typescript-eslint/prefer-nullish-coalescing': 'off',
174
+ '@typescript-eslint/prefer-promise-reject-errors': 'warn',
167
175
  '@typescript-eslint/triple-slash-reference': [
168
176
  'error',
169
177
  {
@@ -311,6 +319,7 @@ module.exports = {
311
319
  'unicorn/no-invalid-remove-event-listener': 'warn',
312
320
  'unicorn/no-nested-ternary': 'off',
313
321
  'unicorn/no-object-as-default-parameter': 'warn',
322
+ 'unicorn/no-single-promise-in-promise-methods': 'warn',
314
323
  'unicorn/no-unreadable-array-destructuring': 'off',
315
324
  'unicorn/no-unsafe-regex': 'off',
316
325
  'unicorn/no-unused-properties': 'warn',
@@ -397,6 +406,7 @@ module.exports = {
397
406
  rules: {
398
407
  '@typescript-eslint/explicit-function-return-type': 'off',
399
408
  '@typescript-eslint/no-explicit-any': 'off',
409
+ '@typescript-eslint/no-misused-promises': 'off',
400
410
  },
401
411
  },
402
412
  ],
package/node.js CHANGED
@@ -136,6 +136,8 @@ module.exports = {
136
136
  '@typescript-eslint/no-inferrable-types': 'error',
137
137
  '@typescript-eslint/no-misused-new': 'error',
138
138
  '@typescript-eslint/no-namespace': 'error',
139
+ '@typescript-eslint/no-redundant-type-constituents': 'warn',
140
+ '@typescript-eslint/no-require-imports': 'warn',
139
141
  '@typescript-eslint/no-shadow': [
140
142
  'error',
141
143
  {
@@ -143,6 +145,11 @@ module.exports = {
143
145
  },
144
146
  ],
145
147
  '@typescript-eslint/no-this-alias': 'error',
148
+ '@typescript-eslint/no-unsafe-argument': 'warn',
149
+ '@typescript-eslint/no-unsafe-assignment': 'warn',
150
+ '@typescript-eslint/no-unsafe-call': 'warn',
151
+ '@typescript-eslint/no-unsafe-member-access': 'warn',
152
+ '@typescript-eslint/no-unsafe-return': 'warn',
146
153
  '@typescript-eslint/no-unused-expressions': 'error',
147
154
  '@typescript-eslint/no-unused-vars': 'error',
148
155
  '@typescript-eslint/no-use-before-define': 'error',
@@ -150,6 +157,8 @@ module.exports = {
150
157
  '@typescript-eslint/prefer-for-of': 'error',
151
158
  '@typescript-eslint/prefer-function-type': 'error',
152
159
  '@typescript-eslint/prefer-namespace-keyword': 'error',
160
+ '@typescript-eslint/prefer-nullish-coalescing': 'off',
161
+ '@typescript-eslint/prefer-promise-reject-errors': 'warn',
153
162
  '@typescript-eslint/triple-slash-reference': [
154
163
  'error',
155
164
  {
@@ -278,6 +287,7 @@ module.exports = {
278
287
  'unicorn/no-invalid-remove-event-listener': 'warn',
279
288
  'unicorn/no-nested-ternary': 'off',
280
289
  'unicorn/no-object-as-default-parameter': 'warn',
290
+ 'unicorn/no-single-promise-in-promise-methods': 'warn',
281
291
  'unicorn/no-unreadable-array-destructuring': 'off',
282
292
  'unicorn/no-unsafe-regex': 'off',
283
293
  'unicorn/no-unused-properties': 'warn',
@@ -350,6 +360,7 @@ module.exports = {
350
360
  rules: {
351
361
  '@typescript-eslint/explicit-function-return-type': 'off',
352
362
  '@typescript-eslint/no-explicit-any': 'off',
363
+ '@typescript-eslint/no-misused-promises': 'off',
353
364
  },
354
365
  },
355
366
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/eslint-config",
3
- "version": "2.2.0-dev.0",
3
+ "version": "2.2.0-dev.1",
4
4
  "description": "ESlint shareable config for Allthings style",
5
5
  "main": "index.js",
6
6
  "files": [