mirror of
https://github.com/WilliamsNY/linter-configs.git
synced 2024-11-25 09:11:26 -05:00
Update the eslint installation instructions to account for 9.x
This commit is contained in:
parent
0f0639f8d6
commit
4e66c83d70
1 changed files with 14 additions and 0 deletions
14
readme.md
14
readme.md
|
@ -44,6 +44,20 @@ ln -s "$(readlink -f stylelintrc)" ~/.stylelintrc
|
||||||
|
|
||||||
#### Install
|
#### 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
|
npm install -g eslint @babel/eslint-parser eslint-plugin-vue eslint-plugin-json
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue