-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathjest.js
More file actions
22 lines (21 loc) · 820 Bytes
/
jest.js
File metadata and controls
22 lines (21 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import jestPlugin from 'eslint-plugin-jest';
import importPlugin from "eslint-plugin-import";
export default [
jestPlugin.configs['flat/recommended'],
{
plugins: {
jest: jestPlugin,
'import': importPlugin
},
rules: {
// Allow devDependencies to be imported when in development mode
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'jest/padding-around-after-all-blocks': 'error',
'jest/padding-around-after-each-blocks': 'error',
'jest/padding-around-before-all-blocks': 'error',
'jest/padding-around-before-each-blocks': 'error',
'jest/padding-around-describe-blocks': 'error',
'jest/padding-around-test-blocks': 'error'
}
}
];