0.1.0 • Published 4 years ago

eslint-plugin-financial v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

eslint-plugin-financial

NPM version NPM downloads Node.js CI codecov

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

eslint-plugin-financial © ULIVZ, Released under the MIT License.