Spiff's custom ESLint rules.
$ yarn add --dev eslint SpiffInc/eslint-plugin-spiff#latest
$ npm install --save-dev eslint SpiffInc/eslint-plugin-spiff#latest
- Node.js v12.12.0 or newer versions.
- ESLint v5.16.0 or newer versions.
Write your config file such as .eslintrc.yml
.
plugins:
- spiff
rules:
spiff/import-align: error
See also Configuring ESLint.
spiff/recommended
... enables the recommended rules.
Rule ID | Description | |
---|---|---|
spiff/import-align | Require from keywords to be aligned. |
⭐️✒️ |
spiff/jsx-attribute-align | Align the attributes of multi-line JSX elements. | ⭐️✒️ |
This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.
Welcome your contribution!
See also ESLint Contribution Guide.
npm test
runs tests and measures coverage.npm version <TYPE>
updates the package version. And it updateslib/configs/recommended.js
,lib/index.js
, andREADME.md
's rule table. See also npm version CLI command.npm run add-rule <RULE_ID>
creates three files to add a new rule.