Skip to content

Commit 7e46b20

Browse files
committed
style: update prettier configs
1 parent 1b5475d commit 7e46b20

File tree

8 files changed

+58
-50
lines changed

8 files changed

+58
-50
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: CodeQL
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
branches: [ main ]
8+
branches: [main]
99
schedule:
10-
- cron: '0 11 * * 3'
10+
- cron: "0 11 * * 3"
1111

1212
jobs:
1313
analyze:

.github/workflows/ossar-analysis.yml

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,34 @@ jobs:
1515

1616
steps:
1717
# Checkout your code repository to scan
18-
- name: Checkout repository
19-
uses: actions/checkout@v2.3.4
20-
with:
21-
# We must fetch at least the immediate parents so that if this is
22-
# a pull request then we can checkout the head.
23-
fetch-depth: 2
18+
- name: Checkout repository
19+
uses: actions/checkout@v2.3.4
20+
with:
21+
# We must fetch at least the immediate parents so that if this is
22+
# a pull request then we can checkout the head.
23+
fetch-depth: 2
2424

25-
# If this run was triggered by a pull request event, then checkout
26-
# the head of the pull request instead of the merge commit.
27-
- run: git checkout HEAD^2
28-
if: ${{ github.event_name == 'pull_request' }}
29-
30-
# Ensure a compatible version of dotnet is installed.
31-
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
32-
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
33-
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
34-
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
35-
# - name: Install .NET
36-
# uses: actions/setup-dotnet@v1
37-
# with:
38-
# dotnet-version: '3.1.x'
25+
# If this run was triggered by a pull request event, then checkout
26+
# the head of the pull request instead of the merge commit.
27+
- run: git checkout HEAD^2
28+
if: ${{ github.event_name == 'pull_request' }}
3929

30+
# Ensure a compatible version of dotnet is installed.
31+
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
32+
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
33+
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
34+
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
35+
# - name: Install .NET
36+
# uses: actions/setup-dotnet@v1
37+
# with:
38+
# dotnet-version: '3.1.x'
4039
# Run open source static analysis tools
41-
- name: Run OSSAR
42-
uses: github/ossar-action@v1
43-
id: ossar
40+
- name: Run OSSAR
41+
uses: github/ossar-action@v1
42+
id: ossar
4443

45-
# Upload results to the Security tab
46-
- name: Upload OSSAR results
47-
uses: github/codeql-action/upload-sarif@v1
48-
with:
49-
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
44+
# Upload results to the Security tab
45+
- name: Upload OSSAR results
46+
uses: github/codeql-action/upload-sarif@v1
47+
with:
48+
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

.prettierignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Builds
2+
lib
3+
dist
4+
build
5+
6+
# Test
7+
coverage
8+
9+
# Misc
10+
te?mp
11+
12+
# Yarn
13+
.yarn
14+
.pnp.*

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": true,
3+
"endOfLine": "lf",
4+
"singleQuote": false
5+
}

.yarn/install-state.gz

1.16 MB
Binary file not shown.

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
pg2bigquery
2-
===========
1+
# pg2bigquery
32

43
A CLI tool to convert query from PostgreSQL to BigQuery
54

@@ -34,10 +33,10 @@ $ pg2bigquery -d dataset -t tables.json input output
3433

3534
You need these things to use:
3635

37-
* **input**: input folder that contains PostgresSQL query files
38-
* **output**: output folder that contains BigQuery query files
39-
* **dataset**: destination dataset which is used to run BigQuery query
40-
* **tables**: list of tables of pg database in json file
36+
- **input**: input folder that contains PostgresSQL query files
37+
- **output**: output folder that contains BigQuery query files
38+
- **dataset**: destination dataset which is used to run BigQuery query
39+
- **tables**: list of tables of pg database in json file
4140

4241
> If you want to know about the files format, go to [samples](samples)
4342
@@ -46,15 +45,7 @@ You need these things to use:
4645
For now, you need to put the list of tables in a json file like this:
4746

4847
```json
49-
[
50-
"forms",
51-
"roles",
52-
"steps",
53-
"wards",
54-
"people",
55-
"staffs",
56-
"products"
57-
]
48+
["forms", "roles", "steps", "wards", "people", "staffs", "products"]
5849
```
5950

6051
You can easily get the list of tables in your sql editor by this query:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
"test": "jest --coverage",
9595
"test:debug": "jest --watch --detectOpenHandles",
9696
"version": "oclif-dev readme && git add README.md",
97-
"semantic-release": "semantic-release"
97+
"semantic-release": "semantic-release",
98+
"format": "prettier --write ."
9899
},
99100
"types": "lib/index.d.ts"
100101
}

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99
"strict": true,
1010
"target": "es2017"
1111
},
12-
"include": [
13-
"src/**/*"
14-
]
12+
"include": ["src/**/*"]
1513
}

0 commit comments

Comments
 (0)