eslint-plugin-discordjs-v12
v0.4.2
Published
A plugin to help you update from Discord.js v11 to v12.
Downloads
11
Maintainers
Readme
eslint-plugin-discordjs-v12
ESLint rules for Discord.js v12
Install
$ npm install --save-dev eslint eslint-plugin-discordjs-v12
Usage
Configure it in package.json
.
{
"plugins": [
"discordjs-v12"
],
"rules": {
"discordjs-v12/no-event-listern-string": "error",
"discordjs-v12/require-intents": "error",
"discordjs-v12/require-node-12": "error"
}
}
Rules
- no-event-listener-string - Prefer to use Constants.Events from Discord.js.
- require-intents - Require websocket intents upon Client initialization.
- require-node-12 - Require a minimum Node.js version of 12.
See ESLint documentation for more information about extending configuration files.