Skip to content

Commit

Permalink
remove console.log and active lint rule for it
Browse files Browse the repository at this point in the history
  • Loading branch information
soomtong committed Aug 23, 2023
1 parent 5864fa5 commit 45f7521
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module.exports = {
extends: '@day1co/eslint-config/common-ts',
rules: {
'no-console': 'warn',
},
};
6 changes: 0 additions & 6 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ describe('index', () => {
toSnakeCase(`fooBarBazQux${i % 100}`);
}
const elapsed = Date.now() - start;
console.log(elapsed);

const start2 = Date.now();
for (let i = 0; i < COUNT; i += 1) {
toSnakeCaseFast(`fooBarBazQux${i % 100}`);
}
const elapsed2 = Date.now() - start2;
console.log(elapsed2);

expect(elapsed2).toBeLessThan(elapsed);
});
Expand Down Expand Up @@ -83,14 +81,12 @@ describe('index', () => {
toCamelCase(`foo_bar_baz_qux_${i % 100}`);
}
const elapsed = Date.now() - start;
console.log(elapsed);

const start2 = Date.now();
for (let i = 0; i < COUNT; i += 1) {
toCamelCaseFast(`foo_bar_baz_qux_${i % 100}`);
}
const elapsed2 = Date.now() - start2;
console.log(elapsed2);

expect(elapsed2).toBeLessThan(elapsed);
});
Expand Down Expand Up @@ -146,14 +142,12 @@ describe('index', () => {
toKebabCase(`foo_bar_baz_qux_${i % 100}`);
}
const elapsed = Date.now() - start;
console.log(elapsed);

const start2 = Date.now();
for (let i = 0; i < COUNT; i += 1) {
toKebabCaseFast(`foo_bar_baz_qux_${i % 100}`);
}
const elapsed2 = Date.now() - start2;
console.log(elapsed2);

expect(elapsed2).toBeLessThan(elapsed);
});
Expand Down

0 comments on commit 45f7521

Please sign in to comment.