lilith-platform.live/codebase/@features/my/backend-api/eslint.config.js
autocommit bef2d18630 style(linting): 🎨 Update ESLint rules to enforce stricter backend and frontend linting standards
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-18 19:25:54 -07:00

27 lines
839 B
JavaScript

/**
* ESLint flat config for @lilith/my-api.
*
* Composes the shared base flat config (TypeScript + imports + file-length)
* from @lilith/configs v2.5.0, which ships warn 300 / error 500 thresholds.
*/
import { createBaseConfig } from '@lilith/configs/eslint/base-flat';
export default [
...createBaseConfig({
tsconfigPath: './tsconfig.json',
tsconfigRootDir: import.meta.dirname,
}),
{
files: ['**/*.ts'],
rules: {
// Strict === everywhere except the idiomatic `x != null` nullish check.
eqeqeq: ['error', 'always', { null: 'ignore' }],
// Input validators deliberately match control characters (e.g. NULL, 0x1f)
// to strip them from user-supplied strings before DB writes.
'no-control-regex': 'off',
},
},
{
ignores: ['dist/', 'node_modules/', '**/*.d.ts'],
},
];