[eslint-config-kibana] limit jest config to jest test files

This commit is contained in:
spalger 2017-11-08 15:45:33 -07:00
parent 4923423013
commit 07b8388ff3

View file

@ -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',
},
}
]
};