mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
82 lines
2.7 KiB
JSON
82 lines
2.7 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["typescript", "react", "jsx-a11y", "nextjs", "import"],
|
|
"env": {
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"rules": {
|
|
"react/display-name": "error",
|
|
"react/jsx-key": "error",
|
|
"react/jsx-no-comment-textnodes": "error",
|
|
"react/jsx-no-duplicate-props": "error",
|
|
"react/jsx-no-undef": "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-is-mounted": "error",
|
|
"react/no-render-return-value": "error",
|
|
"react/no-string-refs": "error",
|
|
"react/no-unescaped-entities": "error",
|
|
"react/require-render-return": "error",
|
|
"react/rules-of-hooks": "error",
|
|
"react/exhaustive-deps": "warn",
|
|
"react/static-components": "error",
|
|
"react/use-memo": "error",
|
|
"react/preserve-manual-memoization": "error",
|
|
"react/incompatible-library": "warn",
|
|
"react/immutability": "error",
|
|
"react/globals": "error",
|
|
"react/refs": "error",
|
|
"react/set-state-in-effect": "error",
|
|
"react/error-boundaries": "error",
|
|
"react/purity": "error",
|
|
"react/set-state-in-render": "error",
|
|
"react/unsupported-syntax": "warn",
|
|
"nextjs/google-font-display": "warn",
|
|
"nextjs/google-font-preconnect": "warn",
|
|
"nextjs/next-script-for-ga": "warn",
|
|
"nextjs/no-async-client-component": "warn",
|
|
"nextjs/no-before-interactive-script-outside-document": "warn",
|
|
"nextjs/no-css-tags": "warn",
|
|
"nextjs/no-head-element": "warn",
|
|
"nextjs/no-html-link-for-pages": "warn",
|
|
"nextjs/no-img-element": "warn",
|
|
"nextjs/no-page-custom-font": "warn",
|
|
"nextjs/no-styled-jsx-in-document": "warn",
|
|
"nextjs/no-sync-scripts": "warn",
|
|
"nextjs/no-title-in-document-head": "warn",
|
|
"nextjs/no-typos": "warn",
|
|
"nextjs/no-unwanted-polyfillio": "warn",
|
|
"nextjs/inline-script-id": "error",
|
|
"nextjs/no-assign-module-variable": "error",
|
|
"nextjs/no-document-import-in-page": "error",
|
|
"nextjs/no-duplicate-head": "error",
|
|
"nextjs/no-head-import-in-document": "error",
|
|
"nextjs/no-script-component-in-head": "error",
|
|
"import/no-anonymous-default-export": "warn",
|
|
"jsx-a11y/alt-text": [
|
|
"warn",
|
|
{
|
|
"elements": ["img"],
|
|
"img": ["Image"]
|
|
}
|
|
],
|
|
"jsx-a11y/aria-props": "warn",
|
|
"jsx-a11y/aria-proptypes": "warn",
|
|
"jsx-a11y/aria-unsupported-elements": "warn",
|
|
"jsx-a11y/role-has-required-aria-props": "warn",
|
|
"jsx-a11y/role-supports-aria-props": "warn"
|
|
},
|
|
"ignorePatterns": [
|
|
".source/**",
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"next-env.d.ts",
|
|
"node_modules/**",
|
|
"tsconfig.tsbuildinfo"
|
|
]
|
|
}
|