Some checks failed
build-and-release / build (push) Failing after 30s
- Add RoleWizard inline to SwitchServicesPage after successful role registration — same wizard flow as ProfilePage, no separate step - Pre-fill identity documents (Aadhaar, PAN, selfie, etc.) from the user's active role profile so they don't re-upload on second role - Add identity_shared flag to RuntimeOnboardingField for admin- configurable per-field opt-in; CONVENTION_IDENTITY_FIELD_IDS covers common IDs without schema changes - Extract roleKeyToPrefix() into src/lib/role-utils.ts (shared util) - Fix solid/reactivity: snapshot portfolioForm()/form()/docUrls() synchronously before the first await in handleSubmit - Reuse badge (♻ purple) distinguishes pre-filled docs from new uploads; Change link clears the pre-fill and lets user re-upload - Pending roles now show 'Under Review' status badge instead of Switch - ArrowLeft back-button in header exits wizard without full page reload Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
53 lines
1.4 KiB
JavaScript
53 lines
1.4 KiB
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
plugins: ["solid"],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:solid/recommended",
|
|
],
|
|
overrides: [
|
|
{
|
|
files: ["**/*.tsx"],
|
|
parserOptions: {
|
|
ecmaFeatures: { jsx: true },
|
|
},
|
|
settings: {
|
|
solid: { noImportReact: true },
|
|
},
|
|
rules: {
|
|
"solid/jsx-no-undef": "error",
|
|
"solid/prefer-classlist": "error",
|
|
"solid/prefer-for": "error",
|
|
"solid/reactivity": "warn",
|
|
"solid/event-handlers": "warn",
|
|
"solid/no-react-specific-props": "error",
|
|
"solid/no-innerhtml": "warn",
|
|
"solid/no-destructure": "warn",
|
|
"solid/self-closing-comp": "warn",
|
|
},
|
|
},
|
|
],
|
|
rules: {
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"arrow-body-style": ["warn", "as-needed"],
|
|
curly: ["error", "multi-line"],
|
|
"no-console": "off",
|
|
"no-debugger": "warn",
|
|
"no-unused-vars": "off",
|
|
"prefer-const": "error",
|
|
},
|
|
env: { browser: true },
|
|
ignorePatterns: [
|
|
"dist",
|
|
".output",
|
|
"node_modules",
|
|
"coverage",
|
|
"storybook-static",
|
|
"test-results",
|
|
],
|
|
};
|