Skip to content

Commit 5dc0470

Browse files
authored
Merge pull request #743 from dev-protocol/upgrades
Ecosystem upgrades
2 parents 71721c3 + 89b2fef commit 5dc0470

File tree

15 files changed

+8027
-5749
lines changed

15 files changed

+8027
-5749
lines changed

.astro/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="astro/client" />

.eslintignore

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

.eslintrc.json

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

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [18.x]
11+
node-version: [20.x]
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -18,7 +18,9 @@ jobs:
1818
node-version: ${{ matrix.node-version }}
1919

2020
- name: install deps
21-
run: yarn
21+
run: |
22+
corepack enable
23+
yarn
2224
2325
- name: lint
2426
run: yarn lint

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,12 @@ local.settings.json
9595

9696
# use yarn as a package manager
9797
package-lock.json
98+
.yarn/*
99+
!.yarn/cache
100+
!.yarn/patches
101+
!.yarn/plugins
102+
!.yarn/releases
103+
!.yarn/sdks
104+
!.yarn/versions
105+
98106
.vercel

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn lint

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
dist
3+
.yarn

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { config } from 'dotenv'
22
import { defineConfig } from 'astro/config'
33
import vercel from '@astrojs/vercel/serverless'
44

5-
// eslint-disable-next-line functional/no-expression-statements
5+
66
config()
77

88
export default defineConfig({

eslint.config.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import eslint from '@eslint/js'
2+
import tseslint from 'typescript-eslint'
3+
import prettier from 'eslint-config-prettier'
4+
import functional from 'eslint-plugin-functional'
5+
import globals from 'globals'
6+
7+
export default tseslint.config(
8+
{
9+
files: ['**/*.{ts,tsx,mts}'],
10+
extends: [
11+
eslint.configs.recommended,
12+
...tseslint.configs.recommended,
13+
functional.configs.recommended,
14+
prettier,
15+
],
16+
languageOptions: {
17+
parser: tseslint.parser,
18+
parserOptions: {
19+
projectService: true,
20+
},
21+
globals: { ...globals.browser, ...globals.node },
22+
},
23+
rules: {
24+
'functional/prefer-immutable-types': 'warn',
25+
'no-unused-vars': 'off',
26+
'@typescript-eslint/triple-slash-reference': 'warn',
27+
},
28+
},
29+
{
30+
files: ['**/*.test.ts', '**/*.{js,mjs,cjs}'],
31+
extends: [functional.configs.off],
32+
rules: {
33+
'@typescript-eslint/no-explicit-any': 'off',
34+
},
35+
},
36+
{ ignores: ['dist', '.yarn', '.preview'] },
37+
)

0 commit comments

Comments
 (0)