I have encountered an issue where I duplicated the .eslintrc
and package.json
files for two projects, but only the first project is able to run linting properly. The second project does not show any errors.
- I am using sublime-linter with the eslint module.
- I have ensured that the syntax settings are the same in both projects.
- I have run npm install to install dependencies.
- I have attempted to restart Sublime Text.
- Upon comparing the node_modules folders, I noticed a discrepancy - estravers-fb is installed in the working project.
- Why is this dependency not installed in the other project?
- Is there a different command to properly install dev-dependencies besides npm install?
Here is my package.json:
{
"name": "Read-hapi",
"version": "1.0.0",
"description": "learning the hapi framework",
"repository": "https://github.com/Pushplaybang/learning-hapi.git",
"main": "server.js",
"dependencies": {
"blipp": "^2.3.0",
"boom": "^3.1.2",
"cheerio": "^0.20.0",
"good": "^6.6.0",
"good-console": "^5.3.1",
"handlebars": "^4.0.5",
"hapi": "^13.0.0",
"inert": "^3.2.0",
"joi": "^8.0.3",
"reading-time": "^1.0.2",
"request-promise": "^2.0.1",
"text-stats": "0.0.3",
"valid-url": "^1.0.9",
"vision": "^4.0.1"
},
"devDependencies": {
"babel-eslint": "^5.0.0",
"eslint": "^2.3.0",
"eslint-config-airbnb": "^6.1.0",
"eslint-plugin-react": "^4.2.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Paul van Zyl",
"license": "ISC"
}
And here is my .eslintrc:
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true
},
"rules": {
"no-unused-vars": 0,
"no-undef": 0
}
}
Any assistance on resolving this issue would be greatly appreciated.