JSPM

eslint-plugin-financial

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 975
  • Score
    100M100P100Q102427F
  • License MIT

Awesome ESLint rules for financial scenarios.

Package Exports

  • eslint-plugin-financial

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-financial) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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-floating-point-calculation": "error"
    }
  }
}

Rules

no-floating-point-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.