Skip to content

Commit 240e691

Browse files
authored
chore: hourcekeeping, bump all (dev) deps, add lint steps (#239)
1 parent 53b316c commit 240e691

Some content is hidden

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

52 files changed

+11330
-7493
lines changed

.codesandbox/ci.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"node": "18",
3-
"installCommand": "codesandbox:install",
2+
"node": "20",
43
"sandboxes": []
54
}

.commitlintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@1stg"
3+
}

.env.yarn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ESLINT_USE_FLAT_CONFIG=false

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.yarn
12
lib
23
coverage
34
node_modules

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ module.exports = {
99
'plugin:@typescript-eslint/recommended',
1010
'plugin:eslint-plugin/recommended',
1111
'plugin:import-x/recommended',
12+
'plugin:json/recommended-legacy',
1213
'plugin:n/recommended',
1314
'plugin:unicorn/recommended',
15+
'plugin:yml/standard',
16+
'plugin:yml/prettier',
1417
'plugin:prettier/recommended',
1518
],
1619
env: {

.github/workflows/ci.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,41 +42,32 @@ jobs:
4242
with:
4343
node-version: ${{ matrix.node }}
4444

45-
- name: Enable Corepack
46-
run: corepack enable
47-
4845
- name: Setup Node.js ${{ matrix.node }} with cache
4946
uses: actions/setup-node@v4
5047
with:
5148
node-version: ${{ matrix.node }}
5249
cache: yarn
53-
env:
54-
# https://github.com/actions/setup-node/issues/531#issuecomment-1819151412
55-
SKIP_YARN_COREPACK_CHECK: 1
5650

5751
- name: Install ESLint ${{ matrix.eslint }}
5852
run: |
59-
yarn add -D --ignore-engines eslint@${{ matrix.eslint }}
53+
yarn add -D eslint@${{ matrix.eslint }}
6054
6155
- name: Install Dependencies
62-
run: yarn --ignore-engines
63-
env:
64-
SKIP_YARN_COREPACK_CHECK: 1
56+
run: yarn --immutable
6557

6658
- name: Build and Test
6759
run: |
6860
yarn test-compiled
6961
yarn test
70-
env:
71-
SKIP_YARN_COREPACK_CHECK: 1
7262
7363
- name: Lint
7464
run: yarn lint
65+
if: ${{ matrix.executeLint }}
7566
env:
7667
EFF_NO_LINK_RULES: true
7768
PARSER_NO_WATCH: true
78-
SKIP_YARN_COREPACK_CHECK: 1
79-
if: ${{ matrix.executeLint }}
8069

8170
- name: Codecov
82-
uses: codecov/codecov-action@v3
71+
uses: codecov/codecov-action@v5
72+
with:
73+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
schedule:
77
- cron: '41 19 * * 6'
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
analyze:
1115
name: Analyze

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717
fetch-depth: 0
1818

19-
- name: Enable Corepack
20-
run: corepack enable
21-
2219
- name: Setup Node.js LTS
2320
uses: actions/setup-node@v4
2421
with:
@@ -30,14 +27,10 @@ jobs:
3027

3128
- name: Install Dependencies
3229
run: yarn --immutable
33-
env:
34-
SKIP_YARN_COREPACK_CHECK: 1
3530

3631
# required for linting before commit
3732
- name: Build
3833
run: yarn build
39-
env:
40-
SKIP_YARN_COREPACK_CHECK: 1
4134

4235
- name: Create Release Pull Request or Publish to npm
4336
id: changesets
@@ -49,4 +42,3 @@ jobs:
4942
env:
5043
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5144
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52-
SKIP_YARN_COREPACK_CHECK: 1

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ lib/
3838
# macOS
3939
.DS_Store
4040
.*cache
41+
42+
.yarn/*
43+
!.yarn/patches
44+
!.yarn/plugins
45+
!.yarn/releases
46+
!.yarn/sdks

.lintstagedrc.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/lint-staged/tsc'

0 commit comments

Comments
 (0)