Skip to content

Commit

Permalink
chore: migrate to eslint-config-neon (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite authored May 4, 2023
1 parent db49793 commit 21d1be9
Show file tree
Hide file tree
Showing 319 changed files with 13,283 additions and 11,092 deletions.
15 changes: 11 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"extends": "marine/prettier/node",
"extends": ["neon/common", "neon/node", "neon/typescript", "neon/prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
"project": "./tsconfig.eslint.json"
},
"plugins": ["local"],
"rules": {
"local/explicit-undefined-on-optional-properties": ["error", { "interfaceEndings": ["JSONBody"] }],
"local/explicitly-optional-undefined-properties": ["error", { "interfaceEndings": ["JSONBody"] }],
"local/explicit-undefined-on-optional-properties": ["error", { "interfaceEndings": ["JSONBody"] }]
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/prefer-literal-enum-member": "off",
"@typescript-eslint/sort-type-union-intersection-members": "off",
"import/extensions": "off",
"tsdoc/syntax": "off",
"typescript-sort-keys/interface": "off",
"typescript-sort-keys/string-enum": "off",
"unicorn/prefer-math-trunc": "off"
}
}
4 changes: 2 additions & 2 deletions deno/gateway/v10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export enum GatewayCloseCodes {
/**
* We're not sure what went wrong. Try reconnecting?
*/
UnknownError = 4000,
UnknownError = 4_000,
/**
* You sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!
*
Expand Down Expand Up @@ -132,7 +132,7 @@ export enum GatewayCloseCodes {
*
* See https://discord.com/developers/docs/topics/gateway-events#resume
*/
InvalidSeq = 4007,
InvalidSeq = 4_007,
/**
* Woah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this
*/
Expand Down
Loading

1 comment on commit 21d1be9

@vercel
Copy link

@vercel vercel bot commented on 21d1be9 May 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.