platform-codebase/@packages/@testing/mocks/eslint.config.js
2026-01-18 09:20:18 -08:00

27 lines
768 B
JavaScript
Executable file

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import fileLengthPlugin from '@lilith/eslint-plugin-file-length';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
'@lilith/file-length': fileLengthPlugin,
},
rules: {
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'warn',
'@lilith/file-length/file-length': [
'warn',
{
warnThreshold: 400,
errorThreshold: 600,
},
],
},
},
{
ignores: ['**/*.spec.ts', '**/*.test.ts', '**/__tests__/**', 'dist/', 'node_modules/', '*.d.ts', '*.js'],
}
);