32 lines
745 B
JavaScript
32 lines
745 B
JavaScript
import baseConfig from '@repo/eslint-config/base';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
...baseConfig,
|
|
{
|
|
ignores: ['eslint.config.mjs'],
|
|
},
|
|
{
|
|
extends: [tseslint.configs.recommendedTypeCheckedOnly],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.jest,
|
|
},
|
|
ecmaVersion: 5,
|
|
sourceType: 'module',
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-floating-promises': 'warn',
|
|
'@typescript-eslint/no-unsafe-argument': 'warn'
|
|
},
|
|
},
|
|
); |