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:
parent
e22d8e8680
commit
a547ae4b68
1 changed files with 6 additions and 2 deletions
|
@ -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']
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue