This repository was archived by the owner on Jun 20, 2019. It is now read-only.
This repository was archived by the owner on Jun 20, 2019. It is now read-only.
Update dependencies for install #38
Closed
Description
I understand that eslint-config-wordpress
is the only package I need to install for eslint
ing with WordPress standard and not the eslint-plugin-wordpress
as the first should have the second as a dependency.
But I think, because the dependency is defined in devDependencies
and not within dependencies
the eslint-plugin-wordpress
never gets installed.
I added eslint-config-wordpress
like this (because the one in package repo is outdated.
{
"name": "wesbos-js-es6",
"version": "1.0.0",
"main": "index.js",
"repository": "git@wpquark.io:swashata/wesbos-js-es6.git",
"author": "Swashata Ghosh <swashata@wpquark.com>",
"license": "MIT",
"private": true,
"devDependencies": {
"eslint": "^4.18.2",
"eslint-config-wordpress": "git://github.com/WordPress-Coding-Standards/eslint-config-wordpress.git#936392374db7bb8403efb99bb8d454519b166947",
"eslint-plugin-html": "^4.0.2",
"eslint-plugin-react": "^7.7.0"
}
}
yarn install --force
But this always complains
ESLint: ENOENT: no such file or directory, open '/Volumes/Development/vagrant/www/es6/public_html/wesbos-js-es6/node_modules/eslint-plugin-wordpress/index.js'. Please see the 'ESLint' output channel for details.
So I update the package.json
and link the dependency manually by
{
"name": "wesbos-js-es6",
"version": "1.0.0",
"main": "index.js",
"repository": "git@wpquark.io:swashata/wesbos-js-es6.git",
"author": "Swashata Ghosh <swashata@wpquark.com>",
"license": "MIT",
"private": true,
"devDependencies": {
"eslint": "^4.18.2",
"eslint-config-wordpress": "git://github.com/WordPress-Coding-Standards/eslint-config-wordpress.git#936392374db7bb8403efb99bb8d454519b166947",
"eslint-plugin-html": "^4.0.2",
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-wordpress": "git://github.com/WordPress-Coding-Standards/eslint-plugin-wordpress.git#a5fdd5177c747562ddc3b03e069fcbf131632490"
}
}
and now this works as expected.
Is it the intended behavior or is there something wrong?
Metadata
Metadata
Assignees
Labels
No labels