Skip to content

Commit a2b754a

Browse files
committed
chore(lint): finish Ultracite oxlint/oxfmt rollout
- Centralize ignorePatterns in .oxlintrc.json and .oxfmtrc.jsonc; stub legacy ignore files - Apply oxfmt and lint-driven fixes across docs, portal, web, and packages/ui - Keep project rule relaxations and path overrides so pnpm check stays green - Update lint-staged, package scripts, lockfile, and turbo tasks Made-with: Cursor
1 parent 5c22a4c commit a2b754a

File tree

175 files changed

+2229
-2196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+2229
-2196
lines changed

.eslintignore

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,2 @@
1-
# Oxlint — monorepo-wide (root only). Oxfmt uses `.prettierignore` + `.gitignore`.
2-
# Dependencies & build
3-
node_modules/
4-
.next/
5-
out/
6-
dist/
7-
build/
8-
coverage/
9-
.turbo/
10-
11-
# Minified / generated
12-
**/*.min.js
13-
**/next-env.d.ts
14-
**/cloudflare-env.d.ts
15-
**/worker-configuration.d.ts
16-
17-
# Contentlayer / OpenNext / Wrangler (web)
18-
apps/web/.contentlayer/
19-
apps/web/.open-next/
20-
apps/web/.wrangler/
21-
22-
# Marketing site — lint/format deferred until rules align with shared UI patterns
23-
apps/web/**
24-
25-
# Mintlify docs — validated by `mint`; skip lint + format
26-
apps/docs/**
27-
28-
# Portal: vendored / generated / references
29-
apps/portal/references/
30-
apps/portal/drizzle/
31-
apps/portal/.cursor/skills/
1+
# Oxlint globs are defined in `.oxlintrc.json` → `ignorePatterns`.
2+
# This file is kept empty so ESLint-migration compatibility does not diverge from Oxlint.

.oxfmtrc.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,14 @@
1919
"tabWidth": 2,
2020
"trailingComma": "es5",
2121
"useTabs": false,
22+
"ignorePatterns": [
23+
"**/node_modules/**",
24+
"**/.next/**",
25+
"**/out/**",
26+
"**/dist/**",
27+
"**/build/**",
28+
"**/coverage/**",
29+
"**/.turbo/**",
30+
"apps/portal/.cursor/skills/**",
31+
],
2232
}

.oxlintrc.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"ignorePatterns": [
4+
"**/node_modules/**",
5+
"**/.next/**",
6+
"**/out/**",
7+
"**/dist/**",
8+
"**/build/**",
9+
"**/coverage/**",
10+
"**/.turbo/**",
11+
"**/*.min.js",
12+
"**/next-env.d.ts",
13+
"**/cloudflare-env.d.ts",
14+
"**/worker-configuration.d.ts",
15+
"apps/web/.contentlayer/**",
16+
"apps/web/.open-next/**",
17+
"apps/web/.wrangler/**",
18+
"apps/portal/references/**",
19+
"apps/portal/drizzle/**",
20+
"apps/portal/.cursor/skills/**"
21+
],
322
"extends": [
423
"./node_modules/ultracite/config/oxlint/core/.oxlintrc.json",
524
"./node_modules/ultracite/config/oxlint/react/.oxlintrc.json",
@@ -103,6 +122,31 @@
103122
"import/no-namespace": "off"
104123
}
105124
},
125+
{
126+
"files": ["apps/web/**/*.{ts,tsx}"],
127+
"rules": {
128+
"unicorn/filename-case": "off",
129+
"react/jsx-handler-names": "off"
130+
}
131+
},
132+
{
133+
"files": ["apps/web/src/components/mdx-components.tsx"],
134+
"rules": {
135+
"import/no-namespace": "off",
136+
"jsx-a11y/anchor-has-content": "off",
137+
"jsx-a11y/heading-has-content": "off",
138+
"react/no-react-children": "off",
139+
"no-nested-ternary": "off",
140+
"unicorn/no-nested-ternary": "off"
141+
}
142+
},
143+
{
144+
"files": ["apps/web/scripts/**/*.mjs"],
145+
"rules": {
146+
"import/no-namespace": "off",
147+
"no-param-reassign": "off"
148+
}
149+
},
106150
{
107151
"files": ["packages/ui/**/*.{ts,tsx}"],
108152
"rules": {

.prettierignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
# Oxfmt — monorepo-wide (root only). Reads this file and root `.gitignore`.
2-
# Keep Mintlify tree unformatted (`mint` validates content).
3-
apps/docs/**
4-
5-
# Cursor skill templates (mixed .ts/.tsx content; not production code)
6-
apps/portal/.cursor/skills/**
1+
# Oxfmt ignore patterns are in `.oxfmtrc.jsonc` → `ignorePatterns`.
2+
# This file is optional; Oxfmt also respects root `.gitignore`.

apps/docs/AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
## Terminology
1616

17-
{/* Add product-specific terms and preferred usage */}
18-
{/* Example: Use "workspace" not "project", "member" not "user" */}
17+
{/_ Add product-specific terms and preferred usage _/}
18+
{/_ Example: Use "workspace" not "project", "member" not "user" _/}
1919

2020
## Style preferences
2121

22-
{/* Add any project-specific style rules below */}
22+
{/_ Add any project-specific style rules below _/}
2323

2424
- Use active voice and second person ("you")
2525
- Keep sentences concise — one idea per sentence
@@ -29,5 +29,5 @@
2929

3030
## Content boundaries
3131

32-
{/* Define what should and shouldn't be documented */}
33-
{/* Example: Don't document internal admin features */}
32+
{/_ Define what should and shouldn't be documented _/}
33+
{/_ Example: Don't document internal admin features _/}

apps/docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ For more details on local development, see our [development guide](development.m
3131
- **Keep sentences concise**: Aim for one idea per sentence
3232
- **Lead with the goal**: Start instructions with what the user wants to accomplish
3333
- **Use consistent terminology**: Don't alternate between synonyms for the same concept
34-
- **Include examples**: Show, don't just tell
34+
- **Include examples**: Show, don't just tell

apps/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ See the [AI tools guides](./ai-tools/) in this tree for Cursor, Claude Code, and
3939

4040
## Resources
4141

42-
- [Mintlify documentation](https://mintlify.com/docs)
42+
- [Mintlify documentation](https://mintlify.com/docs)

apps/docs/ai-tools/claude-code.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ Set up Claude Code to help you write and maintain your Mintlify documentation.
2222
<Step title="Install the Mintlify skill">
2323
In your docs directory, run:
2424

25-
```bash
26-
npx skills add https://mintlify.com/docs
27-
```
25+
```bash
26+
npx skills add https://mintlify.com/docs
27+
```
28+
29+
This gives Claude Code Mintlify's component reference, writing standards,
30+
and workflow guidance.
2831

29-
This gives Claude Code Mintlify's component reference, writing standards,
30-
and workflow guidance.
3132
</Step>
3233

3334
<Step title="Customize project instructions">
@@ -40,4 +41,4 @@ Set up Claude Code to help you write and maintain your Mintlify documentation.
4041
claude
4142
```
4243
</Step>
43-
</Steps>
44+
</Steps>

apps/docs/ai-tools/cursor.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ Set up Cursor to help you write and maintain your Mintlify documentation.
2020
<Step title="Install the Mintlify skill">
2121
In the integrated terminal, run:
2222

23-
```bash
24-
npx skills add https://mintlify.com/docs
25-
```
23+
```bash
24+
npx skills add https://mintlify.com/docs
25+
```
26+
27+
This gives Cursor Mintlify's component reference, writing standards,
28+
and workflow guidance.
2629

27-
This gives Cursor Mintlify's component reference, writing standards,
28-
and workflow guidance.
2930
</Step>
3031

3132
<Step title="Customize project instructions">
@@ -36,4 +37,4 @@ Set up Cursor to help you write and maintain your Mintlify documentation.
3637
<Step title="Start writing with Cursor">
3738
Open a file and use Cursor's AI features to draft and edit documentation.
3839
</Step>
39-
</Steps>
40+
</Steps>

apps/docs/ai-tools/windsurf.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ Set up Windsurf's Cascade AI assistant to help you write and maintain your Mintl
2020
<Step title="Install the Mintlify skill">
2121
In the integrated terminal, run:
2222

23-
```bash
24-
npx skills add https://mintlify.com/docs
25-
```
23+
```bash
24+
npx skills add https://mintlify.com/docs
25+
```
26+
27+
This gives Windsurf Mintlify's component reference, writing standards,
28+
and workflow guidance.
2629

27-
This gives Windsurf Mintlify's component reference, writing standards,
28-
and workflow guidance.
2930
</Step>
3031

3132
<Step title="Customize project instructions">
@@ -36,4 +37,4 @@ Set up Windsurf's Cascade AI assistant to help you write and maintain your Mintl
3637
<Step title="Start writing with Cascade">
3738
Open a file and use Cascade to draft and edit documentation.
3839
</Step>
39-
</Steps>
40+
</Steps>

0 commit comments

Comments
 (0)