Skip to content

Commit

Permalink
Merge pull request #17548 from calixteman/eslint_jasmine
Browse files Browse the repository at this point in the history
Avoid to have focused tests in using eslint-plugin-jasmine
  • Loading branch information
calixteman authored Jan 21, 2024
2 parents 6e46304 + 99ee308 commit 10eef37
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
17 changes: 11 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 13 additions & 5 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 10eef37

Please sign in to comment.