question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

V5 cannot find eslintrc

See original GitHub issue

Tell us about your environment

  • ESLint Version: 5.0.0-alpha.2
  • Node Version: 10.1.0
  • npm Version: 6.0.0

What parser (default, Babel-ESLint, etc.) are you using? babel-eslint Please show your full configuration:

Configuration
{
  "parserOptions": {
    "ecmaVersion": 8,
    "sourceType": "module",
    "ecmaFeatures": {
      "globalReturn": true, // allow return statements in the global scope
      "impliedStrict": true,  //  enable global strict mode (if ecmaVersion is 5 or greater)
      "jsx": true,  //  enable JSX
      "experimentalObjectRestSpread": true, //  enable support for the experimental object rest/spread properties
      "allowImportExportEverywhere": true
    }
  },
  "parser": "babel-eslint",
  "env": {
    "browser": true,
    "node": true,
    "jest": true,
    "commonjs": true,
    "shared-node-browser": true,
    "es6": true,
    "worker": false,
    "amd": true
  },
  "rules": {
    "semi": [ 2, "always" ],
    "no-underscore-dangle": "off",
    "no-useless-escape": "off",
    "max-len": ["error", { "code": 150 }]
  },
  "extends": "airbnb-base"
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

./node_modules/.bin/eslint --quiet ./

What did you expect to happen? Run the lint check What actually happened? Please include the actual, raw output from ESLint. It look like didn’t find the my eslintrc. I just upgrade to v5 and got this error. It work fine at v4. My .eslintrc is at top of my project folder

Oops! Something went wrong! :(

ESLint: 5.0.0-alpha.2.
No files matching the pattern "./config" were found.
Please check for typing mistakes in the pattern.

error Command failed with exit code 2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
not-an-aardvarkcommented, May 11, 2018

It’s caused by this change.

0reactions
Rukeithcommented, May 11, 2018

That makes sense. Thank you for your explanation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint won't update past v4.5.0, "Error: Cannot find module ...
eslint v5.9.0 is now installed locally in my project root and I can see eslint-config-google in the node modules. eslint 5.9.0 is installed ......
Read more >
WEB-53184 - YouTrack
eslintrc.json': Cannot find module '@typescript-eslint/eslint-plugin' ... Gets the attached ESLint Error line top of the Editor and the ESLint doesn't work.
Read more >
eslint/eslint - Gitter
I'm running eslint via: "./node_modules/.bin/eslint" My .eslintrc airbnb section looks like this: "extends": "airbnb", "globals": { "Atomics": "readonly",
Read more >
ESLint - npm
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. ... Why can't ESLint find my plugins?
Read more >
Configuration Files - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found