Skip to content

Commit

Permalink
style(transformers): Lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
parmentf committed Jul 23, 2021
1 parent 13754fc commit 6f0760e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/transformers/src/operations/NUMBER.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { transformer } from './transformer';
export const valueToNumber = value => {
const number = Number(value);

return isNaN(number) ? 0 : number;
return Number.isNaN(number) ? 0 : number;
};

const transformation = () => value => transformer(valueToNumber, value);
Expand Down
2 changes: 1 addition & 1 deletion packages/transformers/src/operations/SPLIT.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const split = (value, separator) => {
if (typeof value !== 'string') {
throw new Error('Invalid value: need a string');
}
let splitted = value.split(separator).map(x => x.trim());
const splitted = value.split(separator).map(x => x.trim());
return splitted.filter(x => x != '');
};

Expand Down
1 change: 1 addition & 0 deletions packages/transformers/src/operations/UNIQ.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import uniq from 'lodash.uniq';

export const uniqArray = value => {
if (value === null || typeof value === 'undefined') {
return null;
Expand Down

0 comments on commit 6f0760e

Please sign in to comment.