Skip to content

Commit

Permalink
Update eslint for external-services/
Browse files Browse the repository at this point in the history
  • Loading branch information
bonham000 committed Jun 26, 2021
1 parent 35f76e6 commit 914c051
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/admin/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
version: "detect",
},
},
extends: ["plugin:react/recommended", "plugin:prettier/recommended"],
extends: ["prettier"],
rules: {
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
version: "detect",
},
},
extends: ["plugin:react/recommended", "plugin:prettier/recommended"],
extends: ["prettier"],
rules: {
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
version: "detect",
},
},
extends: ["plugin:react/recommended", "plugin:prettier/recommended"],
extends: ["prettier"],
rules: {
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
Expand Down
7 changes: 1 addition & 6 deletions packages/external-services/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ module.exports = {
version: "detect",
},
},
extends: [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
],
extends: ["prettier"],
rules: {
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
Expand Down
4 changes: 2 additions & 2 deletions packages/external-services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"concurrently": "5.0.2",
"cors": "2.8.5",
"dotenv": "8.2.0",
"eslint": "7.15.0",
"eslint-config-prettier": "7.0.0",
"eslint": "7.29.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.8",
"eslint-plugin-prefer-arrow": "1.2.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/external-services/src/admin-auth-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@ const getAccessTokenForAdmin = async (): Promise<string> => {
await request(`${SERVER}/auth/google`)
.get("/")
.expect(302)
.then(response => {
.then((response) => {
authorizationRedirect = response.header.location;
});

await request(authorizationRedirect)
.get("/")
.expect(302)
.then(response => {
.then((response) => {
loginRedirect = response.header.location;
});

await request(loginRedirect)
.get("/")
.expect(302)
.then(response => {
.then((response) => {
accessToken = getAccessTokenFromRedirect(response.header.location);
});

Expand Down

0 comments on commit 914c051

Please sign in to comment.