mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
87 lines
2.4 KiB
JSON
87 lines
2.4 KiB
JSON
{
|
|
"extends": ["../../.oxlintrc.json"],
|
|
"ignorePatterns": [".maestro/**", "scripts/**", "ReactotronConfig.ts", "index.js", ".storybook/**"],
|
|
"rules": {
|
|
"no-shadow": "error",
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"paths": [
|
|
{
|
|
"name": "react-router",
|
|
"message": "Do not import react-router in native code. Use react-navigation instead."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"universe-custom/no-transform-percentage-strings": "error",
|
|
"@jambit/typed-redux-saga/use-typed-effects": "error",
|
|
"@jambit/typed-redux-saga/delegate-effects": "error",
|
|
"complexity": ["error", 20],
|
|
"max-depth": ["error", 4],
|
|
"max-nested-callbacks": ["error", 3],
|
|
"no-restricted-syntax": [
|
|
"error",
|
|
{
|
|
"selector": "CallExpression[callee.object.name='z'][callee.property.name='any']",
|
|
"message": "Avoid using z.any() in favor of more precise custom types."
|
|
}
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
"rules": {
|
|
"universe-custom/no-relative-import-paths": [
|
|
"error",
|
|
{
|
|
"allowSameFolder": false,
|
|
"prefix": "src"
|
|
}
|
|
],
|
|
"typescript/explicit-function-return-type": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
"rules": {
|
|
"universe-custom/no-nested-component-definitions": "error",
|
|
"universe-custom/jsx-prop-order": [
|
|
"error",
|
|
{
|
|
"groups": ["reserved", "shorthand-prop", "unknown", "callback"],
|
|
"reservedPattern": "^(key|ref)$",
|
|
"callbackPattern": "^on[A-Z].+"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["**/*saga*.ts", "**/*Saga.ts", "**/handleDeepLink.ts"],
|
|
"rules": {
|
|
"typescript/prefer-enum-initializers": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["migrations.ts"],
|
|
"rules": {
|
|
"typescript/prefer-enum-initializers": "off",
|
|
"typescript/no-non-null-assertion": "off",
|
|
"typescript/no-empty-interface": "off",
|
|
"typescript/no-explicit-any": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [".maestro/scripts/**"],
|
|
"rules": {
|
|
"no-restricted-imports": "off",
|
|
"curly": "off",
|
|
"no-console": "off",
|
|
"no-lone-blocks": "off",
|
|
"no-case-declarations": "off",
|
|
"no-unused-vars": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|