Giter Site home page Giter Site logo

The Eslint command is failing with error "Oops! Something went wrong! :( ESLint: 9.0.0 Error: Could not find config file." This is referring from file https://github.com/eslint/eslint/blob/main/lib/eslint/eslint.js about eslint HOT 4 CLOSED

Sarmistha91 avatar Sarmistha91 commented on June 15, 2024 1
The Eslint command is failing with error "Oops! Something went wrong! :( ESLint: 9.0.0 Error: Could not find config file." This is referring from file https://github.com/eslint/eslint/blob/main/lib/eslint/eslint.js

from eslint.

Comments (4)

mdjermanovic avatar mdjermanovic commented on June 15, 2024

There is not enough info to reproduce this, but since you're now using ESLint: 9.0.0, please note that the new config format is eslint.config.js:

https://eslint.org/docs/latest/use/migrate-to-9.0.0#-new-default-config-format-eslintconfigjs

If you're still using the deprecated .eslintrc config format, you can either:

If you are already using the new eslint.config.js config format, please provide more details and a reproducible example.

from eslint.

Sarmistha91 avatar Sarmistha91 commented on June 15, 2024

Thanks @mdjermanovic for the update, yes we are currently using .eslintrc.yml file in our CICD Pipeline. I tried replacing it with a flat file (eslint.config.js), but it is failing with error in flat file for the way we are declaring it, Appreciate if you could help us create one sample flat file based on our .eslintrc.yml file (attached in comment - eslintrc.PNG)
eslintrc
)

from eslint.

nzakas avatar nzakas commented on June 15, 2024

Closing, as this is not a bug.

@Sarmistha91 we have a lot of documentation about how to create config files and migrate config files that were already shared previously. Please use that to update your config file.

from eslint.

eslint-github-bot avatar eslint-github-bot commented on June 15, 2024

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.

from eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.