Skip to content

feat: add oxlint linting along side eslint #13326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 38 commits into
base: minor
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1faca59
chore(deps): update all non-major dependencies (#13166)
renovate[bot] Apr 8, 2025
347c784
chore: add bsky link (#13175)
bornkiss Apr 8, 2025
4f6ef92
chore(deps): update dependency vite to v5.4.17 [security] (#13173)
renovate[bot] Apr 9, 2025
32bc647
chore(deps): update build (#13165)
renovate[bot] Apr 10, 2025
8ae1122
fix(compiler-sfc): treat the return value of `useTemplateRef` as a de…
KazariEX Apr 14, 2025
9d84d64
chore(deps): update dependency @types/node to ^22.14.1 (#13196)
renovate[bot] Apr 14, 2025
c15ed52
chore(deps): update dependency vite to v5.4.18 [security] (#13198)
renovate[bot] Apr 15, 2025
4f79253
chore(deps): update build (#13195)
renovate[bot] Apr 15, 2025
4085ed9
chore(deps): update pnpm to v10.9.0 (#13224)
renovate[bot] Apr 22, 2025
b782cd6
chore(deps): update dependency vite to ^6.3.2 (#13225)
renovate[bot] Apr 22, 2025
b92ae84
chore: update CHANGELOG.md (#13230)
G1xiang Apr 22, 2025
c3e3396
chore(deps): update dependency vite to v5.4.18 [security] (#13229)
renovate[bot] Apr 23, 2025
a23fb59
chore(deps): update dependency vite to v5.4.18 [security] (#13235)
renovate[bot] Apr 24, 2025
d9923c3
chore(deps): update dependency vite to v5.4.18 [security] (#13237)
renovate[bot] Apr 29, 2025
bfc458f
chore(deps): update build (#13249)
renovate[bot] Apr 29, 2025
e4d9e7e
chore(deps): update lint (#13250)
renovate[bot] Apr 29, 2025
b3ecee3
fix(runtime-core): update __vnode of static nodes when patching alon…
makedopamine May 1, 2025
5d166f3
fix(compiler-core): remove slot cache from parent renderCache during …
edison1105 May 1, 2025
016c472
fix(runtime-core): stop tracking deps in setRef during unmount (#13210)
makedopamine May 1, 2025
8b848cb
fix(TransitionGroup): reset prevChildren to prevent memory leak (#13183)
edison1105 May 1, 2025
0b23fd2
fix(reactivity): should not recompute if computed does not track reac…
edison1105 May 1, 2025
5e37dd0
fix(hmr/teleport): adjust static children traversal for HMR in dev mo…
edison1105 May 2, 2025
2206cd2
fix(ssr): properly init slots during ssr rendering (#12441)
edison1105 May 2, 2025
9196222
fix(slots): properly warn if slot invoked in setup (#12195)
yangxiuxiu1115 May 2, 2025
3f27c58
fix(runtime-core): respect immutability for readonly reactive arrays …
jh-leong May 2, 2025
56be3dd
chore(deps): update compiler to ^7.27.1 (#13277)
renovate[bot] May 5, 2025
f556c92
chore: fix typo (#13290) [ci skip]
edison1105 May 7, 2025
d79aa70
chore(deps): update build (#13276)
renovate[bot] May 10, 2025
3cb4db2
chore: add pnpm setting to pnpm-workspace (#13268)
btea May 10, 2025
258f78b
chore(deps): update test (#13311)
renovate[bot] May 13, 2025
f7dad6d
chore(deps): update dependency @babel/parser to ^7.27.2 (#13310)
renovate[bot] May 13, 2025
9c4dbbc
fix(hmr): avoid hydration for hmr updating (#12262)
edison1105 May 13, 2025
343c891
fix(transition): fix KeepAlive with transition out-in mode behavior i…
yangxiuxiu1115 May 13, 2025
8e34357
fix(compiler-sfc): fix scope handling for props destructure in functi…
edison1105 May 13, 2025
6264505
fix(runtime-core): inherit comment nodes during block patch in produc…
tonliver May 13, 2025
1f98a9c
fix(hmr): avoid hydration for hmr root reload (#12450)
edison1105 May 13, 2025
0e254ce
feat: add oxlint
camc314 May 14, 2025
19e10ff
Merge branch 'minor' into c/use-oxlint
edison1105 May 15, 2025
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
150 changes: 150 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [],
"categories": {
"correctness": "off"
},
"env": {
"builtin": true
},
"ignorePatterns": [
"**/dist/",
"**/temp/",
"**/coverage/",
".idea/",
"explorations/",
"dts-build/packages"
],
"overrides": [
{
"files": ["**/*.js", "**/*.ts", "**/*.tsx"],
"rules": {
"no-debugger": "error",
"no-console": [
"error",
{
"allow": ["warn", "error", "info"]
}
],
"no-restricted-globals": [
"error",
"window",
"document",
"module",
"require"
],
"oxc/no-const-enum": "error",
"oxc/no-rest-spread-properties": "error",
"oxc/no-async-await": "error",
"oxc/no-optional-chaining": "error",
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"unicorn/prefer-node-protocol": "error",
"@typescript-eslint/prefer-ts-expect-error": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports",
"disallowTypeAnnotations": false
}
],
"@typescript-eslint/no-import-type-side-effects": "error"
},
"plugins": ["typescript"]
},
{
"files": [
"**/__tests__/**",
"packages-private/dts-test/**",
"packages-private/dts-build-test/**"
],
"rules": {
"no-console": "off",
"no-restricted-globals": "off",
"vitest/no-disabled-tests": "error",
"vitest/no-focused-tests": "error"
},
"globals": {
"suite": "writeable",
"test": "writeable",
"describe": "writeable",
"it": "writeable",
"expectTypeOf": "writeable",
"assertType": "writeable",
"expect": "writeable",
"assert": "writeable",
"chai": "writeable",
"vitest": "writeable",
"vi": "writeable",
"beforeAll": "writeable",
"afterAll": "writeable",
"beforeEach": "writeable",
"afterEach": "writeable",
"onTestFailed": "writeable",
"onTestFinished": "writeable"
},
"plugins": ["vitest"]
},
{
"files": ["packages/shared/**", "eslint.config.js"],
"rules": {
"no-restricted-globals": "off"
}
},
{
"files": ["packages/{vue,vue-compat,runtime-dom}/**"],
"rules": {
"no-restricted-globals": ["error", "module", "require"]
}
},
{
"files": ["packages/{compiler-sfc,compiler-ssr,server-renderer}/**"],
"rules": {
"no-restricted-globals": ["error", "window", "document"],
"oxc/no-const-enum": "error"
}
},
{
"files": [
"packages-private/template-explorer/**",
"packages-private/sfc-playground/**"
],
"rules": {
"no-restricted-globals": ["error", "module", "require"],
"oxc/no-const-enum": "error",
"no-console": "off"
}
},
{
"files": ["*.js"],
"rules": {
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none"
}
]
}
},
{
"files": [
"eslint.config.js",
"rollup*.config.js",
"scripts/**",
"./*.{js,ts}",
"packages/*/*.js",
"packages/vue/*/*.js"
],
"rules": {
"no-restricted-globals": "off",
"oxc/no-const-enum": "error",
"no-console": "off"
}
}
]
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"size-esm-runtime": "node scripts/build.js vue -f esm-bundler-runtime",
"size-esm": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler",
"check": "tsc --incremental --noEmit",
"lint": "eslint --cache .",
"lint": "pnpm run \"/^lint:eslint|^lint:ox/\"",
"lint:eslint": "eslint --cache .",
"lint:ox": "oxlint",
"format": "prettier --write --cache .",
"format-check": "prettier --check --cache .",
"test": "vitest",
Expand Down Expand Up @@ -91,6 +93,7 @@
"markdown-table": "^3.0.4",
"marked": "13.0.3",
"npm-run-all2": "^7.0.2",
"oxlint": "^0.16.10",
"picocolors": "^1.1.1",
"prettier": "^3.5.3",
"pretty-bytes": "^6.1.1",
Expand Down
83 changes: 83 additions & 0 deletions pnpm-lock.yaml

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