@fullstacksjs/eslint-config 9.1.0 → 9.1.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.
package/base.js CHANGED
@@ -238,6 +238,8 @@ module.exports = {
238
238
  'padding-line-between-statements': 'off',
239
239
  'space-before-blocks': 'off',
240
240
  'dot-notation': 'off',
241
+ 'no-throw-literal': 'off',
242
+ 'require-await': 'off',
241
243
  }),
242
244
  },
243
245
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
package/typecheck.js CHANGED
@@ -14,14 +14,14 @@ module.exports = {
14
14
  allowIndexSignaturePropertyAccess: true,
15
15
  },
16
16
  ],
17
- '@typescript-eslint/no-confusing-void-expression': ['warn', { ignoreArrowShorthand: true, ignoreVoidOperator: true }],
17
+ '@typescript-eslint/no-confusing-void-expression': ['off', { ignoreArrowShorthand: true, ignoreVoidOperator: true }], // Annoying and conflict with @typescript-eslint/no-meaningless-void-operator
18
18
  '@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
19
19
  '@typescript-eslint/no-for-in-array': 'error',
20
20
  '@typescript-eslint/no-implied-eval': 'error',
21
21
  '@typescript-eslint/no-meaningless-void-operator': ['warn', { checkNever: false }],
22
22
  '@typescript-eslint/no-misused-promises': ['warn', { checksVoidReturn: { attributes: false } }],
23
23
  '@typescript-eslint/no-redundant-type-constituents': 'warn',
24
- '@typescript-eslint/no-throw-literal': 'error',
24
+ '@typescript-eslint/no-throw-literal': ['warn', { allowThrowingUnknown: false }],
25
25
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
26
26
  '@typescript-eslint/no-unnecessary-condition': [
27
27
  'warn',
@@ -48,7 +48,7 @@ module.exports = {
48
48
  '@typescript-eslint/prefer-regexp-exec': 'warn',
49
49
  '@typescript-eslint/prefer-return-this-type': 'warn',
50
50
  '@typescript-eslint/prefer-string-starts-ends-with': 'warn',
51
- '@typescript-eslint/require-array-sort-compare': 'error',
51
+ '@typescript-eslint/require-array-sort-compare': ['error', { ignoreStringArrays: true }],
52
52
  '@typescript-eslint/require-await': 'error',
53
53
  '@typescript-eslint/return-await': 'error',
54
54
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
package/typescript.js CHANGED
@@ -126,7 +126,7 @@ module.exports = {
126
126
  '@typescript-eslint/promise-function-async': 'off',
127
127
  '@typescript-eslint/restrict-plus-operands': 'off',
128
128
  '@typescript-eslint/restrict-template-expressions': [
129
- 'off',
129
+ 'warn',
130
130
  { allowNumber: true, allowBoolean: false, allowAny: false, allowNullish: false, allowRegExp: false },
131
131
  ],
132
132
  '@typescript-eslint/sort-type-constituents': [