140 lines
4.1 KiB
JSON
140 lines
4.1 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"extends": ["../.oxlintrc.json"],
|
|
"ignorePatterns": ["src/terminal/terminal-webview-engine.generated.ts"],
|
|
"rules": {
|
|
"react-hooks/exhaustive-deps": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"typescript/array-type": "off",
|
|
"typescript/consistent-type-definitions": "off",
|
|
"typescript/consistent-type-imports": "off",
|
|
"prefer-template": "off",
|
|
"no-useless-return": "off",
|
|
"unicorn/prefer-at": "off",
|
|
"unicorn/prefer-ternary": "off",
|
|
"unicorn/prefer-node-protocol": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["app/h/*/tasks.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 14682, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/h/*/session/*.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 5015, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/terminal/TerminalWebView.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 379, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/terminal/terminal-webview-html.ts"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 1784, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/h/*/source-control/*.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 2152, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/h/*/index.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 1603, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/browser/MobileBrowserPane.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 1594, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/index.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 1422, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/components/NewWorktreeModal.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 1263, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/transport/rpc-client.ts"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 1074, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/components/mobile-rich-markdown-editor-html.ts"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 648, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/components/CustomKeyModal.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 645, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/pair-scan.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 531, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/terminal-settings.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 514, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["scripts/mock-server.ts"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 407, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/terminal/terminal-accessory-keys.ts"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 388, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/troubleshoot.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 436, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["scripts/repro-worktree-startup-stream.ts"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 326, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["scripts/repro-terminal-colors.ts"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 319, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
},
|
|
{
|
|
"files": ["app/h/*/files/*.tsx"],
|
|
"rules": {
|
|
"max-lines": ["error", { "max": 402, "skipBlankLines": true, "skipComments": true }]
|
|
}
|
|
}
|
|
]
|
|
}
|