Skip to content

Commit 4b37abd

Browse files
authored
prevent test.only (#24235)
I almost checked in a change to disable all tests again. This will prevent that
1 parent d072503 commit 4b37abd

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

.eslintrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"mocha": true
66
},
77
"parser": "@typescript-eslint/parser",
8-
"plugins": ["@typescript-eslint"],
8+
"plugins": [
9+
"@typescript-eslint",
10+
"no-only-tests"
11+
],
912
"extends": [
1013
"airbnb",
1114
"plugin:@typescript-eslint/recommended",
@@ -97,6 +100,7 @@
97100
}
98101
],
99102
"operator-assignment": "off",
100-
"strict": "off"
103+
"strict": "off",
104+
"no-only-tests/no-only-tests": ["error", { "block": ["test", "suite"], "focus": ["only"] }]
101105
}
102106
}

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383
"browser": "./dist/extension.browser.js",
8484
"l10n": "./l10n",
8585
"contributes": {
86-
"problemMatchers":
87-
[
86+
"problemMatchers": [
8887
{
8988
"name": "python",
9089
"owner": "python",
@@ -98,7 +97,6 @@
9897
},
9998
{
10099
"regexp": "^\\s*(.*)\\s*$"
101-
102100
},
103101
{
104102
"regexp": "^\\s*(.*Error.*)$",
@@ -1640,6 +1638,7 @@
16401638
"eslint-config-prettier": "^8.3.0",
16411639
"eslint-plugin-import": "^2.29.1",
16421640
"eslint-plugin-jsx-a11y": "^6.3.1",
1641+
"eslint-plugin-no-only-tests": "^3.3.0",
16431642
"eslint-plugin-react": "^7.20.3",
16441643
"eslint-plugin-react-hooks": "^4.0.0",
16451644
"expose-loader": "^3.1.0",

0 commit comments

Comments
 (0)