Add jest plugin to eslint
This commit is contained in:
parent
6da2f37e48
commit
f928072c12
1 changed files with 17 additions and 1 deletions
18
.eslintrc.js
18
.eslintrc.js
|
@ -16,7 +16,23 @@ 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": {
|
||||
"linebreak-style": [
|
||||
|
|
Loading…
Reference in a new issue