Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.cache
/.claude
/coverage
/dist
/lib
Expand Down
14 changes: 7 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { defineConfig, globalIgnores } from 'eslint/config';
import tseslint from 'typescript-eslint';

export default defineConfig([
globalIgnores(['.cache', '.nitro', '.output', '.tanstack', 'coverage', 'dist', 'lib']),
globalIgnores(['.cache', '.claude', '.nitro', '.output', '.tanstack', 'coverage', 'dist', 'lib']),

{
linterOptions: {
Expand Down Expand Up @@ -314,17 +314,15 @@ copy(
.join('\n')
);
*/
'@eslint-react/component-hook-factories': 1,
'@eslint-react/error-boundaries': 1,
'@eslint-react/exhaustive-deps': 1,
'@eslint-react/jsx-dollar': 1,
'@eslint-react/jsx-key-before-spread': 1,
'@eslint-react/jsx-no-comment-textnodes': 1,
'@eslint-react/jsx-no-duplicate-props': 1,
'@eslint-react/jsx-shorthand-boolean': 1,
'@eslint-react/jsx-shorthand-fragment': 1,
'@eslint-react/jsx-uses-react': 1,
'@eslint-react/jsx-uses-vars': 1,
'@eslint-react/component-hook-factories': 1,
'@eslint-react/error-boundaries': 1,
'@eslint-react/exhaustive-deps': 1,
'@eslint-react/immutability': 0,
'@eslint-react/no-access-state-in-setstate': 1,
'@eslint-react/no-array-index-key': 0,
'@eslint-react/no-children-count': 1,
Expand All @@ -343,7 +341,9 @@ copy(
'@eslint-react/no-direct-mutation-state': 1,
'@eslint-react/no-duplicate-key': 1,
'@eslint-react/no-forward-ref': 1,
'@eslint-react/no-implicit-children': 0,
'@eslint-react/no-implicit-key': 1,
'@eslint-react/no-implicit-ref': 0,
'@eslint-react/no-leaked-conditional-rendering': 1,
'@eslint-react/no-missing-component-display-name': 1,
'@eslint-react/no-missing-context-display-name': 1,
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"typecheck": "tsc --build"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "3.0.0-next.71",
"@eslint-react/eslint-plugin": "3.0.0-rc.0",
"@eslint/markdown": "^7.5.1",
"@faker-js/faker": "^10.0.0",
"@tanstack/react-router": "^1.132.31",
Expand All @@ -68,14 +68,14 @@
"eslint-plugin-testing-library": "^7.13.5",
"jspdf": "^4.0.0",
"jspdf-autotable": "^5.0.2",
"oxfmt": "0.36.0",
"oxfmt": "0.38.0",
"playwright": "~1.58.0",
"postcss": "^8.5.2",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"rolldown": "1.0.0-rc.5",
"rolldown-plugin-dts": "^0.22.1",
"typescript": "~5.9.2",
"typescript": "~6.0.1-rc",
"typescript-eslint": "^8.56.0",
"vite": "^8.0.0-beta.16",
"vitest": "^4.0.17",
Expand All @@ -86,6 +86,7 @@
"react-dom": "^19.2"
},
"overrides": {
"typescript": "$typescript",
"vite": "$vite"
}
}
2 changes: 1 addition & 1 deletion rolldown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineConfig({
classPrefix: `rdg-${pkg.version.replaceAll('.', '-')}-`
}),
dts({
tsconfig: './tsconfig.lib.json'
tsconfig: './tsconfig.src.json'
})
]
});
15 changes: 0 additions & 15 deletions src/EditCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@ import type {
RenderEditCellProps
} from './types';

declare global {
const scheduler: Scheduler | undefined;
}

interface Scheduler {
readonly postTask?: (
callback: () => void,
options?: {
priority?: 'user-blocking' | 'user-visible' | 'background';
signal?: AbortSignal;
delay?: number;
}
) => Promise<unknown>;
}

/*
* To check for outside `mousedown` events, we listen to all `mousedown` events at their birth,
* i.e. on the window during the capture phase, and at their death, i.e. on the window during the bubble phase.
Expand Down
1 change: 1 addition & 0 deletions src/css.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module '*.css' {}
2 changes: 1 addition & 1 deletion src/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ declare module 'react' {
}
}

// somehow required to make `declare global` work
// somehow required to make types work
export {};
2 changes: 1 addition & 1 deletion test/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ declare module 'vitest/browser' {
}
}

// somehow required to make `declare global` work
// somehow required to make types work
export {};
1 change: 0 additions & 1 deletion test/setupBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ afterEach(() => {
// eslint-disable-next-line vitest/no-standalone-expect
expect
.soft(
// eslint-disable-next-line @eslint-react/purity
document.hasFocus(),
'Focus is set on a browser UI element at the end of a test. Use safeTab() to return focus to the page.'
)
Expand Down
11 changes: 2 additions & 9 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"composite": true,
"emitDeclarationOnly": true,
"erasableSyntaxOnly": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"lib": ["ESNext"],
"libReplacement": false,
"module": "esnext",
"lib": [],
"moduleDetection": "force",
"moduleResolution": "bundler",
"noImplicitReturns": true,
"noUnusedLocals": true,
"outDir": "./.cache/ts",
"pretty": true,
"strict": true,
"strictNullChecks": true, // TODO: remove once `typescript-eslint` supports TS 6
"target": "esnext",
"types": [],
"useUnknownInCatchVariables": true,
"verbatimModuleSyntax": true
}
}
1 change: 1 addition & 0 deletions tsconfig.js.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"lib": ["ESNext"],
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
Expand Down
11 changes: 0 additions & 11 deletions tsconfig.lib.json

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.src.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"]
"lib": ["ESNext", "DOM"]
},
"include": ["src/**/*"]
}
2 changes: 1 addition & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"],
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"types": ["vitest/globals"]
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.website.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"],
"lib": ["ESNext", "DOM"],
"skipLibCheck": true
},
"include": ["website/**/*"],
"include": ["src/css.d.ts", "website/**/*"],
"references": [{ "path": "tsconfig.src.json" }]
}
Loading