@shufflies/eslint-config 1.4.1 → 1.5.0
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/lib/cjs/configs.js +3 -0
- package/lib/esm/configs.js +3 -0
- package/package.json +1 -1
package/lib/cjs/configs.js
CHANGED
|
@@ -44,6 +44,9 @@ function recommended(args = {}) {
|
|
|
44
44
|
// are defined as "foo | undefined" is irritating, so we
|
|
45
45
|
// disable this rule.
|
|
46
46
|
"unicorn/no-useless-undefined": "off",
|
|
47
|
+
// There is no need to _prohibit_ zero fractions.
|
|
48
|
+
// It's perfectly reasonable to write [0.6, 0.8, 1.0, 1.2]
|
|
49
|
+
"unicorn/no-zero-fractions": "off",
|
|
47
50
|
},
|
|
48
51
|
},
|
|
49
52
|
{
|
package/lib/esm/configs.js
CHANGED
|
@@ -38,6 +38,9 @@ export function recommended(args = {}) {
|
|
|
38
38
|
// are defined as "foo | undefined" is irritating, so we
|
|
39
39
|
// disable this rule.
|
|
40
40
|
"unicorn/no-useless-undefined": "off",
|
|
41
|
+
// There is no need to _prohibit_ zero fractions.
|
|
42
|
+
// It's perfectly reasonable to write [0.6, 0.8, 1.0, 1.2]
|
|
43
|
+
"unicorn/no-zero-fractions": "off",
|
|
41
44
|
},
|
|
42
45
|
},
|
|
43
46
|
{
|