27 lines
839 B
JavaScript
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'],
|
|
},
|
|
];
|