From 3aa14de15a7d73872c345e0bfe961157980d0f27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 24 Jan 2023 23:31:15 +0100 Subject: [PATCH] Refine eslint configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index e14d78ad..bdf03e9c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -81,20 +81,14 @@ module.exports = defineConfig({ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', - 'standard-with-typescript', - 'plugin:import/typescript' + 'plugin:import/typescript', + 'standard-with-typescript' ], rules: { - // We have some intentionally empty functions - '@typescript-eslint/no-empty-function': 'off', - '@typescript-eslint/no-inferrable-types': [ 'error', { ignoreProperties: true } ], - - 'no-useless-constructor': 'off', - 'tsdoc/syntax': 'error' } }, @@ -110,7 +104,7 @@ module.exports = defineConfig({ { files: ['**/*.js'], plugins: ['jsdoc'], - extends: ['plugin:n/recommended', 'standard', 'plugin:jsdoc/recommended'] + extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard'] }, { files: ['tests/**/*.js'], -- 2.34.1