diff --git a/ghost/collections/.eslintrc.js b/ghost/collections/.eslintrc.js index ecc28524e8..f643d2ce74 100644 --- a/ghost/collections/.eslintrc.js +++ b/ghost/collections/.eslintrc.js @@ -1,7 +1,11 @@ module.exports = { parser: '@typescript-eslint/parser', - plugins: ['ghost'], + plugins: ['ghost', '@typescript-eslint'], extends: [ 'plugin:ghost/node' - ] + ], + rules: { + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': ['error'] + } }; diff --git a/ghost/collections/package.json b/ghost/collections/package.json index 61d0fbe320..5967ac0bf8 100644 --- a/ghost/collections/package.json +++ b/ghost/collections/package.json @@ -32,5 +32,12 @@ "@tryghost/in-memory-repository": "0.0.0", "@tryghost/tpl": "^0.1.25", "bson-objectid": "^2.0.4" + }, + "c8": { + "exclude": [ + "src/CollectionRepository.ts", + "src/**/*.d.ts", + "test/**/*.ts" + ] } }