diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-18 15:55:14 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-18 15:55:14 +0200 |
commit | 65f0265c746e14464eea82e2c5143c3e090c72e8 (patch) | |
tree | dec7283f47a2cdd9ab1c36c5bbe89aa9667f8734 /.eslintrc.js | |
parent | 6bbae67ac102e6ec3867028920faaa4e3275eb61 (diff) | |
download | plantagenet-65f0265c746e14464eea82e2c5143c3e090c72e8.tar.gz |
Some typescript lint stuff.
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index fc71e34..9e9990a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,12 @@ module.exports = { parser: "@typescript-eslint/parser", - extends: "eslint:recommended", + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + ], + plugins: [ + "@typescript-eslint" + ], env: { browser: true, commonjs: true, @@ -10,7 +16,9 @@ module.exports = { "no-constant-binary-expression": "error", indent: [ "warn", "tab", { SwitchCase: 1 } ], semi: [ "error", "never" ], - "no-unused-vars": [ "error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" } ], "prefer-const": 0, + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ "error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" } ], + "@typescript-eslint/no-explicit-any": "off", }, } |