Skip to content

Commit 27fcd07

Browse files
author
Alexandra Tran
committed
Merge branch 'main' into plugin-api-poc
Signed-off-by: Alexandra Tran <[email protected]> # Conflicts: # docusaurus.config.js # project-words.txt # src/components/HomepageCards/index.tsx # versioned_sidebars/version-24.3.0-sidebars.json
2 parents a17d48d + 4d815db commit 27fcd07

File tree

1,979 files changed

+26049
-292897
lines changed

Some content is hidden

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

1,979 files changed

+26049
-292897
lines changed

.cspell.json

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

.eslintrc.js

Lines changed: 10 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,17 @@
11
module.exports = {
2-
env: {
3-
browser: true,
4-
es2021: true,
5-
},
62
extends: [
7-
"plugin:react/recommended",
8-
"airbnb-typescript",
9-
"plugin:import/typescript",
10-
// @NOTE: Make sure this is always the last element in the array.
11-
"plugin:prettier/recommended",
12-
],
13-
parser: "@typescript-eslint/parser",
14-
parserOptions: {
15-
ecmaVersion: 2020,
16-
sourceType: "module",
17-
ecmaFeatures: {
18-
jsx: true,
19-
},
20-
project: ["./tsconfig.json"],
21-
},
22-
plugins: [
23-
"react",
24-
"react-hooks",
25-
"jsx-a11y",
26-
"import",
27-
"prettier",
28-
"@typescript-eslint",
3+
"plugin:@docusaurus/recommended",
294
],
30-
settings: {
31-
react: {
32-
pragma: "React", // Pragma to use, default to "React"
33-
fragment: "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
34-
version: "detect", // React version. "detect" automatically picks the version you have installed.
35-
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
36-
// default to latest and warns if missing
37-
// It will default to "detect" in the future
38-
},
39-
"import/parsers": {
40-
"@typescript-eslint/parser": [".ts", ".tsx"],
41-
},
42-
"import/resolver": {
43-
typescript: {},
5+
"parser": "@typescript-eslint/parser",
6+
"parserOptions": {
7+
"ecmaVersion": "latest",
8+
"sourceType": "module",
9+
"ecmaFeatures": {
10+
"jsx": true
4411
},
12+
project: ["./tsconfig.json"]
4513
},
4614
rules: {
47-
"import/prefer-default-export": 0,
48-
"react/prop-types": 0,
49-
"import/no-unresolved": [
50-
"error",
51-
{ ignore: ["^@theme", "^@docusaurus", "^@site"] },
52-
],
53-
"no-nested-ternary": 0,
54-
"no-console": 0,
55-
"no-unused-vars": 0,
56-
"no-use-before-define": 0,
57-
"arrow-body-style": 0,
58-
"jsx-a11y/anchor-is-valid": 0,
59-
"jsx-a11y/no-static-element-interactions": 0,
60-
"jsx-a11y/click-events-have-key-events": 0,
61-
"@typescript-eslint/no-unused-expressions": 0,
62-
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
63-
"@typescript-eslint/no-use-before-define": "warn",
64-
"react/require-default-props": 0,
65-
"react/jsx-props-no-spreading": 0,
66-
"react/button-has-type": 0,
67-
"jsx-a11y/label-has-associated-control": [
68-
"error",
69-
{
70-
labelComponents: [],
71-
labelAttributes: [],
72-
controlComponents: [],
73-
assert: "either",
74-
depth: 2,
75-
},
76-
],
77-
"@typescript-eslint/naming-convention": [
78-
"error",
79-
{
80-
selector: "variableLike",
81-
leadingUnderscore: "forbid",
82-
trailingUnderscore: "forbid",
83-
format: ["camelCase", "PascalCase", "UPPER_CASE"],
84-
},
85-
],
86-
"import/extensions": 0,
15+
'@docusaurus/no-untranslated-text': 0
8716
},
88-
};
17+
};

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Description
2+
<!-- Briefly describe the changes made in your pull request (PR) below. -->
3+
4+
-
5+
6+
### Issue(s) fixed
7+
<!-- Include the issue number that this PR fixes. {Example: Fixes #123} -->
8+
9+
Fixes #
10+
11+
### Preview
12+
<!-- Provide a PR preview link to the page(s) changed. {Example: https://besu-docs-git-100-branch-hyperledger.vercel.app} -->
13+
14+
-

.github/workflows/build-lint.yml

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

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Build
16+
uses: ConsenSys/github-actions/docs-build@main
17+
with:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+

.github/workflows/dco.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: DCO
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
dco_check:
7+
runs-on: ubuntu-latest
8+
name: DCO
9+
if: ${{ github.actor != 'dependabot[bot]' }}
10+
steps:
11+
- name: Get PR Commits
12+
id: 'get-pr-commits'
13+
uses: tim-actions/get-pr-commits@198af03565609bb4ed924d1260247b4881f09e7d
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
- name: DCO Check
17+
uses: tim-actions/dco@f2279e6e62d5a7d9115b0cb8e837b777b1b02e21
18+
with:
19+
commits: ${{ steps.get-pr-commits.outputs.commits }}

.github/workflows/link-check.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^http(s)?://localhost"
5+
},
6+
{
7+
"pattern": "^http(s)?://127.0.0.1"
8+
},
9+
{
10+
"comment": "This is a private repos",
11+
"pattern": "^http(s)?://gitlab.com/ConsenSys/"
12+
},
13+
{
14+
"comment": "This is a private repos",
15+
"pattern": "^http(s)?://github.com/ConsenSys/orchestrate"
16+
},
17+
{
18+
"comment": "This is a private repo",
19+
"pattern": "^http(s)?://github.com/INFURA/docs(?:/(issues|pulls))?"
20+
},
21+
{
22+
"comment": "Consensys.net now has DDoS attack protection",
23+
"pattern": "^http(s)?://consensys.net"
24+
},
25+
{
26+
"comment": "Exclude addresses with extra data variable placeholders (not yet replaced when checking for links)",
27+
"pattern": "{{[a-zA-Z_\\-\\.\\[\\]\\']+}}"
28+
},
29+
{
30+
"comment": "Exclude Infura endpoints that require an API key",
31+
"pattern": "^https?:\\/\\/[a-zA-Z0-9.-]*\\.infura\\.io\\/v3\\/.*$"
32+
},
33+
{
34+
"pattern": "^http(s)?://.+.zendesk.com"
35+
},
36+
{
37+
"pattern": "^http(s)?://.+.etherscan.io"
38+
},
39+
{
40+
"pattern": "^http(s)?://help.figma.com"
41+
},
42+
{
43+
"pattern": "^http(s)?://(docs\\.)?metamask\\.io"
44+
},
45+
{
46+
"comment": "Skip URLs in the redoc macro with entity",
47+
"pattern": "http(s)?://.+\\&\\#39\\;"
48+
},
49+
{
50+
"comment": "Skip URLs in the redoc macro with char",
51+
"pattern": "http(s)?://.+'"
52+
}
53+
],
54+
"httpHeaders": [
55+
{
56+
"urls": [
57+
"https://github.com/",
58+
"https://guides.github.com/",
59+
"https://help.github.com/",
60+
"https://docs.github.com/"
61+
],
62+
"headers": {
63+
"Accept-Encoding": "zstd, br, gzip, deflate"
64+
}
65+
}
66+
],
67+
"timeout": "30s",
68+
"aliveStatusCodes": [200, 206, 403],
69+
"retryOn429": true
70+
}

.github/workflows/links.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Check for link errors
3+
4+
on:
5+
workflow_call:
6+
7+
jobs:
8+
linkCheck:
9+
name: Link Checking
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
file-extensions: [".md", ".mdx"]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: LinkCheck
17+
uses: ConsenSys/github-actions/docs-link-check@main
18+
with:
19+
FILE_EXTENSION: ${{ matrix.file-extensions }}

.github/workflows/lint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Check for lint errors
3+
4+
on:
5+
workflow_call:
6+
7+
jobs:
8+
lint:
9+
name: Lint Code Base
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Lint
17+
uses: ConsenSys/github-actions/docs-lint-all@main

0 commit comments

Comments
 (0)