Add jest plugin to eslint
This commit is contained in:
parent
6da2f37e48
commit
f928072c12
1 changed files with 17 additions and 1 deletions
16
.eslintrc.js
16
.eslintrc.js
|
@ -16,6 +16,22 @@ module.exports = {
|
|||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
]
|
||||
},
|
||||
{
|
||||
"files": ['**/*.spec.ts'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
'jest'
|
||||
],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:jest/all'
|
||||
],
|
||||
rules:{
|
||||
"jest/lowercase-name": ["error", { "ignore": ["describe"]}]
|
||||
}
|
||||
}
|
||||
],
|
||||
"rules": {
|
||||
|
|
Loading…
Reference in a new issue