pgilad/eslint-plugin-react-redux

Fails on Jenkins builds

Opened this issue · 0 comments

Hello,

I'm not sure why this happens, as it works totally fine locally.

I get this output from the build.

> eslint -c .eslintrc.js --ext js,jsx ./src


Oops! Something went wrong! :(

ESLint: 7.0.0

ESLint couldn't find the plugin "@pgilad/eslint-plugin-react-redux".

(The package "@pgilad/eslint-plugin-react-redux" was not found when loaded as a Node module from the directory "/var/jenkins_home/workspace/Buy Frontend - PR Builder@2/aem/react-app".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm install @pgilad/eslint-plugin-react-redux@latest --save-dev

The plugin "@pgilad/eslint-plugin-react-redux" was referenced from the config file in "--config".

this fails:

  plugins: [
    'react-hooks',
    'import',
    'filenames',
    '@pgilad/eslint-plugin-react-redux',
  ],

I tried to be clever and change my config to this

  plugins: [
    'react-hooks',
    'import',
    'filenames',
    '@pgilad/react-redux',
  ],

which still works locally, but still fails in Jenkins. I'm wondering if it's the username prefix?