xo: Unable to find no-empty-blocks plugin though npm says is loaded

Since updating my deps and re doing npm install I now get errors

$ npm list eslint-plugin-no-empty-blocks
brian@0.1.0 C:\projects\brian
└─┬ xo@0.13.0
  └── eslint-plugin-no-empty-blocks@0.0.2
> brian@0.1.0 lint C:\projects\brian
> xo ./client/src/js/**/*.js

Error: Failed to load plugin no-empty-blocks: Cannot find module 'eslint-plugin-no-empty-blocks'
Referenced from:
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.module.exports.load (C:\projects\brian\node_modules\eslint\lib\config\plugins.js:116:26)
    at Array.forEach (native)
    at Object.module.exports.loadAll (C:\projects\brian\node_modules\eslint\lib\config\plugins.js:138:21)
    at load (C:\projects\brian\node_modules\eslint\lib\config\config-file.js:470:21)
    at C:\projects\brian\node_modules\eslint\lib\config\config-file.js:369:36
    at Array.reduceRight (native)

part of package.json:

"xo": {
    "esnext": true,
    "semicolon": false,
    "space": 2,
    "envs": [
      "browser",
      "node"
    ],
    "plugins": [
      "immutable"
    ],
    "rules": {
      "babel/new-cap": 0,
      "comma-dangle": [
        2,
        "only-multiline"
      ],
      "immutable/no-let": 2,
      "immutable/no-this": 2,
      "immutable/no-mutation": 2,
      "no-var": 2,
      "no-undef": 2,
      "no-param-reassign": 2
    }
  }
}

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 32 (15 by maintainers)

Most upvoted comments

\o/ 😄

On 03.04. 2016, at 22:32, Steve Lee notifications@github.com wrote:

Closed #92 https://github.com/sindresorhus/xo/issues/92.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/sindresorhus/xo/issues/92#event-612855908