Skip to content

Commit

Permalink
run prettier and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ekdeveloper committed Sep 5, 2024
1 parent 61affdb commit 8d036a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prettier-fix": "prettier --write \"**/*.{js,mjs,cjs,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,less,graphql,graphqls,gql}\"",
"lint": "run-p prettier-check lint-eslint",
"lint-staged": "lint-staged",
"lint-eslint": "eslint . '**/*.{js,jsx,ts,tsx}"
"lint-eslint": "eslint . '**/*.{js,jsx,ts,tsx}'"
},
"jest": {
"clearMocks": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/node-fhir-server-core/src/server/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function enableResourceRoutes(app, config, corsDefaults) {
throw new Error(
`${profileName} is an invalid profile configuration, please see the wiki for ` +
'instructions on how to enable a profile in your server, ' +
'https://github.com/BlueHalo/node-fhir-server-core/wiki/Profile'
'https://github.com/BlueHalo/node-fhir-server-core/wiki/Profile',
);
}

Expand Down
8 changes: 4 additions & 4 deletions packages/node-fhir-server-core/src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ function validate(config) {
invariant(
!config.server.ssl || (config.server.ssl && config.server.ssl.key && config.server.ssl.cert),
'Invalid SSL Configuration, Please see the Wiki for a guide on how to setup SSL. ' +
'See https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ServerConfiguration.md'
'See https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ServerConfiguration.md',
);

// If we have no profiles configured, notify them now
invariant(
Object.keys(config.profiles).length > 0,
'No profiles configured. We do not enable any profiles by default so please ' +
'review the profile wiki for how to enable profiles and capabilities. ' +
'See https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ConfiguringProfiles.md'
'See https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ConfiguringProfiles.md',
);

// We need to verify that each provided key is valid and that the config
Expand All @@ -101,7 +101,7 @@ function validate(config) {
errors.length === 0,
'Encountered the following errors attempting to load your provided profiles:' +
`\n${errors.join('\n')}\n` +
'See https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ConfiguringProfiles.md'
'See https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ConfiguringProfiles.md',
);
}

Expand Down Expand Up @@ -337,7 +337,7 @@ class Server {
invariant(
port || server.port,
'Missing port. Please provide a port when initializing the server. See ' +
'https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ServerConfiguration.md'
'https://github.com/BlueHalo/node-fhir-server-core/blob/master/docs/ServerConfiguration.md',
);

// Update the express app to be in instance of createServer
Expand Down

0 comments on commit 8d036a4

Please sign in to comment.