Skip to content

Commit 3e18a27

Browse files
committed
Merge branch 'main' into public
2 parents a34e708 + 1beda7d commit 3e18a27

File tree

12 files changed

+1172
-1292
lines changed

12 files changed

+1172
-1292
lines changed

.eslintrc.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
name: ${{ needs.build.outputs.artifact_name }}
8484
path: .
8585
- name: Find packages
86-
uses: tj-actions/glob@v21
86+
uses: tj-actions/glob@v22
8787
id: packages
8888
with:
8989
files: '*.tgz'

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Format
3333
run: npm run format
3434
- name: Commit
35-
uses: stefanzweifel/git-auto-commit-action@v5
35+
uses: stefanzweifel/git-auto-commit-action@v6
3636
if: always()
3737
with:
3838
commit_message: 'ci: Format code'

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Normalize package-lock.json
3535
run: npm install
3636
- name: Commit
37-
uses: stefanzweifel/git-auto-commit-action@v5
37+
uses: stefanzweifel/git-auto-commit-action@v6
3838
with:
3939
commit_message: 'ci: Generate code'
4040
commit_user_name: ${{ secrets.GIT_USER_NAME }}

.gitignore

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ package
2828
# Temporary development files
2929
tmp
3030

31-
# Yarn lockfile (only package-lock.json supported)
31+
# Other lockfiles (only package-lock.json supported)
32+
pnpm-lock.yaml
3233
yarn.lock
3334

3435
# Logs
@@ -38,7 +39,6 @@ npm-debug.log*
3839
yarn-debug.log*
3940
yarn-error.log*
4041
lerna-debug.log*
41-
.pnpm-debug.log*
4242

4343
# Diagnostic reports (https://nodejs.org/api/report.html)
4444
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@@ -90,12 +90,6 @@ web_modules/
9090
# Optional stylelint cache
9191
.stylelintcache
9292

93-
# Microbundle cache
94-
.rpt2_cache/
95-
.rts2_cache_cjs/
96-
.rts2_cache_es/
97-
.rts2_cache_umd/
98-
9993
# Optional REPL history
10094
.node_repl_history
10195

@@ -107,10 +101,8 @@ web_modules/
107101

108102
# dotenv environment variable files
109103
.env
110-
.env.development.local
111-
.env.test.local
112-
.env.production.local
113-
.env.local
104+
.env.*
105+
!.env.example
114106

115107
# parcel-bundler cache (https://parceljs.org/)
116108
.cache
@@ -137,6 +129,15 @@ dist
137129
.temp
138130
.cache
139131

132+
# Sveltekit cache directory
133+
.svelte-kit/
134+
135+
# vitepress build output
136+
**/.vitepress/dist
137+
138+
# vitepress cache directory
139+
**/.vitepress/cache
140+
140141
# Docusaurus cache and generated files
141142
.docusaurus
142143

@@ -149,18 +150,27 @@ dist
149150
# DynamoDB Local files
150151
.dynamodb/
151152

153+
# Firebase cache directory
154+
.firebase/
155+
152156
# TernJS port file
153157
.tern-port
154158

155159
# Stores VSCode versions used for testing VSCode extensions
156160
.vscode-test
157161

158-
# yarn v2
159-
.yarn/cache
160-
.yarn/unplugged
161-
.yarn/build-state.yml
162-
.yarn/install-state.gz
162+
# yarn v3
163163
.pnp.*
164+
.yarn/*
165+
!.yarn/patches
166+
!.yarn/plugins
167+
!.yarn/releases
168+
!.yarn/sdks
169+
!.yarn/versions
170+
171+
# Vite logs files
172+
vite.config.js.timestamp-*
173+
vite.config.ts.timestamp-*
164174

165175
# Windows
166176

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021-2024 Seam Labs, Inc.
3+
Copyright (c) 2021-2025 Seam Labs, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Bootstrap a new TypeScript module in five minutes or less.
1616
- Package management with [npm].
1717
- Publish as a package to [GitHub Packages] and [npm].
1818
- Examples with configurable options and arguments powered by [yargs] with [landlubber].
19-
- Linting with the [JavaScript Standard Style] using [ESLint].
19+
- Linting with [eslint-config-love] using [ESLint].
2020
- [Prettier] code.
2121
- Futuristic debuggable unit testing with [AVA].
2222
- Code coverage reporting with [Istanbul] and [c8].
@@ -39,7 +39,7 @@ Bootstrap a new TypeScript module in five minutes or less.
3939
[GitHub Codespaces]: https://github.com/features/packages
4040
[GitHub Packages]: https://github.com/features/packages
4141
[Istanbul]: https://istanbul.js.org/
42-
[JavaScript Standard Style]: https://standardjs.com/
42+
[eslint-config-love]: https://github.com/mightyiam/eslint-config-love
4343
[Node.js]: https://nodejs.org/
4444
[Prettier]: https://prettier.io/
4545
[semantic-release]: https://semantic-release.gitbook.io/

eslint.config.ts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import { globalIgnores } from 'eslint/config'
2+
import love from 'eslint-config-love'
3+
import prettier from 'eslint-config-prettier/flat'
4+
import simpleImportSort from 'eslint-plugin-simple-import-sort'
5+
import unusedImports from 'eslint-plugin-unused-imports'
6+
7+
const files = ['**/*.{ts,tsx}']
8+
9+
export default [
10+
globalIgnores(['**/*.d.ts']),
11+
{
12+
...love,
13+
files,
14+
rules: {
15+
...love.rules,
16+
'import/extensions': ['error', 'ignorePackages'],
17+
'import/no-duplicates': ['error', { 'prefer-inline': true }],
18+
'import/no-relative-parent-imports': 'error',
19+
},
20+
},
21+
{
22+
files,
23+
plugins: {
24+
'unused-imports': unusedImports,
25+
},
26+
rules: {
27+
'@typescript-eslint/no-unused-vars': 'off',
28+
'unused-imports/no-unused-imports': 'error',
29+
'unused-imports/no-unused-vars': [
30+
'error',
31+
{
32+
vars: 'all',
33+
varsIgnorePattern: '^_',
34+
args: 'after-used',
35+
argsIgnorePattern: '^_',
36+
ignoreRestSiblings: true,
37+
},
38+
],
39+
},
40+
},
41+
{
42+
files,
43+
plugins: {
44+
'simple-import-sort': simpleImportSort,
45+
},
46+
rules: {
47+
'simple-import-sort/imports': [
48+
'error',
49+
{
50+
groups: [
51+
['^\\u0000'],
52+
['^node:'],
53+
['^@?\\w'],
54+
['@seamapi/makenew-tsmodule'],
55+
['^lib/'],
56+
['^'],
57+
['^\\.'],
58+
],
59+
},
60+
],
61+
'simple-import-sort/exports': 'error',
62+
},
63+
},
64+
{ ...prettier, files },
65+
]

examples/todo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ export const builder: Builder = {
1919
}
2020

2121
export const handler: Handler<Options> = async ({ x, logger }) => {
22+
await Promise.resolve()
2223
logger.info({ data: todo(x) }, 'TODO')
2324
}

0 commit comments

Comments
 (0)