We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
When using @ts-check in my eslint config file, it complains about the recommended rules from this plugin not matching the expected typedefs
@ts-check
To Reproduce my config:
// @ts-check import globals from 'globals'; import tseslint from 'typescript-eslint'; import eslintPluginJasmine from 'eslint-plugin-jasmine'; export default tseslint.config( { files: ['**/*.spec.ts'], plugins: { jasmine: eslintPluginJasmine }, languageOptions: { globals: { ...globals.node, ...globals.jasmine, }, }, extends: [ eslintPluginJasmine.configs.recommended ], }, );
Produces this error
Basically what I interpret it to be saying is that the rules should be configured with strings, not numbers
Expected behaviour Recommended rules should be configured with 'off' instead of 0, 'warn' instead of 1, and 'error' instead of 2
'off'
0
'warn'
1
'error'
2
A workaround for me right now is to simply add a @ts-ignore comment:
@ts-ignore
extends: [ //@ts-ignore -- This does not match the expected typedefs, however it DOES work eslintPluginJasmine.configs.recommended, ],
Context
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
To Reproduce
my config:
Produces this error
Basically what I interpret it to be saying is that the rules should be configured with strings, not numbers
Expected behaviour
Recommended rules should be configured with
'off'
instead of0
,'warn'
instead of1
, and'error'
instead of2
A workaround for me right now is to simply add a
@ts-ignore
comment:Context
The text was updated successfully, but these errors were encountered: