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

Commit 842bfd8

Browse files
committed
chore(lint): Lint mocks folder
1 parent bfdcf98 commit 842bfd8

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [unreleased]
88
### Added
99
### Changed
10+
- chore(lint): Lint mocks folder
1011
### Fixed
1112
- fix: Remove mocks-server-plugin tag from package.json (#93)
1213
### Removed

mocks/mocks-server.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
options: {
3-
port: 3200
4-
}
3+
port: 3200,
4+
},
55
};

mocks/mocks/behaviors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ const user2 = new Behavior([getUser2]);
77

88
module.exports = {
99
base,
10-
user2
10+
user2,
1111
};

mocks/mocks/fixtures.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ const getUser = {
33
method: "GET",
44
response: {
55
status: 200,
6-
body: [{ email: "foo@foo.com" }]
7-
}
6+
body: [{ email: "foo@foo.com" }],
7+
},
88
};
99

1010
const getUser2 = {
1111
url: "/api/user",
1212
method: "GET",
1313
response: {
1414
status: 200,
15-
body: [{ email: "foo2@foo2.com" }]
16-
}
15+
body: [{ email: "foo2@foo2.com" }],
16+
},
1717
};
1818

1919
module.exports = {
2020
getUser,
21-
getUser2
21+
getUser2,
2222
};

package-lock.json

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

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"module": "dist/index.esm.js",
2424
"scripts": {
2525
"build": "rollup --config",
26-
"lint": "eslint *.js test src jest.config.js",
26+
"lint": "eslint *.js test src mocks/*.js mocks/mocks/*.js",
2727
"lint-staged": "lint-staged",
2828
"mocks:install": "cd mocks && npm i",
2929
"mocks:ci": "cd mocks && npm run mocks:ci",
@@ -32,7 +32,7 @@
3232
},
3333
"dependencies": {
3434
"cross-fetch": "3.0.6",
35-
"@mocks-server/admin-api-paths": "1.0.8"
35+
"@mocks-server/admin-api-paths": "1.1.0"
3636
},
3737
"devDependencies": {
3838
"@babel/preset-env": "7.12.1",
@@ -59,7 +59,8 @@
5959
"test/**/*.js": "eslint",
6060
"src/**/*.js": "eslint",
6161
"*.js": "eslint",
62-
"jest.config.js": "eslint"
62+
"mocks/*.js": "eslint",
63+
"mocks/mocks/*.js": "eslint"
6364
},
6465
"husky": {
6566
"hooks": {

0 commit comments

Comments
 (0)