Skip to content

Commit 6c7fdd3

Browse files
committed
update test environment
1 parent f46ed6d commit 6c7fdd3

9 files changed

Lines changed: 834 additions & 623 deletions

File tree

.eslintignore

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

.eslintrc.json

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

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ jobs:
4343
run: |
4444
cd packages/$PACKAGE
4545
npm run test
46-
- uses: smartsquaregmbh/delete-old-packages@v0.8.1
46+
- uses: actions/delete-package-versions@v5
4747
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4848
with:
49-
keep: 5
50-
names: ${{ matrix.package }}
49+
package-type: npm
50+
package-name: ${{ matrix.package }}
51+
min-versions-to-keep: 5
5152
- name: Publish to Github Packages
5253
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5354
run: |
@@ -57,4 +58,4 @@ jobs:
5758
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
5859
cp .npmrc packages/$PACKAGE/.npmrc # for native builds
5960
cd packages/$PACKAGE
60-
npm publish
61+
npm publish --tag latest

docs/src/components/Layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const theme = {
4646
secondary: "#0088bd",
4747
};
4848

49-
export default function Layout({ children, ...rest }) {
49+
export default function Layout({ children }) {
5050
return (
5151
<Root wq={overrides} theme={theme}>
5252
<Container>

eslint.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import pluginReact from "eslint-plugin-react";
4+
import { defineConfig } from "eslint/config";
5+
6+
export default defineConfig([
7+
{
8+
ignores: ["docs/.cache/**", "docs/public/**"],
9+
},
10+
{
11+
files: ["**/*.{js,mjs,cjs,jsx}"],
12+
plugins: { js },
13+
extends: ["js/recommended"],
14+
languageOptions: {
15+
globals: {
16+
...globals.browser,
17+
...globals.jest,
18+
...globals.node,
19+
},
20+
},
21+
rules: {
22+
"react/prop-types": [
23+
2,
24+
{
25+
skipUndeclared: true,
26+
},
27+
],
28+
},
29+
},
30+
pluginReact.configs.flat.recommended,
31+
]);

0 commit comments

Comments
 (0)