eslint-plugin-jest-lazy
v1.1.11
Published
As we can see at https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-alias-methods.md, original name is longer for most methods.
Downloads
23
Readme
Why
As we can see at https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-alias-methods.md, original name is longer for most methods.
Since shorter name improve readability (if possible to understand meaning), this rule will help us to use shorter name.
module.exports = {
plugins: ['jest', 'jest-lazy'],
extends: ['plugin:jest/recommended'],
rules: {
/**
* https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-alias-methods.md
*/
'jest/no-alias-methods': 0,
'jest-lazy/prefer-short-names': 2,
},
}
Acknowledgement
The most part of the code of this plugin is copied from eslint-plugin-jest.