@vonage/eslint-config
v1.3.1
Published
ESLint rules for Vonage
Downloads
97
Maintainers
Keywords
Readme
Vonage Eslint Configuration
This is the Vonage JWT SDK for Node.js. This package helps create JWT tokens to use with Vonage APIs.
For full API documentation refer to developer.vonage.com.
Installation
With NPM
npm i -D @vonage/eslint-config
With Yarn
yarn add @vonage/eslint-config --dev
Usage
There are number of configurations that you can use based on the application.
Each configuration extends the base rules.
// eslint.config.js
import vonage from '@vonage/eslint-config';
export default [
// Include all base rules for all JS projects
...vonage.configs.base,
// Include all base rules for all TypeScript projects
...vonage.configs.typescript,
// Include all base rules for all Jest projects
...vonage.configs.jest,
// Include all base rules for all Node projects
...vonage.configs.node,
];
Note currently this is only for Node.js projects. Web projects are expected to be added in the future.