Skip to content

Commit

Permalink
fix: Relax TypeScript rules for d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Jan 23, 2022
1 parent c5e4152 commit ebbd53d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ module.exports = {
"@typescript-eslint/consistent-type-definitions": "off",
// In d.ts files it's sometimes necessary to overload existing methods
"@typescript-eslint/method-signature-style": "off",
"@typescript-eslint/naming-convention": "off",
// Unused vars can be common in d.ts files when declaration merging is used
"@typescript-eslint/no-unused-vars": "off",
// Since d.ts files are used to type external modules, we can't control the coding style
Expand Down

0 comments on commit ebbd53d

Please sign in to comment.