From 80f6397c714c895a47183fb6488d38ca358cb64b Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 7 Jul 2024 07:59:19 +1200 Subject: [PATCH] chore: change warning rules to error (#1625) --- .eslintrc.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 355f01138..22dfbbdf2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -29,7 +29,7 @@ module.exports = { rules: { '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/ban-ts-comment': 'warn', + '@typescript-eslint/ban-ts-comment': 'error', '@typescript-eslint/ban-types': 'error', '@typescript-eslint/consistent-type-imports': [ 'error', @@ -47,8 +47,12 @@ module.exports = { 'no-negated-condition': 'error', eqeqeq: ['error', 'smart'], strict: 'error', - 'prefer-template': 'warn', - 'object-shorthand': ['warn', 'always', { avoidExplicitReturnArrows: true }], + 'prefer-template': 'error', + 'object-shorthand': [ + 'error', + 'always', + { avoidExplicitReturnArrows: true }, + ], 'prefer-destructuring': [ 'error', { VariableDeclarator: { array: true, object: true } },