nxtgauge-admin-solid/.eslintrc.cjs
Tracewebstudio Dev 164bbaf99b
Some checks failed
build-and-release / build (push) Failing after 30s
feat: role registration wizard + shared identity doc pre-fill
- 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>
2026-08-12 14:55:25 +02:00

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",
],
};