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
20 changes: 17 additions & 3 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,23 @@
"ignorePatterns": ["dist", "src/client/**/*.gen.ts"],
"plugins": ["react", "react-hooks", "typescript"],
"rules": {
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-console": [
"warn",
{
"allow": ["warn", "error"]
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"typescript/no-explicit-any": "error"
}
"typescript/no-explicit-any": "error",
"typescript/no-deprecated": "error"
},
"overrides": [
{
"files": ["src/client/**"],
"rules": {
"typescript/no-deprecated": "off"
}
}
]
}
106 changes: 105 additions & 1 deletion example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"audit": "npm audit --audit-level=high",
"dev": "nodemon ./dev_server.js",
"build": "tsc -b && vite build",
"lint": "oxlint .",
"lint": "oxlint --type-aware .",
"preview": "vite preview",
"postinstall": "react-flagpack",
"test:e2e": "playwright test",
Expand Down Expand Up @@ -37,6 +37,7 @@
"@vitejs/plugin-react": "6.1.1",
"nodemon": "3.1.14",
"oxlint": "1.83.0",
"oxlint-tsgolint": "7.0.2003",
"vite": "8.3.0"
}
}
1 change: 1 addition & 0 deletions example/src/ContractorOnboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ export const ContractorOnboardingForm = () => {
});
const [showOnboarding, setShowOnboarding] = useState(false);

// oxlint-disable-next-line typescript/no-deprecated
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
setShowOnboarding(true);
Expand Down
1 change: 1 addition & 0 deletions example/src/CreateCompany.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export const CreateCompanyForm = () => {
const [formData] = useState<CreateCompanyFormData>({});
const [showOnboarding, setShowOnboarding] = useState(false);

// oxlint-disable-next-line typescript/no-deprecated
const handleSubmit = useCallback((e: React.FormEvent) => {
e.preventDefault();
setShowOnboarding(true);
Expand Down
1 change: 1 addition & 0 deletions example/src/flows/Onboarding/Onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ export const OnboardingForm = () => {
});
const [showOnboarding, setShowOnboarding] = useState(false);

// oxlint-disable-next-line typescript/no-deprecated
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
setShowOnboarding(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export const OnboardingCustomBenefitsForm = () => {
});
const [showOnboarding, setShowOnboarding] = useState(false);

// oxlint-disable-next-line typescript/no-deprecated
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
setShowOnboarding(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ export const OnboardingForm = () => {
});
const [showOnboarding, setShowOnboarding] = useState(false);

// oxlint-disable-next-line typescript/no-deprecated
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
setShowOnboarding(true);
Expand Down
103 changes: 103 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"check-format": "oxfmt --check",
"dev": "NODE_ENV=development tsdown --config-loader unrun --watch",
"build:reset": "postcss src/styles/reset.css -o ./example/src/css/reset.css",
"lint": "oxlint .",
"lint": "oxlint --type-aware --ignore-pattern 'example/**' .",
"lint:workflows": "zizmor .github/workflows/",
"lint:workflows:fix": "zizmor --fix .github/workflows/",
"format": "oxfmt",
Expand Down Expand Up @@ -155,6 +155,7 @@
"msw": "2.15.0",
"oxfmt": "0.68.0",
"oxlint": "1.83.0",
"oxlint-tsgolint": "7.0.2003",
"postcss-import": "17.0.0",
"tsdown": "0.23.0",
"tsx": "4.23.15",
Expand Down
1 change: 1 addition & 0 deletions src/components/form/fields/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function TextField({
descriptionSuffix,
label,
type,
// oxlint-disable-next-line typescript/no-deprecated
onChange,
metadata: additionalProps,
maxLength,
Expand Down
2 changes: 2 additions & 0 deletions src/flows/ContractAmendment/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export const useContractAmendment = ({

switch (stepState.currentStep.name) {
case STEPS.form.name: {
// oxlint-disable-next-line typescript/no-deprecated
const { mutateAsync } = mutationToPromise(
automatableContractAmendmentMutation,
);
Expand All @@ -193,6 +194,7 @@ export const useContractAmendment = ({
return automatableContractAmendment;
}
case STEPS.confirmation_form.name: {
// oxlint-disable-next-line typescript/no-deprecated
const { mutateAsync } = mutationToPromise(
createContractAmendmentMutation,
);
Expand Down
Loading
Loading