0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Fixed TypeScript related no-unused-vars linting errors

no issue

- Function types in TypeScript can have what looks like an unused variable for the eslint. It's part of the TypeScript language and should be fully supported out of the box.
This commit is contained in:
Naz 2023-07-03 17:12:40 +08:00 committed by naz
parent e22d8e8680
commit a547ae4b68

View file

@ -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']
}
};