Skip to content

Commit

Permalink
Enable jest/consistent-test-it rule (as a warning) (facebook#1008)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#1008

X-link: facebook/react-native#37962

Changelog: [Internal]

Reviewed By: robhogan, huntie

Differential Revision: D46838228

fbshipit-source-id: e6516423d1bc56aa6d0246818412cacc089ac642
  • Loading branch information
motiz88 authored and facebook-github-bot committed Jun 22, 2023
1 parent d282a08 commit 7cdcfa9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/eslint/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
},
root: true,
extends: ['eslint-config-fb-strict', 'plugin:prettier/recommended'],
plugins: ['babel', 'ft-flow', 'import', 'lint', 'prettier'],
plugins: ['babel', 'ft-flow', 'import', 'jest', 'lint', 'prettier'],
parser: 'hermes-eslint',
rules: {
'babel/quotes': ['error', 'single', 'avoid-escape'],
Expand Down Expand Up @@ -64,6 +64,10 @@ module.exports = {
'single',
{avoidEscape: true, allowTemplateLiterals: true},
],
'jest/consistent-test-it': [
'warn',
{fn: 'test', withinDescribe: 'test'},
],
quotes: 'off',
},
},
Expand Down

0 comments on commit 7cdcfa9

Please sign in to comment.