Skip to content
Open
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
78 changes: 78 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ export default [
...eslintPluginN.configs["flat/recommended-module"].rules,
// Unicorn plugin recommended rules
...eslintPluginUnicorn.configs.recommended.rules,
// unicorn/logical-assignment-operators: explicit options required due to a bug in
// eslint-plugin-unicorn v78 where defaultOptions resolves to [null], failing ESLint 10 schema validation.
"unicorn/logical-assignment-operators": ["error", "always"],
// Disable noisy stylistic rules for now
"unicorn/no-null": "off",
"unicorn/no-array-for-each": "off",
Expand All @@ -73,6 +76,74 @@ export default [
"unicorn/prefer-ternary": "off",
// Rules from .eslintrc.json
"unicorn/no-process-exit": "off",
// Rules added in eslint-plugin-unicorn v65–v78 — disable until we have capacity to adopt
"unicorn/name-replacements": "off",
"unicorn/no-asterisk-prefix-in-documentation-comments": "off",
"unicorn/consistent-boolean-name": "off",
"unicorn/consistent-class-member-order": "off",
"unicorn/consistent-conditional-object-spread": "off",
"unicorn/isolated-functions": "off",
"unicorn/max-nested-calls": "off",
"unicorn/no-for-each": "off",
"unicorn/no-global-object-property-assignment": "off",
"unicorn/no-non-function-verb-prefix": "off",
"unicorn/no-this-outside-of-class": "off",
"unicorn/no-top-level-assignment-in-function": "off",
"unicorn/no-top-level-side-effects": "off",
"unicorn/no-unnecessary-global-this": "off",
"unicorn/no-useless-coercion": "off",
"unicorn/prefer-await": "off",
"unicorn/prefer-early-return": "off",
"unicorn/prefer-simple-condition-first": "off",
"unicorn/prefer-split-limit": "off",
"unicorn/single-line-block-comment-style": "off",
"unicorn/no-computed-property-existence-check": "off",
"unicorn/no-unreadable-for-of-expression": "off",
"unicorn/no-unnecessary-parameters": "off",
"unicorn/no-unnecessary-string-trim": "off",
"unicorn/prefer-unicode-code-point-escapes": "off",
"unicorn/prefer-continue": "off",
"unicorn/no-useless-else": "off",
"unicorn/no-useless-template-literals": "off",
"unicorn/class-reference-in-static-methods": "off",
"unicorn/default-export-style": "off",
"unicorn/no-break-in-nested-loop": "off",
"unicorn/no-declarations-before-early-exit": "off",
"unicorn/no-duplicate-if-branches": "off",
"unicorn/no-multiple-promise-resolver-calls": "off",
"unicorn/no-negated-array-predicate": "off",
"unicorn/no-negated-condition": "off",
"unicorn/no-return-array-push": "off",
"unicorn/no-unnecessary-array-flat-map": "off",
"unicorn/no-unnecessary-boolean-comparison": "off",
"unicorn/no-unnecessary-nested-ternary": "off",
"unicorn/no-unsafe-string-replacement": "off",
"unicorn/no-useless-logical-operand": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/operator-assignment": "off",
"unicorn/prefer-array-from-async": "off",
"unicorn/prefer-array-from-map": "off",
"unicorn/prefer-array-some": "off",
"unicorn/prefer-combined-guards": "off",
"unicorn/prefer-default-parameters": "off",
"unicorn/prefer-direct-iteration": "off",
"unicorn/prefer-else-if": "off",
"unicorn/prefer-hoisting-branch-code": "off",
"unicorn/prefer-https": "off",
"unicorn/prefer-includes-over-repeated-comparisons": "off",
"unicorn/prefer-iterator-to-array": "off",
"unicorn/prefer-logical-operator-over-ternary": "off",
"unicorn/prefer-minimal-ternary": "off",
"unicorn/prefer-modern-dom-apis": "off",
"unicorn/prefer-number-coercion": "off",
"unicorn/prefer-number-is-safe-integer": "off",
"unicorn/prefer-object-define-properties": "off",
"unicorn/prefer-promise-with-resolvers": "off",
"unicorn/prefer-short-escape-sequences": "off",
"unicorn/prefer-smaller-scope": "off",
"unicorn/prefer-string-repeat": "off",
"unicorn/prefer-url-href": "off",
"unicorn/require-array-sort-compare": "off",
"n/no-process-exit": "off",
"n/no-unsupported-features/node-builtins": "off",
// Prettier
Expand Down Expand Up @@ -282,6 +353,13 @@ export default [
"@typescript-eslint/unbound-method": "off",
},
},
{
// oclif hook naming convention uses underscores (command_not_found); exempt from filename-case
files: ["**/hooks/command_not_found/**"],
rules: {
"unicorn/filename-case": "off",
},
},
{
// Playwright browser E2E tests – allow browser globals and silence node-specific rules
files: ["test/e2e/**/*.ts"],
Expand Down
2 changes: 1 addition & 1 deletion examples/web-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@tailwindcss/vite": "^4.2.4",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vercel/node": "^5.7.15",
"@vercel/node": "^24.0.3",
"@vitejs/plugin-react": "^6.0.1",
"autoprefixer": "^10.5.0",
"eslint": "^10.3.0",
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,44 +142,44 @@
"devDependencies": {
"@eslint/compat": "^2.1.0",
"@eslint/js": "^10.0.1",
"@oclif/test": "^4.1.18",
"@oclif/test": "^5.0.3",
"@types/fast-levenshtein": "^0.0.4",
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.9",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^25.6.2",
"@types/node": "^26.6.5",
"@types/node-fetch": "^2.6.13",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@types/ws": "^8.5.11",
"@typescript-eslint/eslint-plugin": "^8.59.2",
"@typescript-eslint/parser": "^8.59.2",
"@vitest/coverage-v8": "^4.1.5",
"@vitest/coverage-v8": "^5.0.5",
"@vitest/eslint-plugin": "^1.6.17",
"@vitest/ui": "^4.1.5",
"dotenv": "^17.4.2",
"@vitest/ui": "^5.0.5",
"dotenv": "^18.0.8",
"eslint": "^10.3.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-n": "^18.5.0",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-unicorn": "^64.0.0",
"execa": "^9.6.1",
"eslint-plugin-unicorn": "^78.0.0",
"execa": "^10.2.0",
"fs-extra": "^11.3.5",
"get-port": "^7.2.0",
"globals": "^17.6.0",
"http-server": "^14.1.1",
"nock": "^14.0.15",
"nock": "^15.0.2",
"node-pty": "^1.1.0",
"oclif": "^4.22.98",
"oclif": "^6.0.10",
"playwright": "^1.59.1",
"prettier": "^3.8.3",
"serve": "^14.2.6",
"shx": "^0.4",
"strip-ansi": "^7.2.0",
"ts-node": "11.0.0-beta.1",
"typescript": "^5.9.3",
"vitest": "^4.1.5"
"vitest": "^5.0.5"
},
"engines": {
"node": ">=22.0.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/react-web-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@
"@xterm/xterm": "^6.0.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"@vitest/ui": "^4.1.6",
"@vitest/ui": "^5.0.5",
"eslint-plugin-react": "^7.37.5",
"lucide-react": "^1.14.0",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"tsup": "^8.5.1",
"tsup": "^9.0.0",
"typescript": "^5.9.3",
"vite": "8.0.10",
"vitest": "^4.1.6"
"vitest": "^5.0.5"
},
"publishConfig": {
"access": "public"
Expand Down
Loading
Loading