Package Exports
- eslint-plugin-tmaiadev-jest-rules
- eslint-plugin-tmaiadev-jest-rules/eslint-plugin-tmaiadev-jest-rules.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-tmaiadev-jest-rules) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ESLint Plugin TMaiaDev Jest Rules
This ESLint Plugin will enforce your Jest tests to follow the "Given When Then" and the "it should" patterns.
Setup
- Install the dependency
npm install eslint-plugin-tmaiadev-jest-rules --save-dev- Configure your .eslintrc file by adding the plugin to the plugins array, and the rules you want to the rules object.
{
// ...
plugins: [
// ...
"eslint-plugin-tmaiadev-jest-rules",
],
rules: {
"tmaiadev-jest-rules/enforce-gwt": "error",
"tmaiadev-jest-rules/enforce-it-should": "error",
},
}