mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Prevent focused tests by adding jest eslint rule (#45088)
* Prevent focused tests by adding jest eslint rule * Remove redundant no-only-tests eslint plugin * Update lock file
This commit is contained in:
parent
3da0434e64
commit
cd05ee0054
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@grafana/eslint-config"],
|
"extends": ["@grafana/eslint-config"],
|
||||||
"root": true,
|
"root": true,
|
||||||
"plugins": ["no-only-tests", "@emotion", "lodash"],
|
"plugins": ["@emotion", "lodash", "jest"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-only-tests/no-only-tests": "error",
|
|
||||||
"react/prop-types": "off",
|
"react/prop-types": "off",
|
||||||
"@emotion/jsx-import": "error",
|
"@emotion/jsx-import": "error",
|
||||||
"lodash/import-scope": [2, "member"]
|
"lodash/import-scope": [2, "member"],
|
||||||
|
"jest/no-focused-tests": "error"
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
@ -171,9 +171,9 @@
|
|||||||
"enzyme-to-json": "3.6.2",
|
"enzyme-to-json": "3.6.2",
|
||||||
"eslint": "8.8.0",
|
"eslint": "8.8.0",
|
||||||
"eslint-config-prettier": "8.3.0",
|
"eslint-config-prettier": "8.3.0",
|
||||||
|
"eslint-plugin-jest": "^26.1.0",
|
||||||
"eslint-plugin-jsdoc": "37.8.0",
|
"eslint-plugin-jsdoc": "37.8.0",
|
||||||
"eslint-plugin-lodash": "^7.2.0",
|
"eslint-plugin-lodash": "^7.2.0",
|
||||||
"eslint-plugin-no-only-tests": "2.6.0",
|
|
||||||
"eslint-plugin-prettier": "4.0.0",
|
"eslint-plugin-prettier": "4.0.0",
|
||||||
"eslint-plugin-react": "7.28.0",
|
"eslint-plugin-react": "7.28.0",
|
||||||
"eslint-plugin-react-hooks": "4.3.0",
|
"eslint-plugin-react-hooks": "4.3.0",
|
||||||
|
28
yarn.lock
28
yarn.lock
@ -11337,7 +11337,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@typescript-eslint/utils@npm:5.11.0":
|
"@typescript-eslint/utils@npm:5.11.0, @typescript-eslint/utils@npm:^5.10.0":
|
||||||
version: 5.11.0
|
version: 5.11.0
|
||||||
resolution: "@typescript-eslint/utils@npm:5.11.0"
|
resolution: "@typescript-eslint/utils@npm:5.11.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -18160,6 +18160,23 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"eslint-plugin-jest@npm:^26.1.0":
|
||||||
|
version: 26.1.0
|
||||||
|
resolution: "eslint-plugin-jest@npm:26.1.0"
|
||||||
|
dependencies:
|
||||||
|
"@typescript-eslint/utils": ^5.10.0
|
||||||
|
peerDependencies:
|
||||||
|
"@typescript-eslint/eslint-plugin": ^5.0.0
|
||||||
|
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
"@typescript-eslint/eslint-plugin":
|
||||||
|
optional: true
|
||||||
|
jest:
|
||||||
|
optional: true
|
||||||
|
checksum: 5d796092640202dd519c44c4270a335e7b5e7cd74f36b41754c2a9ed007a0110f4cc9b4b721dafe6724b3f93a3c9d27f9a0267c7e2a86e0f71a4a9f920897adc
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"eslint-plugin-jsdoc@npm:37.7.0":
|
"eslint-plugin-jsdoc@npm:37.7.0":
|
||||||
version: 37.7.0
|
version: 37.7.0
|
||||||
resolution: "eslint-plugin-jsdoc@npm:37.7.0"
|
resolution: "eslint-plugin-jsdoc@npm:37.7.0"
|
||||||
@ -18207,13 +18224,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"eslint-plugin-no-only-tests@npm:2.6.0":
|
|
||||||
version: 2.6.0
|
|
||||||
resolution: "eslint-plugin-no-only-tests@npm:2.6.0"
|
|
||||||
checksum: 4e3c9cc7e09c13e855fd7af4a8969128f766dcf32a0680715ebcaa903c7fe44db8e45e994c8b908443a6019cbd9ea1b51f413bf968a0c58214aded930a863df9
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"eslint-plugin-prettier@npm:4.0.0":
|
"eslint-plugin-prettier@npm:4.0.0":
|
||||||
version: 4.0.0
|
version: 4.0.0
|
||||||
resolution: "eslint-plugin-prettier@npm:4.0.0"
|
resolution: "eslint-plugin-prettier@npm:4.0.0"
|
||||||
@ -20448,9 +20458,9 @@ __metadata:
|
|||||||
enzyme-to-json: 3.6.2
|
enzyme-to-json: 3.6.2
|
||||||
eslint: 8.8.0
|
eslint: 8.8.0
|
||||||
eslint-config-prettier: 8.3.0
|
eslint-config-prettier: 8.3.0
|
||||||
|
eslint-plugin-jest: ^26.1.0
|
||||||
eslint-plugin-jsdoc: 37.8.0
|
eslint-plugin-jsdoc: 37.8.0
|
||||||
eslint-plugin-lodash: ^7.2.0
|
eslint-plugin-lodash: ^7.2.0
|
||||||
eslint-plugin-no-only-tests: 2.6.0
|
|
||||||
eslint-plugin-prettier: 4.0.0
|
eslint-plugin-prettier: 4.0.0
|
||||||
eslint-plugin-react: 7.28.0
|
eslint-plugin-react: 7.28.0
|
||||||
eslint-plugin-react-hooks: 4.3.0
|
eslint-plugin-react-hooks: 4.3.0
|
||||||
|
Loading…
Reference in New Issue
Block a user