Skip to content

Commit 3aa83d4

Browse files
author
Vlad Lobachov
authored
Fix workflows, fix lint issues, make npm default manager (#1563)
Fix workflows, fix lint issues, make npm default manager (#1563)
1 parent 643b82c commit 3aa83d4

Some content is hidden

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

54 files changed

+6436
-25703
lines changed

.eslintignore

-8
This file was deleted.

.eslintrc.js

-20
This file was deleted.

.gitattributes

-8
This file was deleted.

.github/workflows/dependabot.yml renamed to .github/dependabot.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: 'Dependency Review'
2-
31
version: 2
42
updates:
53
- package-ecosystem: "npm"

.github/workflows/build.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ name: Build
33

44
on:
55
workflow_call:
6-
secrets:
7-
SEGMENT_ANALYTICS_KEY:
8-
required: true
9-
LD_CLIENT_ID:
10-
required: true
6+
secrets:
7+
SEGMENT_ANALYTICS_KEY:
8+
required: true
9+
LD_CLIENT_ID:
10+
required: true
11+
SENTRY_KEY:
12+
required: true
1113

1214
env:
1315
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }}
1416
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
15-
17+
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
1618

1719
jobs:
1820
build:

.github/workflows/case.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ name: Check file name case
33

44
on:
55
workflow_call:
6-
secrets:
7-
SEGMENT_ANALYTICS_KEY:
8-
required: true
9-
LD_CLIENT_ID:
10-
required: true
6+
secrets:
7+
SEGMENT_ANALYTICS_KEY:
8+
required: true
9+
LD_CLIENT_ID:
10+
required: true
11+
SENTRY_KEY:
12+
required: true
1113

1214
env:
1315
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }}
1416
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
15-
17+
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
1618

1719
jobs:
1820
case:

.github/workflows/crowdin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Crowdin Action
22

33
on:
44
push:
5-
path: ["i18n/**"]
5+
paths: ["i18n/**"]
66
branches: [main]
77

88
permissions: write-all

.github/workflows/lint.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ name: Check for lint, spelling and link errors
33

44
on:
55
workflow_call:
6-
secrets:
7-
SEGMENT_ANALYTICS_KEY:
8-
required: true
9-
LD_CLIENT_ID:
10-
required: true
6+
secrets:
7+
SEGMENT_ANALYTICS_KEY:
8+
required: true
9+
LD_CLIENT_ID:
10+
required: true
11+
SENTRY_KEY:
12+
required: true
1113

1214
env:
1315
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }}
1416
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
15-
17+
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
1618

1719
jobs:
1820
lint:
@@ -24,7 +26,7 @@ jobs:
2426
- uses: actions/checkout@v4
2527

2628
- name: Lint
27-
uses: ConsenSys/docs-gha/lint@main
29+
uses: ConsenSys/docs-gha/lint@cc8b9d9065f5f20b105954f8e806f55c1e235ecd
2830
with:
2931
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032

.github/workflows/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,23 @@ jobs:
2525
secrets:
2626
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
2727
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
28+
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
2829

2930
lint:
3031
name: Lint
3132
uses: ./.github/workflows/lint.yml
3233
secrets:
3334
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
3435
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
36+
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
3537

3638
case:
3739
name: Case
3840
uses: ./.github/workflows/case.yml
3941
secrets:
4042
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
4143
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }}
42-
44+
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
4345

4446
all-jobs-completed:
4547
name: All jobs completed

.gitignore

-12
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@
99
.cache-loader
1010
.idea
1111

12-
# yarn v3 (w/o zero-install)
13-
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
14-
.pnp.*
15-
.yarn/*
16-
!.yarn/patches
17-
!.yarn/plugins
18-
!.yarn/releases
19-
!.yarn/sdks
20-
!.yarn/versions
21-
2212
# Misc
2313
.DS_Store
2414
.env.local
@@ -27,8 +17,6 @@
2717
.env.production.local
2818

2919
npm-debug.log*
30-
yarn-debug.log*
31-
yarn-error.log*
3220
.vercel
3321
.envrc
3422
.env

.stylelintrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"selector-class-pattern": null
5+
}
6+
}

.yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs

-9
This file was deleted.

.yarn/releases/yarn-3.4.1.cjs

-873
This file was deleted.

.yarnrc.yml

-15
This file was deleted.

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ To contribute changes:
7575
> `developer-tools` directories.
7676
> - If you add a new documentation page, edit `wallet-sidebar.js`, `snaps-sidebar.js`,
7777
> `services-sidebar.js`, or `dashboard-sidebar.js` to add the page to the
78-
> [sidebar](https://docs-template.consensys.net/contribute/configure-docusaurus#sidebar).
78+
> [sidebar](https://docs-template.consensys.io/create/configure-docusaurus#sidebar).
7979
> - If you delete, rename, or move a documentation file, add a
8080
> [redirect](https://vercel.com/docs/edge-network/redirects#configuration-redirects).
8181
> - See additional instructions for [updating the interactive API reference](#update-the-interactive-api-reference).
@@ -251,5 +251,5 @@ export SEGMENT_ANALYTICS_KEY="<your key>"
251251
Then build the project in production mode using the following command:
252252

253253
```bash
254-
yarn build && yarn serve
254+
npm run build && npm run serve
255255
```

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ Build the documentation site locally using the following steps.
3535
2. Install dependencies.
3636
3737
```bash
38-
yarn install
38+
npm install
3939
```
4040
4141
3. Start the development server.
4242

4343
```bash
44-
yarn start
44+
npm start
4545
```
4646

4747
Once the server starts, you can view the documentation at `http://localhost:3000`.

eslint.config.mjs

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import react from "eslint-plugin-react";
2+
import tsParser from "@typescript-eslint/parser";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [{
17+
ignores: [
18+
"build",
19+
"**/.eslintrc.js",
20+
"node_modules/*",
21+
".docusaurus/*",
22+
"**/*.md",
23+
"**/*.mdx",
24+
"static/*",
25+
"*.js",
26+
"*.mjs"
27+
],
28+
}, ...compat.extends("plugin:@docusaurus/recommended"), {
29+
plugins: {
30+
react,
31+
},
32+
33+
languageOptions: {
34+
parser: tsParser,
35+
ecmaVersion: "latest",
36+
sourceType: "module",
37+
38+
parserOptions: {
39+
ecmaFeatures: {
40+
jsx: true,
41+
},
42+
43+
project: ["./tsconfig.json"],
44+
tsconfigRootDir: "./",
45+
},
46+
},
47+
48+
rules: {
49+
"@docusaurus/no-untranslated-text": 0,
50+
51+
"react/no-unknown-property": ["error", {
52+
ignore: ["*"],
53+
}],
54+
},
55+
}];

0 commit comments

Comments
 (0)