From 4e788034dfe1fc21702fd2530f31a2027b2b94b6 Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Thu, 20 Sep 2018 12:30:39 -0700 Subject: [PATCH] [eslint] add no-only-tests (#5945) --- superset/assets/.eslintrc | 6 +++++- superset/assets/package.json | 1 + superset/assets/yarn.lock | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/superset/assets/.eslintrc b/superset/assets/.eslintrc index c85c957c79..7c078cd382 100644 --- a/superset/assets/.eslintrc +++ b/superset/assets/.eslintrc @@ -41,5 +41,9 @@ "indent": 0, "no-multi-spaces": 0, "padded-blocks": 0, - } + "no-only-tests/no-only-tests": 2 + }, + "plugins": [ + "no-only-tests" + ] } diff --git a/superset/assets/package.json b/superset/assets/package.json index 6f2437c9de..cabc27b361 100644 --- a/superset/assets/package.json +++ b/superset/assets/package.json @@ -154,6 +154,7 @@ "eslint-plugin-cypress": "^2.0.1", "eslint-plugin-import": "^2.2.0", "eslint-plugin-jsx-a11y": "^5.1.1", + "eslint-plugin-no-only-tests": "^2.0.1", "eslint-plugin-prettier": "^2.6.0", "eslint-plugin-react": "^7.0.1", "exports-loader": "^0.7.0", diff --git a/superset/assets/yarn.lock b/superset/assets/yarn.lock index 0c537bd8ba..e6825d8a51 100644 --- a/superset/assets/yarn.lock +++ b/superset/assets/yarn.lock @@ -4562,6 +4562,10 @@ eslint-plugin-jsx-a11y@^5.1.1: emoji-regex "^6.1.0" jsx-ast-utils "^1.4.0" +eslint-plugin-no-only-tests@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.0.1.tgz#c7bfa82a46be791f9625d720e990632b5dec3c7d" + eslint-plugin-prettier@^2.6.0: version "2.6.2" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.2.tgz#71998c60aedfa2141f7bfcbf9d1c459bf98b4fad"