Skip to content

Commit

Permalink
Setup prettier (medplum#222)
Browse files Browse the repository at this point in the history
* Initial prettier setup

* Cleanup
  • Loading branch information
codyebberson authored Dec 18, 2021
1 parent 19d5e7a commit 95236ac
Show file tree
Hide file tree
Showing 614 changed files with 17,491 additions and 16,421 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/
packages/**/dist/
packages/docs/build/
packages/docs/docusaurus.config.js
packages/docs/sidebars.js
babel.config.js
jest.sequencer.js
package-lock.json
webpack.config.js
11 changes: 3 additions & 8 deletions packages/core/.eslintrc.json → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
Expand All @@ -20,4 +15,4 @@
}
]
}
}
}
58 changes: 29 additions & 29 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ main ]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main]
schedule:
- cron: '30 14 * * 4'

Expand All @@ -32,39 +32,39 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ['javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
packages/**/dist/**/*
packages/docs/.docusaurus/
packages/docs/build/
packages/ui/storybook-static/
coverage/
babel.config.js
jest.sequencer.js
package-lock.json
webpack.config.js
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": true
}
8 changes: 4 additions & 4 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Authors ordered by first contribution.

* Cody Ebberson [@codyebberson](https://github.com/codyebberson)
* John Smith [@johnsmith415](https://github.com/johnsmith415)
* Bennett Rogers [@bennettrogers](https://github.com/bennettrogers)
* Reshma Khilnani [@reshmakh](https://github.com/reshmakh)
- Cody Ebberson [@codyebberson](https://github.com/codyebberson)
- John Smith [@johnsmith415](https://github.com/johnsmith415)
- Bennett Rogers [@bennettrogers](https://github.com/bennettrogers)
- Reshma Khilnani [@reshmakh](https://github.com/reshmakh)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Medplum](https://www.medplum.com) · [![GitHub license](https://img.shields.io/badge/license-Apache-blue.svg)](https://github.com/medplum/medplum/blob/main/LICENSE.txt) [![npm version](https://img.shields.io/npm/v/@medplum/core.svg?color=blue)](https://www.npmjs.com/package/@medplum/core) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=medplum_medplum&metric=alert_status&token=207c95a43e7519809d6d336d8cc7837d3e057acf)](https://sonarcloud.io/dashboard?id=medplum_medplum) [![Coverage Status](https://coveralls.io/repos/github/medplum/medplum/badge.svg?branch=main)](https://coveralls.io/github/medplum/medplum?branch=main)

Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications. Medplum includes a FHIR server, React component library, and developer console.
Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications. Medplum includes a FHIR server, React component library, and developer console.

## Docs

Expand Down
24 changes: 12 additions & 12 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ This commitment to security is ingrained in our culture.

## Application Security

* Encryption - Data is encrypted in transit with TLS 1.2. Data is encrypted at rest with AES.
* Continuous Monitoring - Independent third-party penetration, threat, and vulnerability testing.
* Data Handling - Medplum is in full compliance with GDPR and has support for data deletion.
* SSO - User access controls with single sign on.
* Secure Hosting - Medplum's cloud environments are backed by AWS' security measures.
* RBAC - Role based account access workflows.
- Encryption - Data is encrypted in transit with TLS 1.2. Data is encrypted at rest with AES.
- Continuous Monitoring - Independent third-party penetration, threat, and vulnerability testing.
- Data Handling - Medplum is in full compliance with GDPR and has support for data deletion.
- SSO - User access controls with single sign on.
- Secure Hosting - Medplum's cloud environments are backed by AWS' security measures.
- RBAC - Role based account access workflows.

## Continuous Security Commitment

* Penetration Testing - We perform an independent third-party penetration test at least annually to ensure that the security posture of our services is uncompromised.
* Security Awareness Training - Our team members are required to go through employee security awareness training covering industry standard practices and information security topics such as phishing and password management.
* Third-Party Audits - Our organization undergoes independent third-party assessments to test our security controls.
* Roles and Responsibilities - Roles and responsibilities related to our information security program and the protection of our customer's data are well defined and documented.
* Information Security Program - We have an information security program in place that is communicated throughout the organization. Our information security program follows the criteria set forth by SOC 2.
* Continuous Monitoring - We continuously monitor our security and compliance status to ensure there are no lapses.
- Penetration Testing - We perform an independent third-party penetration test at least annually to ensure that the security posture of our services is uncompromised.
- Security Awareness Training - Our team members are required to go through employee security awareness training covering industry standard practices and information security topics such as phishing and password management.
- Third-Party Audits - Our organization undergoes independent third-party assessments to test our security controls.
- Roles and Responsibilities - Roles and responsibilities related to our information security program and the protection of our customer's data are well defined and documented.
- Information Security Program - We have an information security program in place that is communicated throughout the organization. Our information security program follows the criteria set forth by SOC 2.
- Continuous Monitoring - We continuously monitor our security and compliance status to ensure there are no lapses.

## Report Vulnerabilities

Expand Down
18 changes: 4 additions & 14 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-typescript"
],
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
"plugins": [
[
"@babel/plugin-proposal-class-properties"
],
[
"@babel/plugin-transform-react-jsx"
],
[
"@babel/plugin-transform-runtime"
]
["@babel/plugin-proposal-class-properties"],
["@babel/plugin-transform-react-jsx"],
["@babel/plugin-transform-runtime"]
]
}
25 changes: 4 additions & 21 deletions jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@
"transform": {
"^.+\\.(js|ts)$": "babel-jest"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"moduleNameMapper": {
"\\.css$": "identity-obj-proxy"
},
"testMatch": [
"**/src/**/*.test.ts",
"**/src/**/*.test.tsx"
],
"testMatch": ["**/src/**/*.test.ts", "**/src/**/*.test.tsx"],
"collectCoverage": true,
"coverageDirectory": "coverage",
"collectCoverageFrom": [
Expand All @@ -34,12 +24,5 @@
"!packages/generator/**/*.ts",
"!packages/server/src/migrations/**/*.ts"
],
"projects": [
"packages/app",
"packages/core",
"packages/fhirpath",
"packages/infra",
"packages/server",
"packages/ui"
]
}
"projects": ["packages/app", "packages/core", "packages/fhirpath", "packages/infra", "packages/server", "packages/ui"]
}
Loading

0 comments on commit 95236ac

Please sign in to comment.