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
69 changes: 68 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ export default [
...eslintPluginN.configs["flat/recommended-module"].rules,
// Unicorn plugin recommended rules
...eslintPluginUnicorn.configs.recommended.rules,
// Fix for eslint-plugin-unicorn v73: defaultOptions:[null] fails 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",
"unicorn/no-for-loop": "off",
"unicorn/prefer-string-raw": "off",
"unicorn/no-object-as-default-parameter": "off",
Expand All @@ -75,6 +76,72 @@ export default [
"unicorn/no-process-exit": "off",
"n/no-process-exit": "off",
"n/no-unsupported-features/node-builtins": "off",
// --- New rules added in eslint-plugin-unicorn v65-v73: disabled as too opinionated ---
// Renamed rule: no-array-for-each → no-for-each
"unicorn/no-for-each": "off",
// Variable/function naming (too opinionated, would require mass renames)
"unicorn/name-replacements": "off",
"unicorn/consistent-boolean-name": "off",
"unicorn/no-non-function-verb-prefix": "off",
// Code structure (would require major refactoring)
"unicorn/isolated-functions": "off",
"unicorn/prefer-await": "off",
"unicorn/no-top-level-side-effects": "off",
"unicorn/no-top-level-assignment-in-function": "off",
"unicorn/no-global-object-property-assignment": "off",
"unicorn/no-this-outside-of-class": "off",
"unicorn/no-unnecessary-global-this": "off",
// Style preferences
"unicorn/consistent-class-member-order": "off",
"unicorn/consistent-conditional-object-spread": "off",
"unicorn/prefer-simple-condition-first": "off",
"unicorn/single-line-block-comment-style": "off",
"unicorn/prefer-split-limit": "off",
"unicorn/prefer-early-return": "off",
"unicorn/max-nested-calls": "off",
"unicorn/prefer-unicode-code-point-escapes": "off",
"unicorn/no-computed-property-existence-check": "off",
"unicorn/no-break-in-nested-loop": "off",
"unicorn/no-unreadable-for-of-expression": "off",
"unicorn/require-array-sort-compare": "off",
"unicorn/prefer-number-coercion": "off",
"unicorn/prefer-smaller-scope": "off",
"unicorn/no-useless-template-literals": "off",
"unicorn/no-useless-coercion": "off",
"unicorn/no-useless-else": "off",
"unicorn/no-useless-logical-operand": "off",
"unicorn/no-unnecessary-string-trim": "off",
"unicorn/no-duplicate-if-branches": "off",
"unicorn/prefer-promise-with-resolvers": "off",
"unicorn/prefer-includes-over-repeated-comparisons": "off",
"unicorn/no-declarations-before-early-exit": "off",
"unicorn/prefer-url-href": "off",
"unicorn/prefer-else-if": "off",
"unicorn/prefer-continue": "off",
"unicorn/prefer-string-repeat": "off",
"unicorn/prefer-object-define-properties": "off",
"unicorn/prefer-hoisting-branch-code": "off",
"unicorn/prefer-array-from-async": "off",
"unicorn/prefer-number-is-safe-integer": "off",
"unicorn/prefer-https": "off",
"unicorn/prefer-direct-iteration": "off",
"unicorn/no-unsafe-string-replacement": "off",
"unicorn/no-return-array-push": "off",
"unicorn/prefer-modern-dom-apis": "off",
"unicorn/prefer-logical-operator-over-ternary": "off",
"unicorn/prefer-iterator-to-array": "off",
"unicorn/prefer-array-some": "off",
"unicorn/operator-assignment": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/no-unnecessary-nested-ternary": "off",
"unicorn/no-unnecessary-boolean-comparison": "off",
"unicorn/no-negated-array-predicate": "off",
"unicorn/no-multiple-promise-resolver-calls": "off",
"unicorn/default-export-style": "off",
"unicorn/class-reference-in-static-methods": "off",
// filename-case: v73 added directory name checking; disable it to preserve pre-v73 behavior
// (command_not_found hook directory follows oclif conventions and cannot be renamed)
"unicorn/filename-case": ["error", { case: "kebabCase", checkDirectories: false }],
// Prettier
"prettier/prettier": "error",
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.9",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^25.6.2",
"@types/node": "^26.2.0",
"@types/node-fetch": "^2.6.13",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
Expand All @@ -160,11 +160,11 @@
"dotenv": "^17.4.2",
"eslint": "^10.3.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-n": "^18.3.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": "^73.0.0",
"execa": "^10.0.1",
"fs-extra": "^11.3.5",
"get-port": "^7.2.0",
"globals": "^17.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-web-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@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",
Expand Down
Loading
Loading