23 lines
735 B
JavaScript
23 lines
735 B
JavaScript
|
|
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 }],
|
||
|
|
'semi': 'off',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
ignores: ['**/*.spec.ts', '**/*.test.ts', '**/__tests__/**', 'dist/', 'node_modules/', '*.d.ts', '*.js'],
|
||
|
|
}
|
||
|
|
);
|