Add a rule to disallow describe.only() and it.only() in tests

This commit is contained in:
Tim Schaub
2019-09-26 18:22:24 +02:00
parent b56c8b6630
commit 8253c646b3
2 changed files with 12 additions and 5 deletions
+5 -4
View File
@@ -858,12 +858,13 @@
} }
}, },
"@openlayers/eslint-plugin": { "@openlayers/eslint-plugin": {
"version": "4.0.0-beta.2", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/@openlayers/eslint-plugin/-/eslint-plugin-4.0.0-beta.2.tgz", "resolved": "https://registry.npmjs.org/@openlayers/eslint-plugin/-/eslint-plugin-4.0.0.tgz",
"integrity": "sha512-LgzFAdOXRxljCiBN8BQXt7SqVpb35vraXmVZJrLFzguiwQ0Shz5sgIwyn/n9rRUIZUAhlIc8ztelH22oLVkkeA==", "integrity": "sha512-sht71mhj5XRrmeKJYGS4XeLgzV2UsT4rETbjzD/LEPEgKkmgjRdzj1F/qab1Pkfc1qHMFhgw556YmP9yo32H+Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"@openlayers/doctrine": "^2.2.0" "@openlayers/doctrine": "^2.2.0",
"minimatch": "^3.0.4"
} }
}, },
"@openlayers/pepjs": { "@openlayers/pepjs": {
+7 -1
View File
@@ -44,7 +44,7 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.4.0", "@babel/core": "^7.4.0",
"@babel/preset-env": "^7.4.4", "@babel/preset-env": "^7.4.4",
"@openlayers/eslint-plugin": "^4.0.0-beta.2", "@openlayers/eslint-plugin": "^4.0.0",
"@types/arcgis-rest-api": "^10.4.4", "@types/arcgis-rest-api": "^10.4.4",
"@types/geojson": "^7946.0.7", "@types/geojson": "^7946.0.7",
"@types/pbf": "^3.0.1", "@types/pbf": "^3.0.1",
@@ -116,6 +116,12 @@
{ {
"requireReturn": false "requireReturn": false
} }
],
"@openlayers/no-exclusive-tests": [
"error",
{
"include": "test/**/*.test.js"
}
] ]
} }
}, },