Skip to content

Commit 32e5768

Browse files
authored
Maint/package bumps (#15)
1 parent fe4a69e commit 32e5768

Some content is hidden

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

63 files changed

+29033
-26192
lines changed

.github/workflows/pr-check-code.yaml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,36 @@ on:
44
pull_request:
55
paths:
66
- "subgraphs/**"
7+
78
jobs:
8-
npm-build:
9+
define-matrix:
910
runs-on: ubuntu-latest
11+
12+
outputs:
13+
subgraphs: ${{ steps.subgraphs.outputs.subgraphs }}
1014
steps:
1115
- uses: actions/checkout@v4
16+
- name: Define Subgraphs
17+
id: subgraphs
18+
run: |
19+
# Find all subfolders except "node_modules" and convert them into an array
20+
subfolders=($(find subgraphs -mindepth 1 -maxdepth 1 -type d ! -name "node_modules" -exec basename {} \;))
1221
13-
- uses: actions/setup-node@v3
22+
# Print the array
23+
echo "subgraphs=$(printf '%s\n' "${subfolders[@]}" | jq -R . | jq -s -c .)" >> "$GITHUB_OUTPUT"
24+
npm-build:
25+
runs-on: ubuntu-latest
26+
needs: define-matrix
27+
strategy:
28+
matrix:
29+
subgraphs: ${{ fromJson(needs.define-matrix.outputs.subgraphs) }}
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
1433
with:
15-
node-version: 18.x
34+
node-version: 22.x
1635
cache: "npm"
1736

18-
- run: npm ci
19-
20-
- run: npm run build
37+
- run: npm ci
38+
- run: npm run build -w subgraphs/${{ matrix.subgraphs }} --if-present
2139

client/.eslintrc.cjs

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

client/eslint.config.mjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import { fixupConfigRules } from "@eslint/compat";
3+
import reactRefresh from "eslint-plugin-react-refresh";
4+
import globals from "globals";
5+
import tsParser from "@typescript-eslint/parser";
6+
import path from "node:path";
7+
import { fileURLToPath } from "node:url";
8+
import js from "@eslint/js";
9+
import { FlatCompat } from "@eslint/eslintrc";
10+
11+
const __filename = fileURLToPath(import.meta.url);
12+
const __dirname = path.dirname(__filename);
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
export default defineConfig([globalIgnores(["**/dist", "**/.eslintrc.cjs"]), {
20+
extends: fixupConfigRules(compat.extends(
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
"plugin:react/recommended",
24+
"plugin:react/jsx-runtime",
25+
"plugin:react-hooks/recommended",
26+
"prettier",
27+
)),
28+
settings: {
29+
react: {
30+
version: "detect",
31+
}
32+
},
33+
plugins: {
34+
"react-refresh": reactRefresh,
35+
},
36+
37+
languageOptions: {
38+
globals: {
39+
...globals.browser,
40+
},
41+
42+
parser: tsParser,
43+
},
44+
45+
rules: {
46+
"react-refresh/only-export-components": ["warn", {
47+
allowConstantExport: true,
48+
}],
49+
},
50+
}]);

0 commit comments

Comments
 (0)