-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
Current eslint v9 didn't support old config to use recommended rule rxjs/no-unsafe-takeuntil.
This is how to fix it using the fork https://github.com/DaveMBush/eslint-plugin-rxjs :
npm i --save-dev @smarttools/eslint-plugin-rxjs
import rxjs from '@smarttools/eslint-plugin-rxjs';
export default [
...
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname
},
},
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts', '**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
// Override or add rules here
plugins: {
rxjs,
},
rules: {},
},
{
files: ['**/*.ts'],
rules: {
'rxjs/no-unsafe-takeuntil': [
'error',
{
alias: ['untilDestroyed']
}
],
},
Metadata
Metadata
Assignees
Labels
No labels