Skip to content

Commit dce4c01

Browse files
chore: update repo files (#568)
1 parent b3234ba commit dce4c01

Some content is hidden

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

47 files changed

+8175
-8801
lines changed

.commitlintrc.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
module.exports = {
2-
extends: [
3-
"@commitlint/config-conventional"
4-
],
2+
extends: ["@commitlint/config-conventional"],
53
parserPreset: {
64
parserOpts: {
7-
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/
8-
}
9-
}
5+
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
6+
},
7+
},
108
};

.cspell.json

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,51 @@
22
"version": "0.2",
33
"language": "en",
44
"ignorePaths": [
5-
"**/coverage/**",
6-
"**/node_modules/**",
7-
"**/lib/**",
8-
"**/**/CHANGELOG.md",
9-
"**/*.{json}",
105
".cspell.json",
11-
"yarn.lock",
126
".github/workflows/**",
13-
".vscode/*.json"
7+
".vscode/*.json",
8+
"**/*.json",
9+
"**/*.jsonc",
10+
"**/*.pdn",
11+
"**/CHANGELOG.md",
12+
"**/coverage/**",
13+
"**/lib/**",
14+
"**/node_modules/**",
15+
"pnpm-lock.yaml"
1416
],
1517
"dictionaries": [
16-
"typescript",
17-
"softwareTerms",
18-
"node",
1918
"en_US",
20-
"npm",
19+
"filetypes",
2120
"misc",
22-
"filetypes"
21+
"node",
22+
"npm",
23+
"softwareTerms",
24+
"typescript"
2325
],
2426
"import": ["./node_modules/@cspell/dict-cryptocurrencies/cspell-ext.json"],
2527
"ignoreRegExpList": [
28+
"/[^\\s@]+@([^\\s@]+\\.)+[^\\s@]{2,4}/",
29+
"/[A-Fa-f0-9]{6}/",
30+
"/[A-Za-z0-9]{32,}/",
31+
"// @ts-.*",
32+
"/\\.\\/docs\\/rules\\/[^.]*.md/",
33+
"/\\STS\\S+/",
34+
"/`[^`]*`/",
35+
"/``[\\w\\W]*?``/",
2636
"/```[\\w\\W]*?```/",
2737
"/~~~[\\w\\W]*?~~~/",
28-
"/``[\\w\\W]*?``/",
29-
"/`[^`]*`/",
30-
"/\\.\\/docs\\/rules\\/[^.]*.md/",
3138
"/TS[^\\s]+/",
32-
"\\(#.+?\\)",
33-
"// @ts-.*",
34-
"/[A-Za-z0-9]{32,}/"
39+
"\\(#.+?\\)"
40+
],
41+
"words": [
42+
"globstar",
43+
"IIFE",
44+
"IIFEs",
45+
"Kello",
46+
"litecoin",
47+
"ruleset",
48+
"rulesets"
3549
],
36-
"words": ["litecoin", "globstar", "IIFE", "IIFEs", "ruleset", "rulesets"],
3750
"overrides": [
3851
{
3952
"filename": "**/*.{ts,js}",

.eslintrc.json

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
{
22
"root": true,
3-
"parser": "@typescript-eslint/parser",
4-
"plugins": [
5-
"@typescript-eslint",
6-
"eslint-plugin",
7-
"functional",
8-
"import",
9-
"jsdoc",
10-
"prettier"
11-
],
123
"env": {
13-
"es6": true,
144
"node": true
155
},
6+
"plugins": ["prettier"],
167
"extends": [
178
"@rebeccastevens/eslint-config/modern",
189
"@rebeccastevens/eslint-config/typescript",
@@ -29,14 +20,7 @@
2920
],
3021
"sourceType": "module"
3122
},
32-
"ignorePatterns": [
33-
"/build/",
34-
"/coverage/",
35-
"/lib/",
36-
"/**/*.cjs",
37-
"/**/*.js",
38-
"/src/utils/tsutils.ts"
39-
],
23+
"ignorePatterns": ["/build/", "/coverage/", "/lib/", "/**/*.cjs", "/**/*.js"],
4024
"rules": {
4125
"functional/prefer-immutable-types": "off",
4226
"import/no-relative-parent-imports": "error"

.github/actions/prepare/action.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Prepare
2+
description: Prepares the repo for a typical CI job
3+
4+
inputs:
5+
node-version:
6+
required: false
7+
description: "`node-version` passed to `actions/setup-node`."
8+
default: latest
9+
10+
runs:
11+
using: "composite"
12+
steps:
13+
- name: Configure Git
14+
run: |
15+
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
16+
git config --global user.name ${GITHUB_ACTOR}
17+
shell: bash
18+
- uses: pnpm/action-setup@v2
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ inputs.node-version }}
22+
cache: "pnpm"
23+
- run: pnpm install --frozen-lockfile --ignore-scripts
24+
shell: bash

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"workarounds:typesNodeVersioning",
1414
"schedule:weekly"
1515
],
16-
"postUpdateOptions": ["yarnDedupeHighest"],
1716
"labels": ["Type: Maintenance", ":blue_heart:"],
1817
"automergeStrategy": "rebase",
18+
"postUpdateOptions": ["pnpmDedupe"],
1919
"packageRules": [
2020
{
2121
"matchManagers": ["npm"],

.github/workflows/done-label.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
name: "Update Labels"
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: RebeccaStevens/issue-closed-labeler-action@latest
13+
- uses: RebeccaStevens/issue-closed-labeler-action@v1
1414
with:
15-
rules: '[{"condition":"Type: Bug","add":"Resolution: Fixed"},{"condition":["some",["Type: Feature","Type: Enhancement"]],"add":"Resolution: Added"}]'
15+
rules: '[{"condition":"Type: Bug","add":"Resolution: Fixed","remove":["Status: Triage","Status: Investigation Needed","Status: On Hold","Status: In Progress","Status: Stale","Status: Awaiting Response","Status: Awaiting Feedback","Status: Blocked"]},{"condition":["some",["Type: Feature","Type: Enhancement"]],"add":"Resolution: Added","remove":["Status: Triage","Status: Investigation Needed","Status: On Hold","Status: In Progress","Status: Stale","Status: Awaiting Response","Status: Awaiting Feedback","Status: Blocked"]}]'

.github/workflows/lint-js.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Lint Code
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
lint_js:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: ./.github/actions/prepare
14+
- run: pnpm run build
15+
- run: pnpm run lint:js

.github/workflows/lint-knip.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Lint Knip
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
lint_knip:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: ./.github/actions/prepare
14+
- run: pnpm run lint:knip
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Lint Markdown
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
lint_markdown:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: ./.github/actions/prepare
14+
- run: pnpm run lint:md
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Prettier
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
lint_prettier:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: ./.github/actions/prepare
14+
- run: pnpm run format --list-different

0 commit comments

Comments
 (0)