42 lines
822 B
JavaScript
42 lines
822 B
JavaScript
module.exports = {
|
|
'plugins': ['jest'],
|
|
'env': {
|
|
'commonjs': true,
|
|
'es2021': true,
|
|
'node': true,
|
|
'jest/globals': true
|
|
},
|
|
'extends': ['eslint:recommended', 'plugin:jest/recommended'],
|
|
'parserOptions': {
|
|
'ecmaVersion': 12
|
|
},
|
|
'rules': {
|
|
'indent': [
|
|
'error',
|
|
4
|
|
],
|
|
'linebreak-style': [
|
|
'error',
|
|
'unix'
|
|
],
|
|
'quotes': [
|
|
'error',
|
|
'single'
|
|
],
|
|
'semi': [
|
|
'error',
|
|
'always'
|
|
],
|
|
'curly': [
|
|
'error',
|
|
'all'
|
|
],
|
|
'brace-style': [
|
|
'error',
|
|
'1tbs'
|
|
],
|
|
'jest/no-done-callback': 'off',
|
|
'jest/expect-expect': 'off'
|
|
}
|
|
};
|