Skip to content

Commit

Permalink
Remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
grubersjoe committed Oct 4, 2024
1 parent 0ef4166 commit 6733c5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default typescript.config(
{
rules: {
'@typescript-eslint/restrict-template-expressions': 'off',
'no-console': 'error',
},
languageOptions: {
parserOptions: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-activity-calendar",
"version": "2.6.0",
"version": "2.6.1",
"description": "React component to display activity data in calendar",
"author": "Jonathan Gruber <[email protected]>",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions src/component/ActivityCalendar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ export const EventHandlers: Story = {
alert(JSON.stringify(activity));
},
onMouseEnter: () => () => {
// eslint-disable-next-line no-console
console.log('on mouse enter');
},
},
Expand Down Expand Up @@ -607,6 +608,8 @@ export const ContainerRef: Story = {
render: args => {
const data = useMemo(() => generateTestData({ maxLevel: args.maxLevel }), [args.maxLevel]);
const calendarRef = useRef<HTMLElement>(null);

// eslint-disable-next-line no-console
console.log('calendar ref', calendarRef);

return (
Expand Down
3 changes: 0 additions & 3 deletions src/component/ActivityCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,6 @@ const ActivityCalendar = forwardRef<HTMLElement, Props>(
}

const { width, height } = getDimensions();

console.log(colorScale[0]);

const containerStyles = {
fontSize,
...(useAnimation && {
Expand Down

0 comments on commit 6733c5c

Please sign in to comment.