Skip to content
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

ERROR in No ESLint configuration found in ... #86

Closed
Andrey-Bushman opened this issue Feb 23, 2021 · 2 comments
Closed

ERROR in No ESLint configuration found in ... #86

Andrey-Bushman opened this issue Feb 23, 2021 · 2 comments

Comments

@Andrey-Bushman
Copy link

Andrey-Bushman commented Feb 23, 2021

  • Operating System: Windows 10 x64
  • Node Version: v14.15.4
  • NPM Version: 6.14.10
  • webpack Version: 5.23.0
  • eslint-webpack-plugin Version: 2.5.2

Expected Behavior

I try to use eslint-webpack-plugin according to your example. I thought that eslint-webpack-plugin will use optional options that I pass into the ESLintPlugin constructor and therefore .eslintrc file is not neccessary now. I tried to use constructor without options or with an empty object but I get an error.

Actual Behavior

I get the error:

ERROR in No ESLint configuration found in C:\Sources\excel-course\src.

Am I to create the .eslintrc file? Must I to use @babel/eslint-parser with eslint-webpack-plugin? I want to lint my original JS-files instead of linting of JS-files that are the transpilling result by Babel.

Code

I published my webpack.config.js and package.json files on Gist here.

Also I published completely my 'hello world' project with this problem on GitHub here (look at webpack branch).

How Do We Reproduce?

git clone https://github.com/Andrey-Bushman/excel-course.git
cd ./excel-course/
git checkout webpack
npm i
npm start
@ricardogobbosouza
Copy link
Collaborator

Hi @Andrey-Bushman
Yes, you need to create a config file .eslintrc.js, https://eslint.org/docs/user-guide/getting-started#configuration
Yes, you need @babel/eslint-parser

This plugin uses eslint under the hood, if an error occurs while running ./node_modules/.bin/eslint src it means that there is an error in its configuration.

@Andrey-Bushman
Copy link
Author

@ricardogobbosouza Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants