Skip to content
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
@swashata

Description

@swashata

I understand that eslint-config-wordpress is the only package I need to install for eslinting 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions