mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
ESLint: Add custom rule 'correct-logger-context'
This rule ensures, that the correct context is given in any logger statements. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
375cb4eae9
commit
8cc9e12bc3
4 changed files with 66 additions and 1 deletions
|
@ -33,7 +33,7 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
],
|
||||
plugins: ['@typescript-eslint', 'jest'],
|
||||
plugins: ['@typescript-eslint', 'jest', 'eslint-plugin-local-rules'],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
|
@ -46,6 +46,7 @@ module.exports = {
|
|||
jest: true,
|
||||
},
|
||||
rules: {
|
||||
'local-rules/correct-logger-context': 'error',
|
||||
'func-style': ['error', 'declaration'],
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue