donthedeveloper / site-builder

GNU General Public License v3.0
6 stars 10 forks source link

Fix ESLint errors in Master and adjust ESLINT rules. #102

Open JPM1118 opened 5 years ago

JPM1118 commented 5 years ago
benjaminsinaiko commented 5 years ago

Been getting the following ESLint x Jest error when trying to commit.

ESLint: 5.14.0.
ESLint couldn't find the plugin "eslint-plugin-jest". This can happen for a couple different reasons:

1. If ESLint is installed globally, then make sure eslint-plugin-jest is also installed globally. A globally-installed ESLint cannot find a locally-installed plugin.

2. If ESLint is installed locally, then it's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm i eslint-plugin-jest@latest --save-dev

Path to ESLint package: /Users/benjaminsinaiko/projects/site-builder/node_modules/eslint

If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.

Have you seen? If so looks like adding npm i eslint-plugin-jest@latest --save-dev should fix it.