Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit da02ca8

Browse files
committed
chore(lint): Add eslint plugin to avoid only in tests
1 parent 5b8bbc7 commit da02ca8

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"parserOptions": {
77
"ecmaVersion": "2018"
88
},
9-
"plugins": ["prettier"],
9+
"plugins": ["prettier", "no-only-tests"],
1010
"rules": {
1111
"prettier/prettier": [
1212
"error",
@@ -16,7 +16,8 @@
1616
}
1717
],
1818
"no-undef": "error",
19-
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }]
19+
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
20+
"no-only-tests/no-only-tests": [2]
2021
},
2122
"extends": ["prettier"],
2223
"root": true

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
## [unreleased]
1212
### Added
1313
- feat(#78): Add alerts router
14+
- chore(lint): Add eslint plugin to avoid only in tests
1415
### Changed
1516
- chore(deps): Update dependencies
1617
- test(e2e): Move utils to a support folder

package-lock.json

Lines changed: 6 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"devDependencies": {
4242
"@mocks-server/core": "1.5.3",
4343
"eslint": "7.12.1",
44+
"eslint-plugin-no-only-tests": "2.4.0",
4445
"eslint-config-prettier": "6.15.0",
4546
"eslint-plugin-prettier": "3.1.4",
4647
"fs-extra": "9.0.1",

0 commit comments

Comments
 (0)