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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"oxc.oxc-vscode",
"dbaeumer.vscode-eslint",
"vitest.explorer",
"ms-vscode.extension-test-runner"
Expand Down
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
node_modules/
/dist/
/node_modules/
/out/
/.vscode-test/
/.nyc_output/
/coverage/
/.pnpm-store/
*.vsix
pnpm-debug.log
.eslintcache

# Workspace packages
packages/*/node_modules/

# Storybook
storybook-static/
debug-storybook.log

# Personal agent instructions
AGENTS.local.md
9 changes: 2 additions & 7 deletions .oxfmtrc.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
"printWidth": 80,
// Disabled to avoid churning the key order of every package.json in the repo.
"sortPackageJson": false,
// Oxfmt also skips everything in .gitignore.
"ignorePatterns": [
"/dist/",
"/node_modules/",
"/out/",
"/.vscode-test/",
"/coverage/",
"*.vsix",
"flake.lock",
"pnpm-lock.yaml",
"/storybook-static/",
// Golden snapshots and generated VS Code theme dumps are written verbatim.
"**/__golden__/",
".storybook/themes/generated/"
],
Expand Down
93 changes: 85 additions & 8 deletions .oxlintrc.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"extends": [".oxlintrc.react.jsonc"],
"plugins": ["unicorn"],
"plugins": ["unicorn", "typescript", "oxc"],
"categories": {
"correctness": "error"
},
Expand All @@ -21,6 +20,88 @@
"storybook-static/**"
],
"overrides": [
{
"files": ["packages/**/*.{ts,tsx}"],
"rules": {
"react/exhaustive-deps": "off",
"react/preserve-manual-memoization": "error",
"react/incompatible-library": "warn",
"react/error-boundaries": "error",
"react/globals": "error",
"react/immutability": "error",
"react/jsx-no-comment-textnodes": "warn",
"react/no-array-index-key": "warn",
"react/no-clone-element": "warn",
"react/no-direct-mutation-state": "error",
"react/purity": "warn",
"react/refs": "error",
"react/rules-of-hooks": "error",
"react/set-state-in-effect": "warn",
"react/set-state-in-render": "error",
"react/static-components": "error",
"react/unsupported-syntax": "error",
"react/use-memo": "error",
"react-x/dom-no-dangerously-set-innerhtml-with-children": "error",
"react-x/dom-no-dangerously-set-innerhtml": "warn",
"react-x/dom-no-find-dom-node": "error",
"react-x/dom-no-flush-sync": "error",
"react-x/dom-no-hydrate": "error",
"react-x/dom-no-render-return-value": "error",
"react-x/dom-no-render": "error",
"react-x/dom-no-script-url": "warn",
"react-x/dom-no-unsafe-iframe-sandbox": "warn",
"react-x/dom-no-use-form-state": "error",
"react-x/dom-no-void-elements-with-children": "error",
"react-x/jsx-no-children-prop-with-children": "error",
"react-x/jsx-no-children-prop": "warn",
"react-x/jsx-no-key-after-spread": "error",
"react-x/jsx-no-leaked-dollar": "error",
"react-x/jsx-no-leaked-semicolon": "warn",
"react-x/jsx-no-namespace": "error",
"react-x/naming-convention-context-name": "warn",
"react-x/naming-convention-id-name": "warn",
"react-x/naming-convention-ref-name": "warn",
"react-x/no-access-state-in-setstate": "error",
"react-x/no-children-count": "warn",
"react-x/no-children-for-each": "warn",
"react-x/no-children-map": "warn",
"react-x/no-children-only": "warn",
"react-x/no-children-to-array": "warn",
"react-x/no-component-will-mount": "error",
"react-x/no-component-will-receive-props": "error",
"react-x/no-component-will-update": "error",
"react-x/no-context-provider": "warn",
"react-x/no-create-ref": "error",
"react-x/no-forward-ref": "warn",
"react-x/no-missing-key": "error",
"react-x/no-nested-component-definitions": "error",
"react-x/no-nested-lazy-component-declarations": "error",
"react-x/no-set-state-in-component-did-mount": "warn",
"react-x/no-set-state-in-component-did-update": "warn",
"react-x/no-set-state-in-component-will-update": "warn",
"react-x/no-unnecessary-use-prefix": "warn",
"react-x/no-unsafe-component-will-mount": "warn",
"react-x/no-unsafe-component-will-receive-props": "warn",
"react-x/no-unsafe-component-will-update": "warn",
"react-x/no-unused-class-component-members": "warn",
"react-x/no-use-context": "warn",
"react-x/rsc-function-definition": "error",
"react-x/use-state": "warn",
"react-x/web-api-no-leaked-event-listener": "warn",
"react-x/web-api-no-leaked-fetch": "error",
"react-x/web-api-no-leaked-intersection-observer": "warn",
"react-x/web-api-no-leaked-interval": "warn",
"react-x/web-api-no-leaked-resize-observer": "warn",
"react-x/web-api-no-leaked-timeout": "warn"
},
"jsPlugins": [
{
"name": "react-x",
"specifier": "./node_modules/@eslint-react/eslint-plugin/dist/index.js"
}
],
"plugins": ["react"]
},
{
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
"plugins": ["typescript", "import"],
Expand Down Expand Up @@ -166,11 +247,7 @@
}
},
{
"files": [
"esbuild.mjs",
"scripts/*.mjs",
".storybook/themes/*.{mjs,cjs}"
],
"files": ["scripts/*.mjs", ".storybook/themes/*.{mjs,cjs}"],
"env": {
"node": true
}
Expand Down Expand Up @@ -268,7 +345,7 @@
}
},
{
"files": ["src/core/contextManager.ts", "src/core/commandManager.ts"],
"files": ["src/vscode/contextManager.ts", "src/vscode/commandManager.ts"],
"rules": {
"eslint-js/no-restricted-syntax": "off"
}
Expand Down
87 changes: 0 additions & 87 deletions .oxlintrc.react.jsonc

This file was deleted.

18 changes: 0 additions & 18 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "build"
}
]
}
10 changes: 5 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"problemMatcher": ["$tsc"],
"group": "build",
"label": "tsc: build"
"label": "build",
"type": "npm",
"script": "build",
"group": { "kind": "build", "isDefault": true },
"problemMatcher": []
}
]
}
65 changes: 0 additions & 65 deletions .vscodeignore

This file was deleted.

Loading
Loading