Hi Mehdi,
If you are running ESLint globally, then you need to install your plugins
globally too. We typically recommend installing ESLint locally to keep your
project self contained.
On Mon, May 21, 2018 at 12:10 PM MEHDI BOUSSARHANE <
[email protected]> wrote:
> I'm working on a node.js express project , I have installed Eslint globaly npm
> install -g eslint, then setup a configuration file using the following
> comand : eslint --init and when I tried to execute my app.js file, I'v
> got this error : cannot find module 'eslint-config-airbnb-base'
>
> I' using Windows 7 64bits
>
> - ESLint Version: 4.19.1
> - Node Version: 8.10.0
> - npm Version: 5.6.0
>
> Here is my package.json file :
>
> {
> "name": "module-package-demo",
> "version": "1.0.0",
> "description": "",
> "main": "app.js",
> "scripts": {
> "test": "echo \"Error: no test specified\" && exit 1"
> },
> "author": "",
> "license": "ISC",
> "dependencies": {
> "express": "^4.16.3",
> "underscore": "^1.9.0"
> },
> "devDependencies": {
> "eslint-config-airbnb-base": "^12.1.0",
> "eslint-plugin-import": "^2.12.0"
> }
> }
>
> Any idea please?
>
> --
> You received this message because you are subscribed to the Google Groups
> "ESLint" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.