-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed as not planned
Labels
archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyneeds infoNot enough information has been provided to triage this issueNot enough information has been provided to triage this issuerepro:neededThis issue should include a reproducible exampleThis issue should include a reproducible example
Description
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:
const typescript_plugin = require('@typescript-eslint/eslint-plugin')
const typescript_parser = require('@typescript-eslint/parser')
module.exports = [
{
plugins: {
typescript_plugin
},
languageOptions: {
parser: typescript_parser
},
ignores: [],
rules: {}
},
// extends ...
typescript_plugin.configs.eslint_recommended
]package.json:
{
"name": "[redacted]",
"version": "0.0.1",
"engines": {
"node": "16.17"
},
"private": true,
"dependencies": {
"@angular/animations": "^12.0.2",
"@angular/cdk": "^12.0.2",
"@angular/common": "^12.0.2",
"@angular/compiler": "^12.0.2",
"@angular/core": "^12.0.2",
"@angular/forms": "^12.0.2",
"@angular/material": "^12.0.2",
"@angular/platform-browser": "^12.0.2",
"@angular/platform-browser-dynamic": "^12.0.2",
"@angular/router": "^12.0.2",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@stripe/stripe-js": "^1.15.0",
"bootstrap": "^4.6.0",
"core-js": "^3.13.1",
"express": "^4.17.1",
"force-ssl-heroku": "^1.0.2",
"google-libphonenumber": "^3.2.21",
"latest-version": "^5.1.0",
"ng-recaptcha": "^8.0.0",
"ng2-pdf-viewer": "6.4.1",
"ngx-stripe": "^12.0.1",
"path": "^0.12.7",
"rxjs": "^6.6.7",
"tslib": "^2.2.0",
"zone.js": "^0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^12.0.2",
"@angular/cli": "^12.0.2",
"@angular/compiler-cli": "^12.0.2",
"@angular/language-service": "^12.0.2",
"@eslint/eslintrc": "^3.0.0",
"@types/jasmine": "^3.7.6",
"@types/jasminewd2": "^2.0.9",
"@types/node": "^12.20.13",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"codelyzer": "^6.0.2",
"eslint": "^8.56.0",
"jasmine-core": "~3.8.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "^6.3.2",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.7.0",
"protractor": "~7.0.0",
"ts-node": "~8.7.0",
"typescript": "^4.2.4"
}
}No code involved, eslint crash at the startup.
eslint is executed with npx eslint .
What did you expect to happen?
That eslint lint the repository without crashing 😅
What actually happened?
Oops! Something went wrong! :(
ESLint: 8.56.0
TypeError: Cannot read properties of undefined (reading 'ignores')
at FlatConfigArray.get ignores [as ignores] ([redacted]/node_modules/@humanwhocodes/config-array/api.js:648:15)
at FlatConfigArray.isDirectoryIgnored ([redacted]/node_modules/@humanwhocodes/config-array/api.js:1012:10)
at FlatConfigArray.getConfig ([redacted]/node_modules/@humanwhocodes/config-array/api.js:806:12)
at FlatConfigArray.isFileIgnored ([redacted]/node_modules/@humanwhocodes/config-array/api.js:962:15)
at [redacted]/node_modules/eslint/lib/eslint/eslint-helpers.js:312:49
at Array.reduce (<anonymous>)
at entryFilter ([redacted]/node_modules/eslint/lib/eslint/eslint-helpers.js:299:28)
at Object.isAppliedFilter ([redacted]/node_modules/@nodelib/fs.walk/out/readers/common.js:12:31)
at AsyncReader._handleEntry ([redacted]/node_modules/@nodelib/fs.walk/out/readers/async.js:86:20)
at [redacted]/node_modules/@nodelib/fs.walk/out/readers/async.js:65:22
Link to Minimal Reproducible Example
https://github.com/FirelightFlagboy/eslint-cannot-read-property-of-undefined-reading-ignores
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyneeds infoNot enough information has been provided to triage this issueNot enough information has been provided to triage this issuerepro:neededThis issue should include a reproducible exampleThis issue should include a reproducible example
Type
Projects
Status
Complete