Avoid to have focused tests in using eslint-plugin-jasmine

This commit is contained in:
Calixte Denizet 2024-01-20 21:42:37 +01:00
parent 626674553d
commit 99ee308f3d
3 changed files with 25 additions and 11 deletions

17
package-lock.json generated
View File

@ -27,6 +27,7 @@
"eslint-plugin-fetch-options": "^0.0.5",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jasmine": "^4.1.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-mozilla": "^3.3.2",
"eslint-plugin-no-unsanitized": "^4.0.2",
@ -6077,6 +6078,16 @@
"semver": "bin/semver.js"
}
},
"node_modules/eslint-plugin-jasmine": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-jasmine/-/eslint-plugin-jasmine-4.1.3.tgz",
"integrity": "sha512-q8j8KnLH/4uwmPELFZvEyfEcuCuGxXScJaRdqHjOjz064GcfX6aoFbzy5VohZ5QYk2+WvoqMoqDSb9nRLf89GQ==",
"dev": true,
"engines": {
"node": ">=8",
"npm": ">=6"
}
},
"node_modules/eslint-plugin-json": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-json/-/eslint-plugin-json-3.1.0.tgz",
@ -13336,7 +13347,6 @@
},
"node_modules/npm/node_modules/lodash._baseindexof": {
"version": "3.1.0",
"extraneous": true,
"inBundle": true,
"license": "MIT"
},
@ -13352,19 +13362,16 @@
},
"node_modules/npm/node_modules/lodash._bindcallback": {
"version": "3.0.1",
"extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/lodash._cacheindexof": {
"version": "3.0.2",
"extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/lodash._createcache": {
"version": "3.1.2",
"extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@ -13379,7 +13386,6 @@
},
"node_modules/npm/node_modules/lodash._getnative": {
"version": "3.9.1",
"extraneous": true,
"inBundle": true,
"license": "MIT"
},
@ -13397,7 +13403,6 @@
},
"node_modules/npm/node_modules/lodash.restparam": {
"version": "3.6.1",
"extraneous": true,
"inBundle": true,
"license": "MIT"
},

View File

@ -21,6 +21,7 @@
"eslint-plugin-fetch-options": "^0.0.5",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jasmine": "^4.1.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-mozilla": "^3.3.2",
"eslint-plugin-no-unsanitized": "^4.0.2",

View File

@ -1,10 +1,18 @@
{
"extends": [
"../.eslintrc"
],
"plugins": ["jasmine"],
"extends": ["../.eslintrc", "plugin:jasmine/recommended"],
"env": {
"node": true,
"jasmine": true,
"jasmine": true
},
"rules": {
"jasmine/new-line-before-expect": "off",
"jasmine/new-line-between-declarations": "off",
"jasmine/no-focused-tests": "error",
"jasmine/no-pending-tests": "off",
"jasmine/no-spec-dupes": "off",
"jasmine/no-suite-dupes": "off",
"jasmine/prefer-jasmine-matcher": "off",
"jasmine/prefer-toHaveBeenCalledWith": "off"
}
}