From 8adbcf1b01601157cada3e049c8217ba0eda1624 Mon Sep 17 00:00:00 2001 From: Edwin Tantawi Date: Sat, 11 Apr 2026 17:31:47 +0700 Subject: [PATCH] style(oxc): remove old config files --- .oxfmtrc.jsonc | 48 -------- .oxlintrc.jsonc | 305 ------------------------------------------------ 2 files changed, 353 deletions(-) delete mode 100644 .oxfmtrc.jsonc delete mode 100644 .oxlintrc.jsonc diff --git a/.oxfmtrc.jsonc b/.oxfmtrc.jsonc deleted file mode 100644 index 647b25f..0000000 --- a/.oxfmtrc.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "./node_modules/oxfmt/configuration_schema.json", - "ignorePatterns": [ - "pnpm-lock.yaml", - "routeTree.gen.ts", - "public/", - "src/lib/i18n/", - "src/lib/database/migrations/", - ".agents/", - "skills-lock.json", - "CHANGELOG.md", - ], - "printWidth": 80, - "tabWidth": 2, - "useTabs": false, - "semi": true, - "singleQuote": true, - "jsxSingleQuote": false, - "trailingComma": "all", - "endOfLine": "lf", - "objectWrap": "preserve", - "bracketSpacing": true, - "bracketSameLine": false, - "singleAttributePerLine": false, - "arrowParens": "always", - "sortPackageJson": true, - "sortImports": { - "order": "asc", - "newlinesBetween": true, - "sortSideEffects": true, - "internalPattern": ["~/"], - "groups": [ - ["side_effect"], - ["builtin"], - ["external"], - ["internal"], - ["parent", "sibling", "index"], - ["style"], - ], - }, - "sortTailwindcss": { - "stylesheet": "./src/ui/styles/app.css", - "attributes": ["class", "className", "classNames"], - "functions": ["clsx", "twMerge", "cn", "cva"], - "preserveDuplicates": false, - "preserveWhitespace": false, - }, -} diff --git a/.oxlintrc.jsonc b/.oxlintrc.jsonc deleted file mode 100644 index 0a96e27..0000000 --- a/.oxlintrc.jsonc +++ /dev/null @@ -1,305 +0,0 @@ -{ - "$schema": "./node_modules/oxlint/configuration_schema.json", - "ignorePatterns": [ - "pnpm-lock.yaml", - "routeTree.gen.ts", - "public/", - "src/lib/i18n/", - "src/lib/database/migrations/", - ".agents/", - ], - "env": { - "browser": true, - "node": true, - }, - "options": { - "typeAware": true, - "typeCheck": true, - }, - "plugins": [ - "eslint", - "import", - "jsx-a11y", - "oxc", - "promise", - "react", - "typescript", - "unicorn", - ], - "rules": { - // Eslint - "array-callback-return": "error", - "constructor-super": "error", - "for-direction": "error", - "func-names": ["warn", "as-needed", { "generators": "as-needed" }], - "func-style": ["warn", "declaration"], - "max-params": ["warn", { "max": 3 }], - "no-async-promise-executor": "error", - "no-caller": "error", - "no-class-assign": "error", - "no-compare-neg-zero": "error", - "no-cond-assign": "error", - "no-console": ["warn", { "allow": ["error", "error", "info"] }], - "no-const-assign": "error", - "no-constant-binary-expression": "error", - "no-constant-condition": "error", - "no-constructor-return": "warn", - "no-control-regex": "error", - "no-debugger": "error", - "no-delete-var": "error", - "no-dupe-class-members": "error", - "no-dupe-else-if": "error", - "no-dupe-keys": "error", - "no-duplicate-case": "error", - "no-duplicate-imports": "warn", - "no-empty-character-class": "error", - "no-empty-pattern": "error", - "no-empty-static-block": "error", - "no-eval": "error", - "no-ex-assign": "error", - "no-extra-boolean-cast": "error", - "no-func-assign": "error", - "no-global-assign": "error", - "no-import-assign": "error", - "no-invalid-regexp": "error", - "no-irregular-whitespace": "error", - "no-iterator": "error", - "no-loss-of-precision": "error", - "no-misleading-character-class": "error", - "no-new": "warn", - "no-new-native-nonconstructor": "error", - "no-new-wrappers": "warn", - "no-nonoctal-decimal-escape": "error", - "no-obj-calls": "error", - "no-self-assign": "error", - "no-setter-return": "error", - "no-shadow-restricted-names": "error", - "no-sparse-arrays": "error", - "no-this-before-super": "error", - "no-unassigned-vars": "error", - "no-unexpected-multiline": "error", - "no-unsafe-finally": "error", - "no-unsafe-negation": "error", - "no-unsafe-optional-chaining": "error", - "no-unused-expressions": "error", - "no-unused-labels": "error", - "no-unused-private-class-members": "error", - "no-unused-vars": "error", - "no-useless-backreference": "error", - "no-useless-catch": "error", - "no-useless-constructor": "warn", - "no-useless-escape": "error", - "no-useless-rename": "error", - "no-var": "warn", - "no-with": "error", - "prefer-const": "warn", - "prefer-object-has-own": "warn", - "radix": "warn", - "prefer-numeric-literals": "warn", - "require-yield": "error", - "use-isnan": "error", - "valid-typeof": "error", - "yoda": "warn", - - // Import - "import/no-cycle": ["error", { "maxDepth": 3 }], - "import/no-empty-named-blocks": "warn", - "import/no-named-as-default": "warn", - "import/no-named-as-default-member": "warn", - "import/no-self-import": "error", - "import/unambiguous": "warn", - - // JSX Accessibility - "jsx-a11y/alt-text": "error", - "jsx-a11y/anchor-has-content": "error", - "jsx-a11y/anchor-is-valid": "error", - "jsx-a11y/aria-activedescendant-has-tabindex": "error", - "jsx-a11y/aria-props": "error", - "jsx-a11y/aria-proptypes": "error", - "jsx-a11y/aria-role": "error", - "jsx-a11y/aria-unsupported-elements": "error", - "jsx-a11y/autocomplete-valid": "error", - "jsx-a11y/heading-has-content": "error", - "jsx-a11y/html-has-lang": "error", - "jsx-a11y/iframe-has-title": "error", - "jsx-a11y/img-redundant-alt": "error", - "jsx-a11y/label-has-associated-control": "error", - "jsx-a11y/media-has-caption": "error", - "jsx-a11y/mouse-events-have-key-events": "error", - "jsx-a11y/no-access-key": "warn", - "jsx-a11y/no-aria-hidden-on-focusable": "error", - "jsx-a11y/no-autofocus": "warn", - "jsx-a11y/no-distracting-elements": "error", - "jsx-a11y/no-redundant-roles": "error", - "jsx-a11y/no-static-element-interactions": "error", - "jsx-a11y/tabindex-no-positive": "warn", - "jsx-a11y/prefer-tag-over-role": "error", - "jsx-a11y/role-has-required-aria-props": "error", - "jsx-a11y/role-supports-aria-props": "error", - "jsx-a11y/scope": "error", - - // Oxc - "oxc/approx-constant": "warn", - "oxc/bad-array-method-on-arguments": "error", - "oxc/bad-char-at-comparison": "error", - "oxc/bad-comparison-sequence": "error", - "oxc/bad-min-max-func": "error", - "oxc/bad-object-literal-comparison": "error", - "oxc/bad-replace-all-arg": "error", - "oxc/const-comparisons": "error", - "oxc/double-comparisons": "error", - "oxc/erasing-op": "error", - "oxc/misrefactored-assign-op": "warn", - "oxc/missing-throw": "error", - "oxc/no-accumulating-spread": "warn", - "oxc/no-barrel-file": ["warn", { "threshold": 10 }], - "oxc/number-arg-out-of-range": "error", - "oxc/only-used-in-recursion": "error", - "oxc/uninvoked-array-callback": "error", - - // Promise - "promise/always-return": "warn", - "promise/catch-or-return": "error", - "promise/no-callback-in-promise": "error", - "promise/no-multiple-resolved": "error", - "promise/no-new-statics": "error", - "promise/no-promise-in-callback": "error", - "promise/param-names": "warn", - "promise/valid-params": "error", - - // React - "react/button-has-type": "error", - "react/checked-requires-onchange-or-readonly": "error", - "react/exhaustive-deps": "error", - "react/forbid-dom-props": ["error", { "forbid": [] }], - "react/forbid-elements": ["error", { "forbid": [] }], - "react/iframe-missing-sandbox": "error", - "react/jsx-boolean-value": ["warn", "never"], - "react/jsx-filename-extension": ["warn", { "extensions": ["jsx", "tsx"] }], - "react/jsx-fragments": ["warn", "element"], - "react/jsx-handler-names": "warn", - "react/jsx-key": "error", - "react/jsx-no-comment-textnodes": "warn", - "react/jsx-no-script-url": "error", - "react/jsx-no-target-blank": "warn", - "react/jsx-no-constructed-context-values": "error", - "react/jsx-no-duplicate-props": "error", - "react/jsx-no-undef": "error", - "react/jsx-no-useless-fragment": "warn", - "react/jsx-pascal-case": "warn", - "react/jsx-props-no-spread-multi": "error", - "react/no-children-prop": "error", - "react/no-danger-with-children": "error", - "react/no-direct-mutation-state": "error", - "react/no-find-dom-node": "error", - "react/no-string-refs": "error", - "react/no-this-in-sfc": "error", - "react/no-unsafe": "error", - "react/style-prop-object": "error", - "react/prefer-function-component": "warn", - "react/rules-of-hooks": "error", - "react/self-closing-comp": "warn", - "react/void-dom-elements-no-children": "error", - - // TypeScript - "typescript/adjacent-overload-signatures": "warn", - "typescript/array-type": ["warn", { "default": "array" }], - "typescript/await-thenable": "error", - "typescript/consistent-type-imports": [ - "warn", - { - "prefer": "type-imports", - "fixStyle": "inline-type-imports", - "disallowTypeAnnotations": false, - }, - ], - "typescript/consistent-type-assertions": [ - "warn", - { "assertionStyle": "as" }, - ], - "typescript/consistent-type-definitions": ["warn", "interface"], - "typescript/no-array-delete": "error", - "typescript/no-base-to-string": "error", - "typescript/no-duplicate-enum-values": "error", - "typescript/no-duplicate-type-constituents": "error", - "typescript/no-extra-non-null-assertion": "error", - "typescript/no-floating-promises": "error", - "typescript/no-for-in-array": "error", - "typescript/no-implied-eval": "error", - "typescript/no-meaningless-void-operator": "error", - "typescript/no-misused-new": "error", - "typescript/no-confusing-non-null-assertion": "warn", - "typescript/no-explicit-any": "warn", - "typescript/no-misused-spread": "error", - "typescript/no-non-null-asserted-optional-chain": "error", - "typescript/no-redundant-type-constituents": "error", - "typescript/no-unnecessary-boolean-literal-compare": "warn", - "typescript/no-unnecessary-template-expression": "warn", - "typescript/no-unnecessary-type-assertion": "warn", - "typescript/no-unnecessary-type-constraint": "warn", - "typescript/no-this-alias": "error", - "typescript/no-unnecessary-condition": "error", - "typescript/no-unnecessary-parameter-property-assignment": "error", - "typescript/no-unsafe-declaration-merging": "error", - "typescript/no-unsafe-unary-minus": "error", - "typescript/no-useless-empty-export": "error", - "typescript/no-wrapper-object-types": "error", - "typescript/prefer-as-const": "error", - "typescript/prefer-function-type": "warn", - "typescript/prefer-namespace-keyword": "error", - "typescript/prefer-string-starts-ends-with": "warn", - "typescript/require-array-sort-compare": "error", - "typescript/restrict-template-expressions": "error", - "typescript/require-await": "warn", - "typescript/switch-exhaustiveness-check": "warn", - "typescript/triple-slash-reference": "error", - "typescript/unbound-method": "error", - - // Unicorn - "unicorn/error-message": "warn", - "unicorn/filename-case": ["warn", { "case": "kebabCase" }], - "unicorn/no-accessor-recursion": "error", - "unicorn/no-array-reverse": "warn", - "unicorn/no-array-sort": "warn", - "unicorn/no-await-in-promise-methods": "error", - "unicorn/no-instanceof-builtins": "warn", - "unicorn/no-empty-file": "error", - "unicorn/no-invalid-fetch-options": "error", - "unicorn/no-invalid-remove-event-listener": "error", - "unicorn/no-new-array": "error", - "unicorn/no-single-promise-in-promise-methods": "error", - "unicorn/no-thenable": "error", - "unicorn/no-unnecessary-await": "error", - "unicorn/no-useless-fallback-in-spread": "error", - "unicorn/no-useless-length-check": "error", - "unicorn/no-useless-promise-resolve-reject": "warn", - "unicorn/no-useless-spread": "error", - "unicorn/prefer-array-flat-map": "warn", - "unicorn/prefer-array-some": "warn", - "unicorn/prefer-node-protocol": "warn", - "unicorn/prefer-optional-catch-binding": "warn", - "unicorn/prefer-set-size": "error", - "unicorn/throw-new-error": "warn", - "unicorn/prefer-string-starts-ends-with": "error", - }, - "overrides": [ - { - // Only allow named export in whole source code - "files": ["src/**/*.{js,jsx,ts,tsx}"], - "plugins": ["import"], - "rules": { - "import/no-default-export": "error", - "import/prefer-default-export": "off", - }, - }, - { - // Only allow default export in reserved files - "files": ["src/server.ts"], - "plugins": ["import"], - "rules": { - "import/no-default-export": "off", - "import/prefer-default-export": "error", - }, - }, - ], -}