Closed ivanbanov closed 2 months ago
I have no access to repository, show me ESLint config you are using.
oh sorry, I made it private for no reason, it's public now
You need to update ESLint to v9, and fix config.
Try something like this:
module.exports = [
{
files: ['*.ts'],
languageOptions: {
parser,
parserOptions: {
project: true,
},
},
plugins: {
'@typescript-eslint': tseslintPlugin,
'poc': {
rules: {
'no-debuger': createPlugin(require('./.putout/no-debugger.js')),
},
},
rules: {
'poc/no-debugger': 'error'
}
}
]
Declare poc
in plugins
section and use it in rules
.
nice! thanks for spotting the issue in the config. it worked, even with v8
:)
Im in the process of migrating a codemod from jscodeshift to putout so I can integrate it with ESLint and properly test it.
Unfortunately Im facing the following error in a minimal setup:
the code for reproducing it can be found here https://github.com/ivanbanov/putout-poc
What am I doing wrong? Is it a bug?