eslint-plugin-ignore-native-decl
Preprocess JavaScript files to ignore forward declarations that use the native function
notation for V8 extensions.
You can find more details on V8 extensions in this wiki article.
Installation
You'll first need to install ESLint:
npm install eslint --save-dev
Next, install eslint-plugin-ignore-native-decl
:
npm install eslint-plugin-ignore-native-decl --save-dev
You can also use Yarn:
yarn add eslint --dev
yarn add eslint-plugin-ignore-native-decl --dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-ignore-native-decl
globally.
Usage
Add ignore-native-decl
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["ignore-native-decl"]
}