eslint-plugin-no-bigint-usage

1.0.2 • Public • Published

eslint-plugin-no-bigint-usage

Simple eslint plugin to disallow the use of BigInt literals.

Installation

yarn add --dev eslint eslint-plugin-no-bigint-usage

Note: If you installed ESLint globally then you must also install eslint-plugin-no-bigint-usage globally.

Usage

Add no-bigint-usage to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["no-bigint-usage"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "no-bigint-usage/no-bigint-literals": "error"
  }
}

Reasons to use this plugin

Older JS engines might display this error if you try to use BigInt literals:

No identifiers allowed directly after numeric literal

This plugin makes sure you don't have BigInt literals in your codebase.

Package Sidebar

Install

npm i eslint-plugin-no-bigint-usage

Weekly Downloads

9

Version

1.0.2

License

none

Unpacked Size

2.47 kB

Total Files

4

Last publish

Collaborators

  • mstrokin