0.9.1 • Published 5 months ago

@k.sh/eslint-plugin v0.9.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@k.sh/eslint-plugin

npm version License: MIT

An ESLint config with best practices enabled for JavaScript projects

Installation

npm i -D @k.sh/eslint-plugin eslint

Setup

  1. Choose core config (es5 | esnext | typescript):
cat << EOT > .eslintrc.json
{
  "extends": ["plugin:@k.sh/esnext"]
}
EOT
  1. (Optional) Add any augmentations you're using (jest, node, react):
{
  "extends": ["plugin:@k.sh/esnext", "plugin:@k.sh/node", "plugin:@k.sh/jest"]
}
  1. (Optional) Finish off with prettier:
{
  "extends": [
    "plugin:@k.sh/esnext",
    "plugin:@k.sh/node",
    "plugin:@k.sh/jest",
    "plugin:@k.sh/prettier"
  ]
}

References