Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
0fc5d3e
chore: add agent skills lock and agent notes
dangreen Nov 30, 2026
a56de5a
chore: update Node.js to 26 and pnpm to 12
dangreen Nov 30, 2026
5afb0f4
ci: align workflows with the Trigen baseline
dangreen Nov 30, 2026
f07fcbc
chore: measure size with the small-lib preset
dangreen Nov 30, 2026
ffde059
chore: fix package.json lint errors
dangreen Nov 30, 2026
f77ee46
chore: replace the Stack Overflow link with a question template
dangreen Nov 30, 2026
67b6456
build: build the package with Vite
dangreen Nov 30, 2026
1e34ad5
test: move tests next to the sources and check types with tsc
dangreen Nov 30, 2026
f9d1b35
chore: update Storybook to 10
dangreen Nov 30, 2026
e5872b7
chore: write stories in typed CSF3
dangreen Nov 30, 2026
b40a809
chore: remove CLAUDE.md
dangreen Nov 30, 2026
f64251b
Merge branch 'chore/agent-skills' into ci/toolchain
dangreen Nov 30, 2026
12758bb
Merge branch 'ci/toolchain' into build/vite
dangreen Nov 30, 2026
1f47a4f
Merge branch 'build/vite' into chore/storybook
dangreen Nov 30, 2026
5b048bd
chore: install the sandboxes from the root workspace
dangreen Nov 30, 2026
e3d01f3
chore: drop the Storybook alias to the sources
dangreen Nov 30, 2026
6afb955
chore: lint with oxlint
dangreen Nov 30, 2026
d135c1c
fix: type ref objects with RefObject
dangreen Nov 30, 2026
1ae1a1f
style: format the code with oxlint
dangreen Nov 30, 2026
d45c4a5
chore: resolve the package to its sources in type checks
dangreen Nov 30, 2026
8322e2f
Merge branch 'chore/storybook' into chore/sandboxes-workspace
dangreen Nov 30, 2026
f631a36
chore: drop the path mapping to the sources
dangreen Nov 30, 2026
992a506
Merge branch 'chore/sandboxes-workspace' into chore/oxlint
dangreen Nov 30, 2026
03ba08e
chore: add funding links
dangreen Nov 30, 2026
b93ce4d
Merge branch 'ci/toolchain' into build/vite
dangreen Nov 30, 2026
526ea57
Merge branch 'build/vite' into chore/storybook
dangreen Nov 30, 2026
d721167
Merge branch 'chore/storybook' into chore/sandboxes-workspace
dangreen Nov 30, 2026
f1b5573
Merge branch 'chore/sandboxes-workspace' into chore/oxlint
dangreen Nov 30, 2026
95749ed
fix: keep the pure annotations of forwardRef calls
dangreen Nov 30, 2026
e265737
Merge branch 'build/vite' into chore/storybook
dangreen Nov 30, 2026
bbed784
Merge branch 'chore/storybook' into chore/sandboxes-workspace
dangreen Nov 30, 2026
008eb3e
Merge branch 'chore/sandboxes-workspace' into chore/oxlint
dangreen Nov 30, 2026
1d6bc6d
chore: update Node.js to 26 and pnpm to 12
dangreen Nov 30, 2026
bf36a30
ci: align workflows with the Trigen baseline
dangreen Nov 30, 2026
6c884f3
chore: measure size with the small-lib preset
dangreen Nov 30, 2026
7588a7a
chore: fix package.json lint errors
dangreen Nov 30, 2026
d927473
build: build the package with Vite
dangreen Nov 30, 2026
15f941b
chore: replace the Stack Overflow link with a question template
dangreen Nov 30, 2026
0176724
test: move tests next to the sources and check types with tsc
dangreen Nov 30, 2026
d3b7381
chore: add funding links
dangreen Nov 30, 2026
ca37e82
fix: keep the pure annotations of forwardRef calls
dangreen Nov 30, 2026
2e7212b
chore: update Storybook to 10
dangreen Nov 30, 2026
1a61c35
chore: install the sandboxes from the root workspace
dangreen Nov 30, 2026
dce7335
chore: write stories in typed CSF3
dangreen Nov 30, 2026
5290d85
chore: drop the Storybook alias to the sources
dangreen Nov 30, 2026
c117296
chore: resolve the package to its sources in type checks
dangreen Nov 30, 2026
6a9897a
chore: drop the path mapping to the sources
dangreen Nov 30, 2026
1e75de4
chore: send questions to GitHub Discussions
dangreen Nov 30, 2026
ebc3f78
Merge branch 'ci/toolchain' into build/vite
dangreen Nov 30, 2026
acd94fe
Merge branch 'build/vite' into chore/storybook
dangreen Nov 30, 2026
5aa9009
Merge branch 'chore/storybook' into chore/sandboxes-workspace
dangreen Nov 30, 2026
1495fa6
Merge branch 'chore/sandboxes-workspace' into chore/oxlint
dangreen Nov 30, 2026
b9fe2e6
chore: send questions to GitHub Discussions
dangreen Nov 30, 2026
b2b0a64
Merge branch 'ci/toolchain' into build/vite
dangreen Nov 30, 2026
155ec14
Merge branch 'build/vite' into chore/storybook
dangreen Nov 30, 2026
fe5f132
Merge branch 'chore/storybook' into chore/sandboxes-workspace
dangreen Nov 30, 2026
f014480
Merge branch 'chore/sandboxes-workspace' into chore/oxlint
dangreen Nov 30, 2026
7cf547d
test: render the typed chart components
dangreen Nov 30, 2026
7384525
Merge branch 'build/vite' into chore/storybook
dangreen Nov 30, 2026
ed47c94
Merge branch 'chore/storybook' into chore/sandboxes-workspace
dangreen Nov 30, 2026
089621e
Merge branch 'chore/sandboxes-workspace' into chore/oxlint
dangreen Nov 30, 2026
78455ef
test: check the controller, ref and options of the typed charts
dangreen Nov 30, 2026
53c0b7b
Merge branch 'build/vite' into chore/storybook
dangreen Nov 30, 2026
ea67a4d
Merge branch 'chore/storybook' into chore/sandboxes-workspace
dangreen Nov 30, 2026
d36cc9a
Merge branch 'chore/sandboxes-workspace' into chore/oxlint
dangreen Nov 30, 2026
22560b3
Merge remote-tracking branch 'origin/master' into chore/oxlint
dangreen Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

73 changes: 0 additions & 73 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .nano-staged.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"**/*.{js,ts,tsx}": ["prettier --write", "eslint"]
"*.{c,m,}{js,ts}{x,}": "oxlint --fix"
}
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

8 changes: 4 additions & 4 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { StorybookConfig } from '@storybook/react-vite';
import type { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
framework: '@storybook/react-vite',
stories: ['../stories/*.stories.tsx'],
addons: ['@storybook/addon-docs'],
};
addons: ['@storybook/addon-docs']
}

export default config;
export default config
10 changes: 5 additions & 5 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { addons } from 'storybook/manager-api';
import { create } from 'storybook/theming';
import { addons } from 'storybook/manager-api'
import { create } from 'storybook/theming'

addons.setConfig({
theme: create({
base: 'light',
brandTitle: 'react-chartjs-2',
brandUrl: 'https://react-chartjs-2.js.org',
brandUrl: 'https://react-chartjs-2.js.org'
}),
panelPosition: 'right',
});
panelPosition: 'right'
})
16 changes: 8 additions & 8 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { Preview } from '@storybook/react-vite';
import { configureActions } from 'storybook/actions';
import type { Preview } from '@storybook/react-vite'
import { configureActions } from 'storybook/actions'

// Chart.js passes deeply nested objects to event handlers
configureActions({
depth: 5,
});
depth: 5
})

const preview: Preview = {
parameters: {
layout: 'centered',
},
};
layout: 'centered'
}
}

export default preview;
export default preview
42 changes: 42 additions & 0 deletions oxlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { defineConfig } from '@trigen/oxlint'
import baseConfig from '@trigen/oxlint-config'
import moduleConfig from '@trigen/oxlint-config/module'
import reactConfig from '@trigen/oxlint-config/react'
import storybookConfig from '@trigen/oxlint-config/storybook'
import testConfig from '@trigen/oxlint-config/test'
import tsTypeCheckedConfig from '@trigen/oxlint-config/typescript-type-checked'

export default defineConfig({
ignorePatterns: [
'**/dist/',
'**/package/',
'**/coverage/',
'**/storybook-static/',
'website/'
],
options: {
typeAware: true,
typeCheck: true
},
env: {
browser: true
},
extends: [
baseConfig,
moduleConfig,
reactConfig,
tsTypeCheckedConfig,
testConfig,
storybookConfig
],
overrides: [
{
// Example data and demos: numbers are data, and the events demo logs to the console
files: ['sandboxes/**', 'stories/**'],
rules: {
'eslint/no-magic-numbers': 'off',
'eslint/no-console': 'off'
}
}
]
})
20 changes: 6 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
"storybook": "storybook dev -p 6006 --no-open",
"storybook:build": "storybook build",
"sandboxes:build": "pnpm -r --filter \"./sandboxes/**\" build",
"lint": "eslint \"src/**/*.{ts,tsx}\" \"stories/**/*.{ts,tsx}\" \"sandboxes/**/*.{ts,tsx}\"",
"lint": "oxlint",
"test:unit": "vitest run --coverage",
"test:unit:watch": "vitest watch",
"test:types": "tsc --noEmit",
"test:size": "size-limit",
"test": "run -p lint test:unit test:types",
"format": "prettier --write src",
"format": "oxlint --fix",
"commit": "cz",
"updateGitHooks": "simple-git-hooks"
},
Expand All @@ -73,13 +73,13 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@trigen/oxlint": "^12.0.0",
"@trigen/oxlint-config": "^12.4.0",
"@trigen/scripts": "^12.0.0",
"@types/faker": "^5.5.8",
"@types/node": "^18.0.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@vitejs/plugin-react": "^5.0.0",
"@vitest/coverage-v8": "^4.0.0",
"chart.js": "^4.4.7",
Expand All @@ -90,19 +90,11 @@
"commitizen": "^4.2.4",
"date-fns": "^2.25.0",
"del-cli": "^7.0.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-react": "^13.0.0",
"eslint-plugin-import": "^2.25.1",
"eslint-plugin-n": "^17.0.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.0.0",
"eslint-plugin-react": "^7.17.0",
"faker": "^5.5.3",
"happy-dom": "^20.0.0",
"nano-staged": "^0.8.0",
"prettier": "^3.4.2",
"oxlint": "^1.95.0",
"oxlint-tsgolint": "^7.0.2009",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"simple-git-hooks": "^2.6.1",
Expand Down
Loading