Refine eslint configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Jan 2023 22:31:15 +0000 (23:31 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Jan 2023 22:31:15 +0000 (23:31 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc.js

index e14d78ad1df89d1d0d0c3c0ac811e6a784e8c3cf..bdf03e9c964623a1e09cf94426d11fa31575841f 100644 (file)
@@ -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'],