@richardscull/eslint-config 1.0.4 → 1.0.6
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/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -240,7 +240,6 @@ function javaScriptConfigs({ strict, restrictedSyntax, linterOptions, settings }
|
|
|
240
240
|
properties: true
|
|
241
241
|
}
|
|
242
242
|
],
|
|
243
|
-
"no-await-in-loop": "warn",
|
|
244
243
|
"no-console": [
|
|
245
244
|
"error",
|
|
246
245
|
{
|
|
@@ -1035,7 +1034,14 @@ function unicornConfigs({ fileCase, preferESM }) {
|
|
|
1035
1034
|
"unicorn/prefer-ternary": "off",
|
|
1036
1035
|
"unicorn/prefer-add-event-listener": "off",
|
|
1037
1036
|
"unicorn/number-literal-case": "off",
|
|
1038
|
-
"unicorn/prefer-math-trunc": "off"
|
|
1037
|
+
"unicorn/prefer-math-trunc": "off",
|
|
1038
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1684#issuecomment-1008606965 -- There are valid use-cases for undefined in arguments
|
|
1039
|
+
"unicorn/no-useless-undefined": [
|
|
1040
|
+
"error",
|
|
1041
|
+
{
|
|
1042
|
+
checkArguments: false
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1039
1045
|
}
|
|
1040
1046
|
}
|
|
1041
1047
|
];
|