Skip to content

grailed-code/eslint-plugin-grailed

Repository files navigation

eslint-plugin-grailed

Custom lint rules for grailed

Rules

Rule Description Recommended Fixable
jsx-no-ampersands Enforces ternary returns for jsx ampersands returns ✔️ ✖️

How To Test Locally

  1. Installation
npm install --save -D ~/path/to/parent/eslint-plugin-grailed

or add the following to your package.json and run npm install

"devDependencies": {
    "eslint-plugin-grailed": "file:~/path/to/parent/eslint-plugin-grailed"
}
  1. Modify .eslintrc in your project directory to include one of our rules
{
  "plugins": [
    "grailed"
  ],
  "rules": {
    "grailed/jsx-no-ampersands": "warn"
  }
}

Unit Testing Lint rules

All tests live in tests/lib/rules. Run this command to test all lint rules: npm test

Releases

No releases published

Packages

No packages published