Update the eslint installation instructions to account for 9.x

This commit is contained in:
Kevin MacMartin 2024-04-11 21:34:54 -04:00
parent 0f0639f8d6
commit 4e66c83d70
1 changed files with 14 additions and 0 deletions

View File

@ -44,6 +44,20 @@ ln -s "$(readlink -f stylelintrc)" ~/.stylelintrc
#### Install
Add this to your `~/.bashrc`:
```
export npm_config_prefix="$HOME/.node"
export NODE_PATH="$HOME/.node/lib/node_modules"
export ESLINT_USE_FLAT_CONFIG=false
function eslint {
npx eslint --config ~/.eslintrc --resolve-plugins-relative-to ~/.node/lib "$@" 2>/dev/null
}
```
Then install with:
```
npm install -g eslint @babel/eslint-parser eslint-plugin-vue eslint-plugin-json
```