eslint-config-airbnb-extended 0.11.1 → 0.11.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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-require-imports, unicorn/prefer-module */
2
+ /* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-return, unicorn/prefer-module */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  /**
5
5
  * as is given due to less size of index.d.ts
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-require-imports, unicorn/prefer-module */
2
+ /* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-return, unicorn/prefer-module */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  /**
5
5
  * as is given due to less size of index.d.ts
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-require-imports, unicorn/prefer-module */
2
+ /* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-return, unicorn/prefer-module */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  /**
5
5
  * as is given due to less size of index.d.ts
@@ -78,7 +78,7 @@ const typescriptEslintStrictRules = {
78
78
  '@typescript-eslint/no-confusing-void-expression': [
79
79
  'error',
80
80
  {
81
- ignoreArrowShorthand: false,
81
+ ignoreArrowShorthand: true,
82
82
  ignoreVoidOperator: true,
83
83
  ignoreVoidReturningFunctions: false,
84
84
  },
@@ -113,14 +113,6 @@ const typescriptEslintStrictRules = {
113
113
  allowInGenericTypeArguments: true,
114
114
  },
115
115
  ],
116
- // Disallow the void operator except when used to discard a value.
117
- // https://typescript-eslint.io/rules/no-meaningless-void-operator
118
- '@typescript-eslint/no-meaningless-void-operator': [
119
- 'error',
120
- {
121
- checkNever: false,
122
- },
123
- ],
124
116
  // Disallow Promises in places not designed to handle them.
125
117
  // https://typescript-eslint.io/rules/no-misused-promises
126
118
  '@typescript-eslint/no-misused-promises': [
@@ -154,9 +146,6 @@ const typescriptEslintStrictRules = {
154
146
  // Disallow unnecessary equality comparisons against boolean literals.
155
147
  // https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare
156
148
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
157
- // Disallow assigning a value with type any to variables and properties.
158
- // https://typescript-eslint.io/rules/no-unsafe-assignment
159
- '@typescript-eslint/no-unsafe-assignment': 'error',
160
149
  // Disallow calling a value with type any.
161
150
  // https://typescript-eslint.io/rules/no-unsafe-call
162
151
  '@typescript-eslint/no-unsafe-call': 'error',
@@ -168,7 +157,7 @@ const typescriptEslintStrictRules = {
168
157
  '@typescript-eslint/no-useless-empty-export': 'error',
169
158
  // Enforce the use of for-of loop over the standard for loop where possible.
170
159
  // https://typescript-eslint.io/rules/prefer-for-of
171
- '@typescript-eslint/prefer-for-of': 'off',
160
+ '@typescript-eslint/prefer-for-of': 'error',
172
161
  // Enforce includes method over indexOf method.
173
162
  // https://typescript-eslint.io/rules/prefer-includes
174
163
  '@typescript-eslint/prefer-includes': 'warn',
@@ -8,7 +8,7 @@ exports.jsExtensionsRule = Object.fromEntries(Object.values(exports.jsExtensions
8
8
  exports.tsExtensions = ['.ts', '.cts', '.mts'];
9
9
  exports.tsExtensionsWithReact = [...exports.tsExtensions, '.tsx'];
10
10
  exports.tsExtensionsWithReactDTS = [...exports.tsExtensionsWithReact, '.d.ts'];
11
- exports.tsExtensionsResolver = [exports.tsExtensions, '.d.ts'];
11
+ exports.tsExtensionsResolver = [...exports.tsExtensions, '.d.ts'];
12
12
  exports.tsExtensionsRule = Object.fromEntries(Object.values(exports.tsExtensionsWithReact).map((val) => [val.slice(1), 'never']));
13
13
  // ESLINT CONFIG FILES
14
- exports.tsFiles = exports.tsExtensionsWithReact.map((val) => `*${val}`);
14
+ exports.tsFiles = exports.tsExtensionsWithReact.map((val) => `**/*${val}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-airbnb-extended",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "Eslint Airbnb Config Extended",
5
5
  "keywords": [
6
6
  "eslint",