Skip to content

Commit 7deffe7

Browse files
cknittcristianoc
authored andcommitted
Format scripts +md/yml with prettier
1 parent d4174ae commit 7deffe7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1127
-913
lines changed

.github/ISSUE_TEMPLATE.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Thank you for filing! Check list:
2+
23
- [ ] Is it a bug? Usage questions should often be asked in the [forum](https://forum.rescript-lang.org) instead.
34
- [ ] Concise, focused, friendly issue title & description.
45
- [ ] A [minimal, reproducible example](http://sscce.org).

.github/stale.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Number of days of inactivity before an issue becomes stale
2-
daysUntilStale: 720
2+
daysUntilStale: 720
33
# Number of days of inactivity before a stale issue is closed
44
daysUntilClose: 7
55
# Issues with these labels will never be considered stale
66
exemptLabels:
77
- "PRIORITY:HIGH"
88
- bug
9-
- non-critical-bug
9+
- non-critical-bug
1010
- security
1111
- enhancement
1212
- optimization

.github/workflows/ci.yml

+54-54
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
test:
@@ -20,64 +20,64 @@ jobs:
2020
OCAMLRUNPARAM: b
2121

2222
steps:
23-
- name: "Windows: Set git to use LF"
24-
if: runner.os == 'Windows'
25-
run: |
26-
git config --global core.autocrlf false
27-
git config --global core.eol lf
23+
- name: "Windows: Set git to use LF"
24+
if: runner.os == 'Windows'
25+
run: |
26+
git config --global core.autocrlf false
27+
git config --global core.eol lf
2828
29-
- name: Checkout
30-
uses: actions/checkout@v3
31-
with:
32-
submodules: true
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
with:
32+
submodules: true
3333

34-
- name: Use OCaml ${{matrix.ocaml_compiler}}
35-
if: runner.name != 'macos-arm'
36-
uses: ocaml/setup-ocaml@v2
37-
with:
38-
ocaml-compiler: ${{matrix.ocaml_compiler}}
39-
opam-pin: false
40-
opam-depext: false
34+
- name: Use OCaml ${{matrix.ocaml_compiler}}
35+
if: runner.name != 'macos-arm'
36+
uses: ocaml/setup-ocaml@v2
37+
with:
38+
ocaml-compiler: ${{matrix.ocaml_compiler}}
39+
opam-pin: false
40+
opam-depext: false
4141

42-
- name: Use OCaml ${{matrix.ocaml_compiler}} (macOS ARM)
43-
if: runner.name == 'macos-arm'
44-
uses: AbstractMachinesLab/setup-ocaml@arm-support
45-
with:
46-
ocaml-compiler: ${{matrix.ocaml_compiler}}
47-
opam-pin: false
48-
opam-depext: false
42+
- name: Use OCaml ${{matrix.ocaml_compiler}} (macOS ARM)
43+
if: runner.name == 'macos-arm'
44+
uses: AbstractMachinesLab/setup-ocaml@arm-support
45+
with:
46+
ocaml-compiler: ${{matrix.ocaml_compiler}}
47+
opam-pin: false
48+
opam-depext: false
4949

50-
- name: Use Node.js
51-
uses: actions/setup-node@v2.1.5
52-
with:
53-
node-version: 16
50+
- name: Use Node.js
51+
uses: actions/setup-node@v2.1.5
52+
with:
53+
node-version: 16
5454

55-
- name: NPM install
56-
run: opam exec -- npm ci
57-
env:
58-
RESCRIPT_FORCE_REBUILD: 1
55+
- name: NPM install
56+
run: opam exec -- npm ci
57+
env:
58+
RESCRIPT_FORCE_REBUILD: 1
5959

60-
- name: Run tests
61-
if: runner.os != 'Windows'
62-
run: opam exec -- node scripts/ciTest.js -all
63-
64-
- name: Run tests (Windows)
65-
if: runner.os == 'Windows'
66-
run: opam exec -- node scripts/ciTest.js -mocha -theme
60+
- name: Run tests
61+
if: runner.os != 'Windows'
62+
run: opam exec -- node scripts/ciTest.js -all
6763

68-
- name: Ensure lib/js and lib/es6 are up to date
69-
if: runner.os != 'Windows'
70-
run: |
71-
opam exec -- node ./scripts/ninja.js config
72-
opam exec -- node ./scripts/ninja.js build
73-
git diff --exit-code lib/js lib/es6
64+
- name: Run tests (Windows)
65+
if: runner.os == 'Windows'
66+
run: opam exec -- node scripts/ciTest.js -mocha -theme
7467

75-
- name: Get artifact info
76-
id: get_artifact_info
77-
run: node .github/workflows/get_artifact_info.js
68+
- name: Ensure lib/js and lib/es6 are up to date
69+
if: runner.os != 'Windows'
70+
run: |
71+
opam exec -- node ./scripts/ninja.js config
72+
opam exec -- node ./scripts/ninja.js build
73+
git diff --exit-code lib/js lib/es6
7874
79-
- name: Upload artifacts
80-
uses: actions/upload-artifact@v3
81-
with:
82-
name: ${{ steps.get_artifact_info.outputs.artifact_name }}
83-
path: ${{ steps.get_artifact_info.outputs.artifact_path }}
75+
- name: Get artifact info
76+
id: get_artifact_info
77+
run: node .github/workflows/get_artifact_info.js
78+
79+
- name: Upload artifacts
80+
uses: actions/upload-artifact@v3
81+
with:
82+
name: ${{ steps.get_artifact_info.outputs.artifact_name }}
83+
path: ${{ steps.get_artifact_info.outputs.artifact_path }}

.istanbul.yml

+49-49
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
verbose: false
22
instrumentation:
3-
root: .
4-
extensions:
5-
- .js
6-
default-excludes: false
7-
excludes: [ '**/node_modules/**','jscomp/test/**']
8-
embed-source: false
9-
variable: __coverage__
10-
compact: true
11-
preserve-comments: false
12-
complete-copy: false
13-
save-baseline: false
14-
baseline-file: ./coverage/coverage-baseline.json
15-
include-all-sources: false
16-
include-pid: false
17-
es-modules: false
3+
root: .
4+
extensions:
5+
- .js
6+
default-excludes: false
7+
excludes: ["**/node_modules/**", "jscomp/test/**"]
8+
embed-source: false
9+
variable: __coverage__
10+
compact: true
11+
preserve-comments: false
12+
complete-copy: false
13+
save-baseline: false
14+
baseline-file: ./coverage/coverage-baseline.json
15+
include-all-sources: false
16+
include-pid: false
17+
es-modules: false
1818
reporting:
19-
print: summary
20-
reports:
21-
- lcov
22-
dir: ./coverage
23-
watermarks:
24-
statements: [50, 80]
25-
lines: [50, 80]
26-
functions: [50, 80]
27-
branches: [50, 80]
28-
report-config:
29-
clover: {file: clover.xml}
30-
cobertura: {file: cobertura-coverage.xml}
31-
json: {file: coverage-final.json}
32-
json-summary: {file: coverage-summary.json}
33-
lcovonly: {file: lcov.info}
34-
teamcity: {file: null, blockName: Code Coverage Summary}
35-
text: {file: null, maxCols: 0}
36-
text-lcov: {file: lcov.info}
37-
text-summary: {file: null}
19+
print: summary
20+
reports:
21+
- lcov
22+
dir: ./coverage
23+
watermarks:
24+
statements: [50, 80]
25+
lines: [50, 80]
26+
functions: [50, 80]
27+
branches: [50, 80]
28+
report-config:
29+
clover: { file: clover.xml }
30+
cobertura: { file: cobertura-coverage.xml }
31+
json: { file: coverage-final.json }
32+
json-summary: { file: coverage-summary.json }
33+
lcovonly: { file: lcov.info }
34+
teamcity: { file: null, blockName: Code Coverage Summary }
35+
text: { file: null, maxCols: 0 }
36+
text-lcov: { file: lcov.info }
37+
text-summary: { file: null }
3838
hooks:
39-
hook-run-in-context: false
40-
post-require-hook: null
41-
handle-sigint: false
39+
hook-run-in-context: false
40+
post-require-hook: null
41+
handle-sigint: false
4242
check:
43-
global:
44-
statements: 0
45-
lines: 0
46-
branches: 0
47-
functions: 0
48-
excludes: []
49-
each:
50-
statements: 0
51-
lines: 0
52-
branches: 0
53-
functions: 0
54-
excludes: []
43+
global:
44+
statements: 0
45+
lines: 0
46+
branches: 0
47+
functions: 0
48+
excludes: []
49+
each:
50+
statements: 0
51+
lines: 0
52+
branches: 0
53+
functions: 0
54+
excludes: []

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
docs/
2+
jscomp/
3+
lib/
4+
vendor/
5+
ninja/
6+
syntax/
7+
ocaml-tree/

.prettierrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"arrowParens": "avoid"
3+
}

0 commit comments

Comments
 (0)