eslint-plugin-financial
v0.1.0
Published
Awesome ESLint rules for financial scenarios.
Downloads
9,046
Readme
eslint-plugin-financial
Install
npm install eslint-plugin-financial --save-dev
Usage
Configure it in package.json
.
{
"name": "my-world",
"eslintConfig": {
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"financial"
],
"rules": {
"financial/no-float-calculation": "error",
"financial/no-division": "error"
}
}
}
Rules
no-float-calculation - Disallow floating point calculation.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
eslint-plugin-financial © ULIVZ, Released under the MIT License.