nxtgauge-admin-solid/.eslintrc.cjs
Tracewebstudio Dev 6b8d4894fd
Some checks failed
build-and-release / build (push) Failing after 17s
feat: pending-verification count badge in sidebar
- AdminSidebar: new badgeCounts prop (Record<string, number>); Verification
  Management nav item shows an orange pill badge when pendingVerifications > 0
  (both expanded and collapsed states)
- AdminShell: fetch /api/admin/verifications?status=PENDING on mount and
  poll every 60 s; passes count as badgeCounts to AdminSidebar — badge updates
  automatically as users submit role-registration wizards
- ESLint config: turn off solid/style-prop (whole codebase uses string styles),
  no-explicit-any (complex admin data shapes), add varsIgnorePattern/
  destructuredArrayIgnorePattern: '^_'; fix pre-existing unused
  User/GlobalSearch/ShowTabs/pageTitle symbols and return-once violation in
  _ShowTabs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-12 17:10:48 +02:00

55 lines
1.5 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": "off",
"solid/prefer-for": "error",
"solid/reactivity": "warn",
"solid/event-handlers": "off",
"solid/no-react-specific-props": "off",
"solid/no-innerhtml": "warn",
"solid/no-destructure": "warn",
"solid/self-closing-comp": "off",
// Admin codebase uses inline string styles throughout — suppress style-prop noise
"solid/style-prop": "off",
},
},
],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"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",
],
};