Some checks failed
CD / Build and push images (push) Successful in 37s
CI / Lint, typecheck, test (push) Failing after 57s
CI / Build container images (push) Has been skipped
CD / Deploy to Test (push) Successful in 7s
CD / Smoke tests against Test (push) Successful in 1m3s
CD / Promote to Int (push) Has been cancelled
The pnpm cache used by the CI workflow lives in .pnpm-store/ inside the workspace; Prettier and ESLint must not descend into it. Part of #8 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
// Repo-wide ESLint flat config. Packages inherit these rules; add
|
|
// package-specific overrides here (scoped by `files`) rather than with
|
|
// per-package config files, so rules stay consistent across the monorepo.
|
|
import js from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import prettier from 'eslint-config-prettier';
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: [
|
|
'**/dist/**',
|
|
'**/node_modules/**',
|
|
'**/coverage/**',
|
|
'**/.pnpm-store/**',
|
|
'**/*.gen.ts',
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
prettier,
|
|
{
|
|
// Plain-Node maintenance scripts (no TypeScript, no bundler).
|
|
files: ['scripts/**/*.mjs'],
|
|
languageOptions: {
|
|
globals: { console: 'readonly', process: 'readonly' },
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
// Unused values are usually bugs; underscore-prefix marks intentional ones.
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
// `any` defeats the shared Zod/type contracts between client and server.
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
},
|
|
},
|
|
);
|