@moxy/eslint-config-jest
Version:
MOXY's ESLint configuration enhancer for projects that use Jest for testing
23 lines (20 loc) • 673 B
JavaScript
// Jest: https://github.com/facebook/jest/tree/master/packages/eslint-plugin-jest
;
module.exports = {
rules: {
// Disallow disabled Tests
'jest/no-disabled-tests': 'warn',
// No focused tests
'jest/no-focused-tests': 'error',
// No identical title
'jest/no-identical-title': 'error',
// Prefer toHaveLength() over toBe()
'jest/prefer-to-have-length': 'error',
// Ensure expect is called correctly
'jest/valid-expect': 'error',
// Enforce lowercase test names
'jest/lowercase-name': ['error', {
ignoreTopLevelDescribe: true,
}],
},
};