Activate no-extra-boolean-cast rule of eslint

This commit is contained in:
Cédric Krier committed 2024-03-09 23:36:02 +01:00
1 parent f5a7211436
commit d59dddea7d
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -21,7 +21,6 @@ export default [
},
},
rules: {
"no-extra-boolean-cast": "off",
"no-prototype-builtins": "off",
"no-self-assign": "off",
"no-unexpected-multiline": "off",
+1 -1
View File
@@ -112,7 +112,7 @@
this.view.optionals.push(column);
}
if (Boolean(parseInt(attributes.sum || '0', 10))) {
if (parseInt(attributes.sum || '0', 10)) {
var sum = jQuery('<label/>', {
'text': attributes.string,
});