From 130acc0909d73c16f673ed96a15450cd8cd12c13 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 17 Jan 2025 14:21:58 +1300 Subject: [PATCH] chore: set all eslint rules to error (#244) --- .eslintrc.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index e1d64ad..58ac1c2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -46,7 +46,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', ...typescriptBanTypesRules(), '@typescript-eslint/consistent-type-imports': [ 'error', @@ -64,8 +64,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 } },