From: Jérôme Benoit Date: Tue, 24 Jan 2023 22:31:15 +0000 (+0100) Subject: Refine eslint configuration X-Git-Tag: v2.3.8~40 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3aa14de15a7d73872c345e0bfe961157980d0f27;p=poolifier.git Refine eslint configuration Signed-off-by: Jérôme Benoit --- 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'],