New issue
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
Bug: Cannot read properties of undefined (reading 'ignores') #18094
Comments
Can you check what the value of |
The value of "use strict";
module.exports = {
overrides: [
{
files: ['*.ts', '*.tsx', '*.mts', '*.cts'],
rules: {
'constructor-super': 'off', // ts(2335) & ts(2377)
'getter-return': 'off', // ts(2378)
'no-const-assign': 'off', // ts(2588)
'no-dupe-args': 'off', // ts(2300)
'no-dupe-class-members': 'off', // ts(2393) & ts(2300)
'no-dupe-keys': 'off', // ts(1117)
'no-func-assign': 'off', // ts(2630)
'no-import-assign': 'off', // ts(2632) & ts(2540)
'no-new-symbol': 'off', // ts(7009)
'no-obj-calls': 'off', // ts(2349)
'no-redeclare': 'off', // ts(2451)
'no-setter-return': 'off', // ts(2408)
'no-this-before-super': 'off', // ts(2376) & ts(17009)
'no-undef': 'off', // ts(2304) & ts(2552)
'no-unreachable': 'off', // ts(7027)
'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358)
'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more
'prefer-const': 'error', // ts provides better types with const
'prefer-rest-params': 'error', // ts provides better types with rest args over arguments
'prefer-spread': 'error', // ts transpiles spread to apply, so no need for manual apply
},
},
],
};
//# sourceMappingURL=eslint-recommended.js.map I've extract the value from |
@FirelightFlagboy As per typescript-eslint/typescript-eslint#7935 (comment), you can't use If that still doesn't work for you, can you open an issue in typescript-eslint repo instead? |
It looks like there wasn't enough information for us to know how to help you, so we're closing the issue. Thanks for your understanding. |
I came across this while testing some I'm happy to open an issue and even attempt a PR if people think that would be a good idea. |
@G-Rath that sounds like a good idea to me. Can you open an issue? |
Environment
Node version: v16.20.2
npm version: v8.19.4
Local ESLint version: v8.56.0 (Currently used)
Global ESLint version: Not found
Operating System: linux 6.7.3-arch1-2
What parser are you using?
@typescript-eslint/parser
What did you do?
Configuration
eslint.config.js
:package.json
:No code involved,
eslint
crash at the startup.eslint
is executed withnpx eslint .
What did you expect to happen?
That
eslint
lint the repository without crashing 😅What actually happened?
Link to Minimal Reproducible Example
https://github.com/FirelightFlagboy/eslint-cannot-read-property-of-undefined-reading-ignores
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: