Skip to content

Commit 5cdef36

Browse files
committed
Merge remote-tracking branch 'makenew/public' into eslint-v10
2 parents 836ff9f + e047444 commit 5cdef36

File tree

13 files changed

+1995
-1716
lines changed

13 files changed

+1995
-1716
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
@@ -40,7 +40,7 @@ jobs:
4040
- name: Generate code
4141
run: npm run generate
4242
- name: Commit
43-
uses: stefanzweifel/git-auto-commit-action@v5
43+
uses: stefanzweifel/git-auto-commit-action@v6
4444
with:
4545
commit_message: 'ci: Generate code'
4646
commit_user_name: ${{ secrets.GIT_USER_NAME }}

.github/workflows/semantic-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ run-name: Semantic Release from ${{ github.ref_name }}
66
on:
77
push:
88
branches:
9-
- '**'
9+
- 'main'
10+
- 'next'
11+
- 'next-major'
12+
- 'beta'
13+
- 'alpha'
14+
- '*.x'
1015

1116
concurrency:
1217
group: ${{ github.workflow }}-${{ github.ref_name }}

.gitignore

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ package
3232
# Temporary development files
3333
tmp
3434

35-
# Yarn lockfile (only package-lock.json supported)
35+
# Other lockfiles (only package-lock.json supported)
36+
pnpm-lock.yaml
3637
yarn.lock
3738

3839
# Logs
@@ -42,7 +43,6 @@ npm-debug.log*
4243
yarn-debug.log*
4344
yarn-error.log*
4445
lerna-debug.log*
45-
.pnpm-debug.log*
4646

4747
# Diagnostic reports (https://nodejs.org/api/report.html)
4848
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@@ -94,12 +94,6 @@ web_modules/
9494
# Optional stylelint cache
9595
.stylelintcache
9696

97-
# Microbundle cache
98-
.rpt2_cache/
99-
.rts2_cache_cjs/
100-
.rts2_cache_es/
101-
.rts2_cache_umd/
102-
10397
# Optional REPL history
10498
.node_repl_history
10599

@@ -111,10 +105,8 @@ web_modules/
111105

112106
# dotenv environment variable files
113107
.env
114-
.env.development.local
115-
.env.test.local
116-
.env.production.local
117-
.env.local
108+
.env.*
109+
!.env.example
118110

119111
# parcel-bundler cache (https://parceljs.org/)
120112
.cache
@@ -141,6 +133,15 @@ dist
141133
.temp
142134
.cache
143135

136+
# Sveltekit cache directory
137+
.svelte-kit/
138+
139+
# vitepress build output
140+
**/.vitepress/dist
141+
142+
# vitepress cache directory
143+
**/.vitepress/cache
144+
144145
# Docusaurus cache and generated files
145146
.docusaurus
146147

@@ -153,18 +154,27 @@ dist
153154
# DynamoDB Local files
154155
.dynamodb/
155156

157+
# Firebase cache directory
158+
.firebase/
159+
156160
# TernJS port file
157161
.tern-port
158162

159163
# Stores VSCode versions used for testing VSCode extensions
160164
.vscode-test
161165

162-
# yarn v2
163-
.yarn/cache
164-
.yarn/unplugged
165-
.yarn/build-state.yml
166-
.yarn/install-state.gz
166+
# yarn v3
167167
.pnp.*
168+
.yarn/*
169+
!.yarn/patches
170+
!.yarn/plugins
171+
!.yarn/releases
172+
!.yarn/sdks
173+
!.yarn/versions
174+
175+
# Vite logs files
176+
vite.config.js.timestamp-*
177+
vite.config.ts.timestamp-*
168178

169179
# Windows
170180

.prettierignore

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
!src/**/*.d.ts
1313
!ava.config.js
1414

15+
# Codegen
16+
CODEGEN.md
17+
1518
# Build directories
1619
docs
1720
package
@@ -29,7 +32,8 @@ package
2932
# Temporary development files
3033
tmp
3134

32-
# Yarn lockfile (only package-lock.json supported)
35+
# Other lockfiles (only package-lock.json supported)
36+
pnpm-lock.yaml
3337
yarn.lock
3438

3539
# Logs
@@ -39,7 +43,6 @@ npm-debug.log*
3943
yarn-debug.log*
4044
yarn-error.log*
4145
lerna-debug.log*
42-
.pnpm-debug.log*
4346

4447
# Diagnostic reports (https://nodejs.org/api/report.html)
4548
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@@ -91,12 +94,6 @@ web_modules/
9194
# Optional stylelint cache
9295
.stylelintcache
9396

94-
# Microbundle cache
95-
.rpt2_cache/
96-
.rts2_cache_cjs/
97-
.rts2_cache_es/
98-
.rts2_cache_umd/
99-
10097
# Optional REPL history
10198
.node_repl_history
10299

@@ -108,10 +105,8 @@ web_modules/
108105

109106
# dotenv environment variable files
110107
.env
111-
.env.development.local
112-
.env.test.local
113-
.env.production.local
114-
.env.local
108+
.env.*
109+
!.env.example
115110

116111
# parcel-bundler cache (https://parceljs.org/)
117112
.cache
@@ -138,6 +133,15 @@ dist
138133
.temp
139134
.cache
140135

136+
# Sveltekit cache directory
137+
.svelte-kit/
138+
139+
# vitepress build output
140+
**/.vitepress/dist
141+
142+
# vitepress cache directory
143+
**/.vitepress/cache
144+
141145
# Docusaurus cache and generated files
142146
.docusaurus
143147

@@ -150,18 +154,27 @@ dist
150154
# DynamoDB Local files
151155
.dynamodb/
152156

157+
# Firebase cache directory
158+
.firebase/
159+
153160
# TernJS port file
154161
.tern-port
155162

156163
# Stores VSCode versions used for testing VSCode extensions
157164
.vscode-test
158165

159-
# yarn v2
160-
.yarn/cache
161-
.yarn/unplugged
162-
.yarn/build-state.yml
163-
.yarn/install-state.gz
166+
# yarn v3
164167
.pnp.*
168+
.yarn/*
169+
!.yarn/patches
170+
!.yarn/plugins
171+
!.yarn/releases
172+
!.yarn/sdks
173+
!.yarn/versions
174+
175+
# Vite logs files
176+
vite.config.js.timestamp-*
177+
vite.config.ts.timestamp-*
165178

166179
# Windows
167180

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

eslint.config.ts

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

0 commit comments

Comments
 (0)