mirror of
https://github.com/WilliamsNY/linter-configs.git
synced 2024-11-21 23:52:31 -05:00
Configurations for linters used at WNY
eslintrc | ||
LICENSE | ||
readme.md | ||
stylelintrc |
Linter Configs
Linters @ Williams New York
SCSS
Packages
- Linter:
- Modules:
Install
npm install -g stylelint postcss stylelint-config-recommended-scss stylelint-order @stylistic/stylelint-plugin
Config
Repo: stylelintrc
System: ~/.stylelintrc
Install
ln -s "$(readlink -f stylelintrc)" ~/.stylelintrc
Javascript
Packages
- Linter:
- Modules:
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
Config
Repo: eslintrc
System: ~/.eslintrc
Install
ln -s "$(readlink -f eslintrc)" ~/.eslintrc