Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-financial

richlab8.9kMIT0.1.0

Awesome ESLint rules for financial scenarios.

readme

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.

changelog

0.1.0 (2020-03-14)

Bug Fixes

  • concat string should be allowed. (b056263)

Features

  • no-division rule (16dfb7b)
  • $no-float-calculation: handle scenarios of automatic type conversion (121ae28)

0.0.4 (2020-03-13)

Bug Fixes

0.0.3 (2020-03-13)

Bug Fixes

  • using module.exports at entry file. (791d02f)

0.0.2 (2020-03-13)

Bug Fixes

0.0.1 (2020-03-13)

Features