Configurations for linters used at WNY
Find a file
2024-04-25 17:08:47 -04:00
eslintrc Add the vue3-recommended configuration to eslint 2024-03-07 21:09:27 -05:00
LICENSE Initial commit 2016-05-05 18:44:56 -04:00
readme.md Update the eslint installation instructions to account for 9.x 2024-04-11 21:34:54 -04:00
stylelintrc Make block-no-empty a warning 2024-04-25 17:08:47 -04:00

Linter Configs

Linters @ Williams New York

SCSS

Packages

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

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