Explorar el Código

Add ESLint rule that catches `describe.only`, `it.only`

bubble
Kyle Shockey hace 7 años
padre
commit
fc11f7a556
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. +4
    -2
      .eslintrc
  2. +1
    -0
      package.json

+ 4
- 2
.eslintrc Ver fichero

@@ -16,7 +16,8 @@
"extends": ["eslint:recommended", "plugin:react/recommended"],

"plugins": [
"react"
"react",
"mocha"
],

"rules": {
@@ -32,6 +33,7 @@
"comma-dangle": 0,
"no-console": ["error", { allow: ["warn", "error"] }],
"react/jsx-no-bind": 1,
"react/display-name": 0
"react/display-name": 0,
"mocha/no-exclusive-tests": "error"
}
}

+ 1
- 0
package.json Ver fichero

@@ -105,6 +105,7 @@
"enzyme": "^2.7.1",
"eslint": "^4.1.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-mocha": "^4.11.0",
"eslint-plugin-react": "^7.1.0",
"extract-text-webpack-plugin": "^2.1.2",
"file-loader": "0.11.2",


Cargando…
Cancelar
Guardar