Skip to content

Commit

Permalink
chore: strict-mode TS for DOMWorld (#8398)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed May 25, 2022
1 parent f866274 commit 256223a
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 53 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Expand Up @@ -126,7 +126,10 @@ module.exports = {
],
rules: {
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': 2,
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
],
'func-call-spacing': 0,
'@typescript-eslint/func-call-spacing': 2,
semi: 0,
Expand All @@ -140,6 +143,8 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 0,
// We know it's bad and use it very sparingly but it's needed :(
'@typescript-eslint/ban-ts-ignore': 0,
// We allow non-null assertions if the value was asserted using `assert` API.
'@typescript-eslint/no-non-null-assertion': 0,
/**
* This is the default options (as per
* https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/docs/rules/ban-types.md),
Expand Down

0 comments on commit 256223a

Please sign in to comment.