mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-18 00:57:51 +02:00
test: enable a few jest eslint rules (#6900)
* test: enable a few jest eslint rules * more
This commit is contained in:
parent
1efc6c6091
commit
aa5a2d4c04
155 changed files with 3644 additions and 3478 deletions
21
.eslintrc.js
21
.eslintrc.js
|
@ -205,9 +205,26 @@ module.exports = {
|
|||
'import/order': OFF,
|
||||
'import/prefer-default-export': OFF,
|
||||
|
||||
'jest/prefer-expect-resolves': WARNING,
|
||||
'jest/consistent-test-it': WARNING,
|
||||
'jest/expect-expect': OFF,
|
||||
'jest/valid-title': OFF,
|
||||
'jest/no-large-snapshots': [
|
||||
WARNING,
|
||||
{maxSize: Infinity, inlineMaxSize: 10},
|
||||
],
|
||||
'jest/prefer-expect-resolves': WARNING,
|
||||
'jest/prefer-lowercase-title': [WARNING, {ignore: ['describe']}],
|
||||
'jest/require-top-level-describe': ERROR,
|
||||
'jest/valid-title': [
|
||||
ERROR,
|
||||
{
|
||||
mustNotMatch: {
|
||||
it: [
|
||||
'^should|\\.$',
|
||||
'Titles should not begin with "should" or end with a full-stop',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
'jsx-a11y/click-events-have-key-events': WARNING,
|
||||
'jsx-a11y/no-noninteractive-element-interactions': WARNING,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue