Skip to content

Commit 0ffee29

Browse files
committed
chore: migrate to oxlint, oxfmt
1 parent 1dde52b commit 0ffee29

8 files changed

Lines changed: 299 additions & 477 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -808,17 +808,17 @@ jobs:
808808
if: always()
809809
run: pnpm run lint.syncpack
810810

811-
- name: Prettier Check
811+
- name: Format Check
812812
if: always()
813-
run: pnpm run lint.prettier
813+
run: pnpm run lint.fmt
814814

815-
- name: Build ESLint
815+
- name: Build ESLint Plugin
816816
if: always()
817817
run: pnpm build --eslint
818818

819-
- name: ESLint Check
819+
- name: Lint Check
820820
if: always()
821-
run: pnpm run lint.eslint
821+
run: pnpm run lint.oxlint
822822

823823
############ RELEASE ############
824824
release:
Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,24 @@
1-
**/*.api.md
1+
# Ignore patterns
2+
**/**.api.md
23
**/*.log
34
**/.DS_Store
4-
*.
55
pnpm-lock.yaml
6-
.*
7-
!.eslintrc.cjs
8-
!.prettierignore
9-
!.prettierrc.json
10-
11-
# Build output
126
dist
137
dist-dev
148
lib
159
target
16-
starters/apps/**/dist
1710
node_modules
18-
1911
tsconfig.tsbuildinfo
20-
21-
# REPL files
2212
packages/docs/public/repl/repl-sw.js*
23-
24-
# build output
2513
packages/*/lib
2614
packages/*/dist
2715
packages/*/server
28-
29-
# API output files
3016
packages/docs/src/routes/api
31-
32-
# Prettier doesn't handle mdx files well
33-
packages/docs/**/*.mdx
34-
3517
packages/insights/drizzle
3618
packages/insights/.netlify
3719
packages/insights/scripts
3820
packages/insights/**/*.gen.d.ts
39-
40-
# insights cache files
21+
packages/qwik-labs/lib-types
22+
packages/qwik-labs/vite
4123
**/q-insights.json
42-
43-
# Exclude builder js files from formatting - delete after migration
4424
packages/docs/public/builder

.oxfmtrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://oxc.rs/schemas/oxfmt.json",
3+
"experimentalPrettierFallback": true,
4+
"printWidth": 100,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"semi": true,
8+
"singleQuote": true,
9+
"trailingComma": "es5"
10+
}

.oxlintrc.json

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3+
"plugins": ["jsdoc", "import", "unicorn", "vitest"],
4+
"rules": {
5+
"no-console": ["error", { "allow": ["warn", "error"] }],
6+
"curly": "error",
7+
"no-new-func": "error",
8+
"no-unused-vars": "off",
9+
"no-unused-expressions": "off",
10+
"no-control-regex": "off",
11+
"no-shadow-restricted-names": "off",
12+
"unicorn/no-empty-file": "off",
13+
"unicorn/no-new-array": "off",
14+
"jsdoc/check-property-names": "off",
15+
"jsdoc/check-tag-names": "off",
16+
"jsdoc/require-property": "off",
17+
"jsdoc/require-yields": "off",
18+
"vitest/expect-expect": "off",
19+
"vitest/no-disabled-tests": "off",
20+
"vitest/valid-title": "off",
21+
"vitest/warn-todo": "off",
22+
"jest/expect-expect": "off",
23+
"jest/no-disabled-tests": "off",
24+
"jest/valid-title": "off",
25+
"jest/no-conditional-expect": "off",
26+
"jest/valid-describe-callback": "off",
27+
"jest/no-export": "off",
28+
"import/default": "off",
29+
"unicorn/prefer-string-starts-ends-with": "off",
30+
"no-eval": "off",
31+
"no-unsafe-optional-chaining": "off",
32+
"unicorn/no-unnecessary-await": "off",
33+
"unicorn/no-invalid-remove-event-listener": "off",
34+
"jest/valid-expect": "off",
35+
"vitest/no-conditional-tests": "off"
36+
},
37+
"overrides": [
38+
{
39+
"files": ["packages/docs/**/*.ts", "packages/docs/**/*.tsx"],
40+
"rules": {
41+
"no-console": "off",
42+
"curly": "off"
43+
}
44+
}
45+
],
46+
"ignorePatterns": [
47+
"**/.history",
48+
"**/.vscode",
49+
"**/dist",
50+
"**/dist-dev",
51+
"**/lib",
52+
"**/node_modules",
53+
"**/tsc-out",
54+
"**/external",
55+
"**/*.log",
56+
"**/etc",
57+
"**/target",
58+
"**/temp",
59+
"**/tsdoc-metadata.json",
60+
"**/.DS_Store",
61+
"**/*.mp4",
62+
"scripts",
63+
"**/server/**/*.js",
64+
"**/*.tsbuildinfo",
65+
"packages/docs/api",
66+
"packages/docs/public/repl/repl-sw.js*",
67+
"packages/docs/src/routes/examples/apps",
68+
"packages/docs/src/routes/playground/app",
69+
"packages/docs/src/routes/tutorial",
70+
"packages/qwik/src/optimizer/core/src/fixtures",
71+
"packages/qwik/bindings",
72+
"packages/qwik-labs/lib",
73+
"packages/qwik-labs/lib-types",
74+
"packages/qwik-labs/vite",
75+
"packages/insights/drizzle.config.ts",
76+
"packages/insights/panda.config.ts",
77+
"packages/qwik/src/napi",
78+
"starters/apps/base",
79+
"starters/apps/library",
80+
"starters/templates",
81+
"**/vite.config.ts",
82+
"packages/qwik-labs",
83+
"packages/insights",
84+
"**/eslint.config.mjs",
85+
"**/eslint.config.js",
86+
".changeset",
87+
"packages/docs/public/builder",
88+
"packages/eslint-plugin-qwik/tests"
89+
]
90+
}

.prettierrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)