Closed
Description
Example of my project structure:
├── package.json
├── src
│ ├── components
│ │ ├── Avatar
│ │ │ ├── Avatar.css
│ │ │ ├── Avatar.js
│ │ │ ├── README.md
│ │ │ └── package.json
│ │ ├── Button
│ │ │ ├── Button.css
│ │ │ ├── Button.js
│ │ │ ├── ButtonSpinner.css
│ │ │ ├── ButtonSpinner.js
│ │ │ ├── README.md
│ │ │ └── package.json
Root package.json
contains all dependencies, nested package.json
looks like this:
{
"name": "Avatar",
"main": "Avatar.js"
}
That's why I got wrong warnings:
src/components/Avatar/Avatar.js
1:1 error 'react' should be listed in the project's dependencies. Run 'npm i -S react' to add it import/no-extraneous-dependencies
2:1 error 'classnames' should be listed in the project's dependencies. Run 'npm i -S classnames' to add it import/no-extraneous-dependencies
Is this fixable?