@viclafouch/eslint-config-viclafouch 4.22.1-beta.2 → 4.22.1-beta.4

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.4",
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/
@@ -365,7 +365,7 @@ export default [
365
365
 
366
366
  // Enforce sandbox attribute on iframe elements
367
367
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/c8833f301314dab3e79ef7ac4cf863e4d5fa0019/docs/rules/iframe-missing-sandbox.md
368
- 'react/iframe-missing-sandbox': 'error',
368
+ 'react/iframe-missing-sandbox': 'off',
369
369
 
370
370
  // Prevent problematic leaked values from being rendered
371
371
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/c42b624d0fb9ad647583a775ab9751091eec066f/docs/rules/jsx-no-leaked-render.md
@@ -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'
@@ -76,9 +76,6 @@ export default {
76
76
  ],
77
77
 
78
78
  // Disallow use of variables before they are defined
79
- 'no-use-before-define': [
80
- 'error',
81
- { functions: true, classes: true, variables: true }
82
- ]
79
+ 'no-use-before-define': 'off'
83
80
  }
84
81
  }