Lint: linting!

This commit is contained in:
2018-12-03 12:09:28 +01:00
parent 9d9f511f2c
commit 06855a1f5b
5 changed files with 42 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
export function appendTag (row, keywords, field='Libellé') {
export function appendTag (row, keywords, field = 'Libellé') {
// Append row.tag
// if row.libellé contains one of words and not invert it gets tagged
// if row.libellé contains no words and invert it gets tagged
@@ -25,7 +25,7 @@ function strContains (string, words, invert) {
}
}
export function total (row, field='Montant') {
export function total (row, field = 'Montant') {
var sum = row.map(x => parseFloat(x[field]))
.reduce((sum, x) => sum + x, 0)
return Math.round(sum)