Merge pull request #3690 from DKurilo/test-it-only-rule

add eslint-plugin-no-only-tests plugin
This commit is contained in:
Sidharth Vinod 2022-10-18 09:26:24 +05:30 committed by GitHub
commit 111354dd10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 3 deletions

View File

@ -21,7 +21,7 @@
"plugin:markdown/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "html", "jest", "jsdoc", "json"],
"plugins": ["@typescript-eslint", "no-only-tests", "html", "jest", "jsdoc", "json"],
"rules": {
"no-console": "error",
"no-prototype-builtins": "off",
@ -48,7 +48,13 @@
}
],
"json/*": ["error", "allowComments"],
"no-empty": ["error", { "allowEmptyCatch": true }]
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-only-tests/no-only-tests": "error"
},
"overrides": [
{

View File

@ -167,7 +167,7 @@ describe('Entity Relationship Diagram', () => {
cy.get('svg');
});
it.only('should render entities with generic and array attributes', () => {
it('should render entities with generic and array attributes', () => {
renderGraph(
`
erDiagram

View File

@ -118,6 +118,7 @@
"eslint-plugin-jsdoc": "39.3.6",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-markdown": "3.0.0",
"eslint-plugin-no-only-tests": "^3.0.0",
"express": "4.18.2",
"globby": "13.1.2",
"husky": "8.0.1",

View File

@ -44,6 +44,7 @@ importers:
eslint-plugin-jsdoc: 39.3.6
eslint-plugin-json: 3.1.0
eslint-plugin-markdown: 3.0.0
eslint-plugin-no-only-tests: ^3.0.0
express: 4.18.2
fast-clone: 1.5.13
globby: 13.1.2
@ -125,6 +126,7 @@ importers:
eslint-plugin-jsdoc: 39.3.6_eslint@8.25.0
eslint-plugin-json: 3.1.0
eslint-plugin-markdown: 3.0.0_eslint@8.25.0
eslint-plugin-no-only-tests: 3.0.0
express: 4.18.2
globby: 13.1.2
husky: 8.0.1
@ -5715,6 +5717,11 @@ packages:
- supports-color
dev: true
/eslint-plugin-no-only-tests/3.0.0:
resolution: {integrity: sha512-I0PeXMs1vu21ap45hey4HQCJRqpcoIvGcNTPJe+UhUm8TwjQ6//mCrDqF8q0WS6LgmRDwQ4ovQej0AQsAHb5yg==}
engines: {node: '>=5.0.0'}
dev: true
/eslint-scope/5.1.1:
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
engines: {node: '>=8.0.0'}