Use jest eslint plugin to disallow disabled tests

Reviewed By: cpojer

Differential Revision: D6671502

fbshipit-source-id: 8f1757e5cc2d1a1d8a339aea63dbff7690ae1aff
This commit is contained in:
Eli White 2018-01-08 13:57:54 -08:00 committed by Facebook Github Bot
parent 79902f99b8
commit 9a36872f0c
2 changed files with 9 additions and 2 deletions

View File

@ -15,7 +15,8 @@
"plugins": [
"flowtype",
"prettier",
"react"
"react",
"jest"
],
// Map from global var to bool specifying if it can be redefined
@ -245,6 +246,11 @@
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 0
"react/wrap-multilines": 0,
// Jest Plugin
// The following rules are made available via `eslint-plugin-jest`.
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 1,
}
}

View File

@ -206,6 +206,7 @@
"eslint-config-fbjs": "^1.1.1",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-jest": "^21.5.0",
"eslint-plugin-prettier": "2.1.1",
"eslint-plugin-react": "^7.2.1",
"flow-bin": "^0.63.0",