Skip to content

Commit

Permalink
Merge branch 'next' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
lulunac27a authored Mar 23, 2024
2 parents 3ecf4ab + ff29421 commit af7b5e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = defineConfig({
},
rules: {
eqeqeq: ['error', 'always', { null: 'ignore' }],
'logical-assignment-operators': 'error',
'no-else-return': 'error',
'no-restricted-globals': ['error', 'Intl'],
'prefer-exponentiation-operator': 'error',
Expand Down
4 changes: 1 addition & 3 deletions test/modules/finance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ describe('finance', () => {
});

it('should set a specified length', () => {
let expected = faker.number.int(20);

expected = expected || 4;
const expected = faker.number.int(20) || 4;

const mask = faker.finance.maskedNumber({
length: expected,
Expand Down

0 comments on commit af7b5e4

Please sign in to comment.