From 1c800f3907cf73ffb7a6501e969be18cba6a1914 Mon Sep 17 00:00:00 2001 From: ogarciarevett Date: Sat, 5 Oct 2024 21:04:13 +0200 Subject: [PATCH] Chore: Adding mocha types to the eslint env --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index d0e8903c..dec0c7a1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,6 +15,7 @@ module.exports = { browser: true, es6: true, node: true, + mocha: true, }, extends: [ 'plugin:import/errors', @@ -39,7 +40,10 @@ module.exports = { 'no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': 'warn', 'unused-imports/no-unused-imports-ts': 'warn', - 'unused-imports/no-unused-vars-ts': ['error', { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' }], + 'unused-imports/no-unused-vars-ts': [ + 'error', + { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' }, + ], '@typescript-eslint/no-use-before-define': ['error'], '@typescript-eslint/no-unsafe-member-access': 0, '@typescript-eslint/no-unsafe-assignment': 0,