mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[eslint-config-kibana] limit jest config to jest test files
This commit is contained in:
parent
4923423013
commit
07b8388ff3
1 changed files with 16 additions and 11 deletions
|
@ -1,15 +1,20 @@
|
|||
module.exports = {
|
||||
plugins: [
|
||||
'jest',
|
||||
],
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.test.js'],
|
||||
plugins: [
|
||||
'jest',
|
||||
],
|
||||
|
||||
env: {
|
||||
'jest/globals': true,
|
||||
},
|
||||
env: {
|
||||
'jest/globals': true,
|
||||
},
|
||||
|
||||
rules: {
|
||||
'jest/no-disabled-tests': 'error',
|
||||
'jest/no-focused-tests': 'error',
|
||||
'jest/no-identical-title': 'error',
|
||||
},
|
||||
rules: {
|
||||
'jest/no-disabled-tests': 'error',
|
||||
'jest/no-focused-tests': 'error',
|
||||
'jest/no-identical-title': 'error',
|
||||
},
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue