@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 +1 -1
- package/rules/best-practices.mjs +1 -1
- package/rules/es6.mjs +2 -2
- package/rules/react.mjs +2 -2
- package/rules/typescript.mjs +1 -1
- package/rules/variables.mjs +1 -4
package/package.json
CHANGED
package/rules/best-practices.mjs
CHANGED
|
@@ -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': '
|
|
205
|
+
'require-await': 'off',
|
|
206
206
|
|
|
207
207
|
// Prefer to use async/await for Promises
|
|
208
|
-
'promise/prefer-await-to-then': '
|
|
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': '
|
|
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': '
|
|
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
|
package/rules/typescript.mjs
CHANGED
|
@@ -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': '
|
|
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'
|
package/rules/variables.mjs
CHANGED