Skip to content

Commit 9e7f1b0

Browse files
authored
Initial refactor (#2)
* Set author/codeowner * Switch references to julia-version * Add a description * Package is public * Rename .yml to .yaml * Rename yamllint config file to use a default name * Drop trailing slash from job names * Update YAML linting rules * Use double-quotes * Add note on GHA syntax * Disable commitlint * Rename workflow to CI * Rename markdownlint config file * Custom config file names and LINTER_RULES_PATH incompatible super-linter/super-linter#3477 * Skip markdown * Set log level to DEBUG * Make an .env * Update dependencies * Run most PR workflows independent of base branch * Silence dotenv-linter * Require markdown lists to be ordered * Use trailing comma ES5
1 parent 8c27c9a commit 9e7f1b0

31 files changed

+2877
-1805
lines changed

.env.example renamed to .env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# dotenv-linter:off IncorrectDelimiter
1+
# dotenv-linter:off QuoteCharacter
22

33
# Do not commit your actual .env file to Git! This may contain secrets or other
44
# private information.
55

66
# Enable/disable step debug logging (default: `false`). For local debugging, it
77
# may be useful to set it to `true`.
8-
ACTIONS_STEP_DEBUG=true
8+
ACTIONS_STEP_DEBUG="true"
99

1010
# GitHub Actions inputs should follow `INPUT_<name>` format (case-sensitive).
1111
# Hyphens should not be converted to underscores!

.github/dependabot.yml renamed to .github/dependabot.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: 2
23
updates:
34
- package-ecosystem: github-actions
@@ -15,9 +16,9 @@ updates:
1516
schedule:
1617
interval: weekly
1718
ignore:
18-
- dependency-name: '@types/node'
19+
- dependency-name: "@types/node"
1920
update-types:
20-
- 'version-update:semver-major'
21+
- version-update:semver-major
2122
groups:
2223
npm-development:
2324
dependency-type: development

.github/workflows/check-dist.yml renamed to .github/workflows/check-dist.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# If this workflow is run from a feature branch, it will act as an additional CI
88
# check and fail if the checked-in `dist/` directory does not match what is
99
# expected from the build.
10+
---
1011
name: Check Transpiled JavaScript
1112

1213
on:
@@ -22,7 +23,7 @@ permissions:
2223

2324
jobs:
2425
check-dist:
25-
name: Check dist/
26+
name: Check dist
2627
runs-on: ubuntu-latest
2728

2829
steps:
@@ -41,7 +42,7 @@ jobs:
4142
id: install
4243
run: npm ci
4344

44-
- name: Build dist/ Directory
45+
- name: Build dist Directory
4546
id: build
4647
run: npm run bundle
4748

.github/workflows/ci.yml renamed to .github/workflows/ci.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: Continuous Integration
1+
---
2+
name: CI
23

34
on:
4-
pull_request:
5-
branches:
6-
- main
5+
pull_request: {}
76
push:
87
branches:
98
- main

.github/workflows/codeql-analysis.yml renamed to .github/workflows/codeql-analysis.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1+
---
12
name: CodeQL
23

34
on:
4-
pull_request:
5-
branches:
6-
- main
5+
pull_request: {}
76
push:
87
branches:
98
- main
109
schedule:
11-
- cron: '31 7 * * 3'
10+
- cron: 31 7 * * 3
1211

1312
permissions:
1413
actions: read

.github/workflows/licensed.yml renamed to .github/workflows/licensed.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow checks the statuses of cached dependencies used in this action
22
# with the help of the Licensed tool. If any licenses are invalid or missing,
33
# this workflow will fail. See: https://github.com/licensee/licensed
4-
4+
---
55
name: Licensed
66

77
on:

.github/workflows/linter.yml renamed to .github/workflows/linter.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
---
12
name: Lint Codebase
23

34
on:
4-
pull_request:
5-
branches:
6-
- main
5+
pull_request: {}
76
push:
87
branches:
98
- main
@@ -43,11 +42,15 @@ jobs:
4342
DEFAULT_BRANCH: main
4443
FILTER_REGEX_EXCLUDE: dist/**/*
4544
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
LINTER_RULES_PATH: ${{ github.workspace }}
45+
LINTER_RULES_PATH: .
46+
# LOG_LEVEL: DEBUG # Useful when configuration files cannot be found
47+
MARKDOWN_CONFIG_FILE: .markdownlint.yaml
4748
VALIDATE_ALL_CODEBASE: true
49+
VALIDATE_GIT_COMMITLINT: false
4850
VALIDATE_JAVASCRIPT_ES: false
4951
VALIDATE_JAVASCRIPT_STANDARD: false
5052
VALIDATE_JSCPD: false
5153
VALIDATE_TYPESCRIPT_ES: false
5254
VALIDATE_JSON: false
5355
VALIDATE_TYPESCRIPT_STANDARD: false
56+
YAML_CONFIG_FILE: .yamllint.yaml

.licensed.yml renamed to .licensed.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# See: https://github.com/licensee/licensed/blob/main/docs/configuration.md
2-
2+
---
33
sources:
44
npm: true
55

@@ -15,4 +15,4 @@ allowed:
1515
ignored:
1616
npm:
1717
# Used by Rollup.js when building in GitHub Actions
18-
- '@rollup/rollup-linux-x64-gnu'
18+
- "@rollup/rollup-linux-x64-gnu"

.markdown-lint.yml renamed to .markdownlint.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# See: https://github.com/DavidAnson/markdownlint
2-
2+
# For details on rules see: https://github.com/updownpress/markdown-lint/tree/master/rules
3+
---
34
# Unordered list style
45
MD004:
56
style: dash
@@ -10,7 +11,7 @@ MD013:
1011

1112
# Ordered list item prefix
1213
MD029:
13-
style: one
14+
style: ordered
1415

1516
# Spaces after list markers
1617
MD030:

.prettierrc.yml renamed to .prettierrc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# See: https://prettier.io/docs/en/configuration
2-
2+
---
33
printWidth: 80
44
tabWidth: 2
55
useTabs: false
66
semi: false
7-
singleQuote: true
7+
singleQuote: false
88
quoteProps: as-needed
99
jsxSingleQuote: false
10-
trailingComma: none
10+
trailingComma: es5
1111
bracketSpacing: true
1212
bracketSameLine: true
1313
arrowParens: always

0 commit comments

Comments
 (0)