Linters @ Williams New York
- Linter:
- Modules:
npm install -g stylelint postcss stylelint-config-recommended-scss stylelint-order @stylistic/stylelint-plugin
Repo: stylelintrc
System: ~/.stylelintrc
ln -s "$(readlink -f stylelintrc)" ~/.stylelintrc
- Linter:
- Modules:
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 @babel/preset-env eslint-plugin-vue
Repo: eslintrc
System: ~/.eslintrc
ln -s "$(readlink -f eslintrc)" ~/.eslintrc