Skip to content

Commit 7092c93

Browse files
committed
chore: migrate to oxlint
1 parent fdeb48b commit 7092c93

350 files changed

Lines changed: 18013 additions & 15850 deletions

File tree

Some content is hidden

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

.changeset/config.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@
99
"access": "public",
1010
"baseBranch": "origin/build/v2",
1111
"updateInternalDependencies": "minor",
12-
"ignore": [
13-
"qwik-docs",
14-
"insights",
15-
"qwik-cli-e2e",
16-
"qwik-react-test-app",
17-
"docs-e2e"
18-
],
12+
"ignore": ["qwik-docs", "insights", "qwik-cli-e2e", "qwik-react-test-app", "docs-e2e"],
1913
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
2014
"onlyUpdatePeerDependentsWhenOutOfRange": true
2115
}

.changeset/shaky-pianos-wait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
---
44

55
BREAKING: (slightly) `-` handling in JSX event handlers has slightly changed. Now, if an event name starts with `-`, the rest of the name will be kept as-is, preserving casing. Otherwise, the event name is made lowercase. Any `-` characters in the middle of the name are preserved as-is. Previously, `-` were considered to mark the next letter as uppercase.
6-
For example, `onCustomEvent$` will match `customevent`, `on-CustomEvent$` will match `CustomEvent`, and `onCustom-Event$` will match `custom-event`. Before, that last one would match `customEvent` instead.
6+
For example, `onCustomEvent$` will match `customevent`, `on-CustomEvent$` will match `CustomEvent`, and `onCustom-Event$` will match `custom-event`. Before, that last one would match `customEvent` instead.

.github/workflows/auto-assign-core-team.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ jobs:
6969
project-url: https://github.com/orgs/QwikDev/projects/1
7070
github-token: ${{ secrets.QWIK_API_TOKEN_GITHUB }}
7171
fields: |
72-
Status: Waiting For Review
72+
Status: Waiting For Review

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ jobs:
715715
name: playwright-report
716716
path: test-results/ # or test-results/ depending on your config
717717
retention-days: 30
718-
718+
719719
- name: Print E2E Builds
720720
run: tree -a starters/apps/e2e/dist starters/apps/e2e/server starters/apps/qwikrouter-test/dist starters/apps/qwikrouter-test/server
721721
if: failure()
@@ -800,7 +800,7 @@ jobs:
800800

801801
- run: pnpm install --frozen-lockfile
802802

803-
- name: "Verify pnpm dedupe"
803+
- name: 'Verify pnpm dedupe'
804804
if: always()
805805
run: pnpm dedupe --check
806806

.oxfmtignore

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
# Prettier handles non-JS/TS files
2-
**/*.json
3-
**/*.yaml
4-
**/*.yml
5-
**/*.md
6-
**/*.mdx
7-
**/*.css
8-
**/*.html
9-
10-
# Existing ignore patterns from .prettierignore
1+
# Ignore patterns
112
**/**.api.md
123
**/*.log
134
**/.DS_Store

.oxfmtrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://oxc.rs/schemas/oxfmt.json",
3+
"experimentalPrettierFallback": true,
34
"printWidth": 100,
45
"tabWidth": 2,
56
"useTabs": false,

.oxlintrc.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
"jsdoc/check-property-names": "warn",
9+
"jsdoc/check-tag-names": "warn",
10+
"jsdoc/require-property": "warn",
11+
"jsdoc/require-yields": "warn"
12+
},
13+
"overrides": [
14+
{
15+
"files": ["packages/docs/**/*.ts", "packages/docs/**/*.tsx"],
16+
"rules": {
17+
"no-console": "off",
18+
"curly": "off"
19+
}
20+
},
21+
{
22+
"files": ["packages/qwik/src/server/**/*.ts"],
23+
"rules": {
24+
"no-restricted-imports": [
25+
"error",
26+
{
27+
"patterns": [
28+
{ "group": ["packages/*"], "message": "Absolute imports are not allowed." },
29+
{ "group": ["../**"], "message": "Relative imports are not allowed." }
30+
]
31+
}
32+
],
33+
"no-duplicate-imports": "error"
34+
}
35+
},
36+
{
37+
"files": ["packages/qwik/src/server/qwik-copy.ts", "packages/qwik/src/server/qwik-types.ts"],
38+
"rules": {
39+
"no-restricted-imports": "off"
40+
}
41+
}
42+
],
43+
"ignorePatterns": [
44+
"**/.history",
45+
"**/dist",
46+
"**/dist-dev",
47+
"**/lib",
48+
"**/node_modules",
49+
"**/tsc-out",
50+
"**/external",
51+
"**/target",
52+
"**/temp",
53+
"scripts",
54+
"**/server/**/*.js",
55+
"packages/docs/api",
56+
"packages/docs/public/repl/repl-sw.js*",
57+
"packages/qwik/src/optimizer/core/src/fixtures",
58+
"packages/qwik/bindings",
59+
"packages/qwik/src/napi",
60+
"packages/qwik-labs",
61+
"packages/insights",
62+
"**/eslint.config.mjs",
63+
"**/eslint.config.js",
64+
".changeset",
65+
"packages/docs/public/builder",
66+
"packages/eslint-plugin-qwik/tests"
67+
]
68+
}

.prettierignore

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

.prettierrc.json

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

.vscode/launch.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@
4545
"name": "preloader-test build.client",
4646
"request": "launch",
4747
"runtimeExecutable": "pnpm",
48-
"runtimeArgs": [
49-
"run",
50-
"build.client"
51-
],
48+
"runtimeArgs": ["run", "build.client"],
5249
"skipFiles": ["<node_internals>/**"],
5350
"cwd": "${workspaceFolder}/starters/apps/preloader-test"
5451
},

0 commit comments

Comments
 (0)