mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:23:15 +02:00
27 lines
804 B
JavaScript
27 lines
804 B
JavaScript
|
|
import js from '@eslint/js';
|
||
|
|
import tseslint from 'typescript-eslint';
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
{ ignores: ['dist', 'coverage'] },
|
||
|
|
js.configs.recommended,
|
||
|
|
...tseslint.configs.strictTypeChecked,
|
||
|
|
...tseslint.configs.stylisticTypeChecked,
|
||
|
|
{
|
||
|
|
languageOptions: {
|
||
|
|
parserOptions: {
|
||
|
|
project: './tsconfig.json',
|
||
|
|
tsconfigRootDir: import.meta.dirname,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
|
||
|
|
// NestJS modules/controllers are intentionally empty classes decorated with @Module/@Controller
|
||
|
|
'@typescript-eslint/no-extraneous-class': ['error', { allowWithDecorator: true }],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['*.js', '*.mjs', '*.cjs'],
|
||
|
|
...tseslint.configs.disableTypeChecked,
|
||
|
|
},
|
||
|
|
);
|