Skip to content

Commit

Permalink
Fixed TypeScript related no-unused-vars linting errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
naz committed Jul 3, 2023
1 parent e22d8e8 commit a547ae4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ghost/model-to-domain-event-interceptor/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -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']
}
};

0 comments on commit a547ae4

Please sign in to comment.