eslint-plugin-haraka
/
1.0.15
eslint-plugin-haraka 1.0.15
Install from the command line:
Learn more about npm packages
$ npm install @haraka/eslint-plugin-haraka@1.0.15
Install via package.json:
"@haraka/eslint-plugin-haraka": "1.0.15"
About this version
In your Haraka plugin:
-
Add to NPM dependencies:
npm install --save-dev eslint eslint-plugin-haraka
-
Install an eslint config file:
tee .eslintrc.yaml <<EOLINT
plugins: [ haraka ]
extends: [ eslint:recommended, plugin:haraka/recommended ]
EOLINT
- Add within the "scripts" section of
package.json
:
"lint": "npx eslint *.js test/*.js"
"lintfix": "npx eslint --fix *.js test/*.js"
- Add to the "script" section of .travis.yml:
npm run lint
To check your project against lint rules:
npm run lint
Step #4 above does this automatically when CI tests are set up.
If you agree with the lint suggestions, you can run npm run lintfix
and the changes will be made to your files automatically.
If you disagree, you can add custom rules to your .eslintrc file.
Details
- eslint-plugin-haraka
- haraka
- over 2 years ago
- MIT
- 1 dependencies
Assets
- eslint-plugin-haraka-1.0.15-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0