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

eslintimport/no-extraneous-dependencies Issue #2148

Closed
AakashAlagarsamy opened this issue Jul 9, 2021 · 1 comment
Closed

eslintimport/no-extraneous-dependencies Issue #2148

AakashAlagarsamy opened this issue Jul 9, 2021 · 1 comment

Comments

@AakashAlagarsamy
Copy link

AakashAlagarsamy commented Jul 9, 2021

I'm using eslint 7.29.0
Same error is showing

'webpack-merge' should be listed in the project's dependencies, not devDependencies.eslintimport/no-extraneous-dependencies
'webpack' should be listed in the project's dependencies, not devDependencies.eslintimport/no-extraneous-dependencies

My file is below

development.config.js

const { merge } = require('webpack-merge');
const webpack = require('webpack');

package.json

"devDependencies": {
    "eslint-plugin-import": "^2.23.4",
    "webpack": "^5.41.1",
    "webpack-cli": "^4.7.2",
    "webpack-dev-server": "^3.11.2",
    "webpack-merge": "^5.8.0"
  },
  "dependencies": {
    "prop-types": "^15.7.2",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
  }

Originally posted by @AakashAlagarsamy in #1396 (comment)

@ljharb
Copy link
Member

ljharb commented Jul 9, 2021

What is your eslint config? By default everything is assumed to disallow dev deps.

@ljharb ljharb closed this as completed Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants