-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 838b0c7
Showing
34 changed files
with
18,311 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: GitHub Community Support | ||
url: https://github.com/orgs/community/discussions | ||
about: Please ask and answer questions here. | ||
- name: GitHub Security Bug Bounty | ||
url: https://bounty.github.com/ | ||
about: Please report security vulnerabilities here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
labels: | ||
- dependabot | ||
- actions | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
labels: | ||
- dependabot | ||
- npm | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
############################# | ||
## JavaScript Linter rules ## | ||
############################# | ||
|
||
parser: '@typescript-eslint/parser' | ||
|
||
env: | ||
node: true | ||
es6: true | ||
jest: true | ||
commonjs: true | ||
|
||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
|
||
ignorePatterns: | ||
- '!.*' | ||
- '**/node_modules/**' | ||
- '**/dist/**' | ||
- '**/coverage/**' | ||
- '**/.github/**' | ||
- '**/.vscode/**' | ||
|
||
parserOptions: | ||
ecmaVersion: 2023 | ||
sourceType: module | ||
project: | ||
- './.github/linters/tsconfig.json' | ||
- './tsconfig.json' | ||
|
||
plugins: | ||
- 'jest' | ||
- '@typescript-eslint' | ||
|
||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/eslint-recommended | ||
- plugin:@typescript-eslint/recommended | ||
- plugin:github/recommended | ||
- plugin:jest/recommended | ||
|
||
rules: | ||
{ | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'camelcase': 'off', | ||
'i18n-text/no-en': 'off', | ||
'import/no-commonjs': 'off', | ||
'import/no-namespace': 'off', | ||
'no-console': 'off', | ||
'prettier/prettier': 'error' | ||
} | ||
|
||
overrides: | ||
- files: | ||
- '*.json' | ||
extends: | ||
- plugin:jsonc/recommended-with-json | ||
parser: jsonc-eslint-parser | ||
parserOptions: | ||
jsonSyntax: JSON | ||
- files: | ||
- '*.jsonc' | ||
extends: | ||
- plugin:jsonc/recommended-with-jsonc | ||
parser: jsonc-eslint-parser | ||
parserOptions: | ||
jsonSyntax: JSONC | ||
- files: | ||
- '*.json5' | ||
extends: | ||
- plugin:jsonc/recommended-with-json5 | ||
parser: jsonc-eslint-parser | ||
parserOptions: | ||
jsonSyntax: JSON5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
########################### | ||
## Markdown Linter rules ## | ||
########################### | ||
|
||
MD003: false | ||
MD004: | ||
style: dash | ||
MD026: false | ||
MD029: | ||
style: one | ||
MD033: false | ||
MD034: false | ||
MD036: false | ||
MD041: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
########################### | ||
## YAML Linter rules ## | ||
########################### | ||
|
||
rules: | ||
document-end: disable | ||
document-start: | ||
level: warning | ||
present: false | ||
line-length: | ||
level: warning | ||
max: 120 | ||
allow-non-breakable-words: true | ||
allow-non-breakable-inline-mappings: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"noEmit": true | ||
}, | ||
"include": ["../../__tests__/**/*", "../../src/**/*"], | ||
"exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Check dist/ | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
check-dist: | ||
name: Check dist/ | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
statuses: write | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
|
||
- name: Install Dependencies | ||
id: install | ||
run: npm ci | ||
|
||
- name: Build dist/ Directory | ||
id: build | ||
run: npm run bundle | ||
|
||
- name: Compare Expected and Actual Directories | ||
id: diff | ||
run: | | ||
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git diff --ignore-space-at-eol --text dist/ | ||
exit 1 | ||
fi | ||
- if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||
name: Upload Artifact | ||
id: upload | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CodeQL | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '30 1 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
actions: read | ||
checks: write | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: | ||
- javascript | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
id: initialize | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
id: autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
id: analyze | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Continuous Delivery | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
# This is required to be able to update tags and create releases | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: Release Version | ||
runs-on: ubuntu-latest | ||
|
||
# Only run this job if the PR was merged | ||
if: ${{ github.event.pull_request.merged == true }} | ||
|
||
steps: | ||
# Checkout the repository with fetch-tags set to true | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
|
||
# Get the version and update the tags to use in the release | ||
- name: Tag | ||
id: tag | ||
uses: issue-ops/[email protected] | ||
with: | ||
manifest-path: package.json | ||
workspace: ${{ github.workspace }} | ||
ref: main | ||
|
||
# Use the version output from the previous step for the release | ||
# Prepend a 'v' to the beginning (e.g. 'v1.2.3') | ||
- name: Create Release | ||
id: release | ||
uses: issue-ops/[email protected] | ||
with: | ||
tag: v${{ steps.tag.outputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
continuous-integration: | ||
name: Continuous Integration | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
statuses: write | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
|
||
- name: Install Dependencies | ||
id: install | ||
run: npm ci | ||
|
||
- name: Check Format | ||
id: format-check | ||
run: npm run format:check | ||
|
||
- name: Lint | ||
id: lint | ||
run: npm run lint | ||
|
||
- name: Test | ||
id: test | ||
run: npm run ci-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Super Linter | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
name: Lint Codebase | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
|
||
- name: Install Dependencies | ||
id: install | ||
run: npm ci | ||
|
||
- name: Super Linter | ||
id: super-linter | ||
uses: super-linter/super-linter/slim@v5 | ||
env: | ||
DEFAULT_BRANCH: main | ||
FILTER_REGEX_EXCLUDE: dist/**/* | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TYPESCRIPT_DEFAULT_STYLE: prettier | ||
VALIDATE_ALL_CODEBASE: true | ||
VALIDATE_JAVASCRIPT_STANDARD: false | ||
VALIDATE_JSCPD: false |
Oops, something went wrong.