@viclafouch/eslint-config-viclafouch 4.22.1-beta.2 → 4.22.1-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.22.1-beta.2",
3
+ "version": "4.22.1-beta.3",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
@@ -58,7 +58,7 @@ export default {
58
58
 
59
59
  // Require return statements to either always or never specify values
60
60
  // https://eslint.org/docs/rules/consistent-return
61
- 'consistent-return': 'error',
61
+ 'consistent-return': ['error', { treatUndefinedAsUnspecified: true }],
62
62
 
63
63
  // Disallow comparing against -0
64
64
  // https://eslint.org/docs/latest/rules/no-compare-neg-zero
package/rules/es6.mjs CHANGED
@@ -202,10 +202,10 @@ export default {
202
202
 
203
203
  // Disallow async functions which have no await expression
204
204
  // https://eslint.org/docs/latest/rules/require-await
205
- 'require-await': 'error',
205
+ 'require-await': 'off',
206
206
 
207
207
  // Prefer to use async/await for Promises
208
- 'promise/prefer-await-to-then': 'error',
208
+ 'promise/prefer-await-to-then': 'off',
209
209
 
210
210
  // Disallow using an async function as a Promise executor
211
211
  // https://eslint.org/docs/latest/rules/no-async-promise-executor
package/rules/react.mjs CHANGED
@@ -258,7 +258,7 @@ export default [
258
258
 
259
259
  // Prevent usage of Array index in keys
260
260
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md
261
- 'react/no-array-index-key': 'error',
261
+ 'react/no-array-index-key': 'off',
262
262
 
263
263
  // Prevent unused state values
264
264
  // https://github.com/jsx-eslint/eslint-plugin-react/pull/1103/
@@ -182,7 +182,7 @@ export default tseslint.config(
182
182
 
183
183
  // Disallow passing a value-returning function where void is expected
184
184
  // https://typescript-eslint.io/rules/strict-void-return
185
- '@typescript-eslint/strict-void-return': 'error'
185
+ '@typescript-eslint/strict-void-return': 'off'
186
186
 
187
187
  // Prefer using nullish coalescing (??) over logical (||) when possible.
188
188
  // '@typescript-eslint/prefer-nullish-coalescing': 'error'