This commit is contained in:
olehhapuk
2026-12-01 12:12:13 +02:00
parent 6698ce32c7
commit ebf6ec2e39
67 changed files with 7317 additions and 1261 deletions
+14
View File
@@ -0,0 +1,14 @@
{
"$schema": "../../node_modules/oxlint/configuration_schema.json",
"extends": ["../../.oxlintrc.json"],
"plugins": ["react", "jsx-a11y"],
"env": {
"browser": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"jsx-a11y/prefer-tag-over-role": "off",
"jsx-a11y/click-events-have-key-events": "off"
}
}
-21
View File
@@ -1,21 +0,0 @@
// @ts-check
import { tanstackConfig } from '@tanstack/eslint-config';
export default [
...tanstackConfig,
{
rules: {
'import/no-cycle': 'off',
'import/order': 'off',
'import/consistent-type-specifier-style': 'off',
'sort-imports': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/require-await': 'off',
'pnpm/json-enforce-catalog': 'off',
},
},
{
ignores: ['eslint.config.js', '.prettierrc'],
},
];
-3
View File
@@ -1,3 +0,0 @@
import { tanstackConfig } from '@tanstack/eslint-config';
export default [...tanstackConfig];
+1 -3
View File
@@ -4,7 +4,7 @@
"type": "module",
"private": true,
"scripts": {
"lint": "eslint",
"lint": "oxlint",
"format": "prettier --write \"**/*.{ts,tsx}\"",
"typecheck": "tsc --noEmit"
},
@@ -28,12 +28,10 @@
},
"devDependencies": {
"@tailwindcss/vite": "^4",
"@tanstack/eslint-config": "latest",
"@turbo/gen": "^2.11.11",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^10",
"tailwindcss": "^4",
"typescript": "^6.0.2"
},
+1
View File
@@ -94,6 +94,7 @@ function Carousel({
React.useEffect(() => {
if (!api) return;
// oxlint-disable-next-line react/set-state-in-effect
onSelect(api);
api.on('reInit', onSelect);
api.on('select', onSelect);
@@ -47,6 +47,7 @@ function InputGroupAddon({
...props
}: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>) {
return (
// oxlint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
<div
role="group"
data-slot="input-group-addon"
+1
View File
@@ -1,3 +1,4 @@
// oxlint-disable jsx-a11y/label-has-associated-control
import * as React from 'react';
import { cn } from 'cn';
-14
View File
@@ -1,14 +0,0 @@
{
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"skipLibCheck": true,
"strict": true,
"outDir": "dist"
},
"include": ["src", "turbo"],
"exclude": ["node_modules", "dist"]
}