1.0.0 • Published 6 years ago
@redwerks/eslint-config-jest v1.0.0
@redwerks/eslint-config-jest
Jest extensions for @redwerks/eslint-config.
Usage
.eslintrc.js
If your project uses __tests__ folders for tests.
module.exports = {
root: true,
env: {
// Customize with the environments your project is run in
// browser: true,
// node: true,
},
extends: [
'@redwerks/eslint-config',
'@redwerks/eslint-config-jest/tests-folder',
],
};If your project uses *.spec.js files for tests.
module.exports = {
root: true,
env: {
// Customize with the environments your project is run in
// browser: true,
// node: true,
},
extends: ['@redwerks/eslint-config', '@redwerks/eslint-config-jest/spec'],
};