Skip to content

Commit 47447f3

Browse files
Merge pull request #1282 from Chia-Network/refactor/refactor-base
Refactor/refactor base
2 parents 5fe4948 + ea16a8d commit 47447f3

File tree

437 files changed

+24142
-101452
lines changed

Some content is hidden

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

437 files changed

+24142
-101452
lines changed

.babelrc

-14
This file was deleted.

.env

-2
This file was deleted.

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.config.js

.eslintrc.cjs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:react-hooks/recommended",
8+
],
9+
ignorePatterns: ["dist", ".eslintrc.cjs"],
10+
parser: "@typescript-eslint/parser",
11+
plugins: ["react-refresh"],
12+
rules: {
13+
"react-refresh/only-export-components": [
14+
"warn",
15+
{ allowConstantExport: true },
16+
],
17+
// Disabling the rules related to enforcing types
18+
"@typescript-eslint/explicit-module-boundary-types": "off",
19+
"@typescript-eslint/no-explicit-any": "off",
20+
"@typescript-eslint/no-implicit-any-catch": "off",
21+
"@typescript-eslint/ban-ts-comment": "off",
22+
},
23+
};

.eslintrc.json

-33
This file was deleted.

.github/workflows/build-installers.yaml

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- '**'
7+
branches:
8+
- refactor/refactor-base #remove this once rebuild is merged
79
pull_request:
810
branches:
911
- '**'
@@ -27,10 +29,10 @@ jobs:
2729
- name: Checkout Code
2830
uses: actions/checkout@v3
2931

30-
- name: Setup Node 18.16
32+
- name: Setup Node 20
3133
uses: actions/setup-node@v3
3234
with:
33-
node-version: '18.16'
35+
node-version: '20.10'
3436

3537
- name: Install Husky
3638
run: npm install --save-dev husky
@@ -76,10 +78,10 @@ jobs:
7678
- name: Checkout Code
7779
uses: actions/checkout@v3
7880

79-
- name: Setup Node 18.16
81+
- name: Setup Node 20.10
8082
uses: actions/setup-node@v3
8183
with:
82-
node-version: '18.16'
84+
node-version: '20.10'
8385

8486
- name: Install Husky
8587
run: npm install --save-dev husky
@@ -125,10 +127,10 @@ jobs:
125127
- name: Checkout Code
126128
uses: actions/checkout@v3
127129

128-
- name: Setup Node 18.16
130+
- name: Setup Node 20.10
129131
uses: actions/setup-node@v3
130132
with:
131-
node-version: '18.16'
133+
node-version: '20.10'
132134

133135
- name: Install Husky
134136
run: npm install --save-dev husky
@@ -160,10 +162,10 @@ jobs:
160162
- name: Checkout Code
161163
uses: actions/checkout@v3
162164

163-
- name: Setup Node 18.16
165+
- name: Setup Node 20.10
164166
uses: actions/setup-node@v3
165167
with:
166-
node-version: '18.16'
168+
node-version: '20.10'
167169

168170
- name: Install Husky
169171
run: npm install --save-dev husky

.gitignore

+28-20
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
tsconfig.tsbuildinfo
210

3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
11+
node_modules
12+
build
13+
dist
14+
dist-ssr
15+
*.local
716

8-
# testing
9-
/coverage
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
1027

11-
# production
12-
/build
13-
/dist
1428

15-
# misc
16-
.DS_Store
17-
.env.local
18-
.env.development.local
19-
.env.test.local
20-
.env.production.local
21-
.idea/*
29+
# Contentlayer
30+
.contentlayer
2231

23-
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
32+
.package-lock.json
33+
.history

.husky/commit-msg

-4
This file was deleted.

.husky/pre-commit

-4
This file was deleted.

.lintstagedrc

-7
This file was deleted.

.mocharc.yaml

-1
This file was deleted.

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.16.0
1+
20.16

.prettierrc.js .prettierrc.cjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
module.exports = {
22
bracketSpacing: true,
3-
jsxBracketSameLine: true,
43
singleQuote: true,
54
trailingComma: 'all',
6-
arrowParens: 'avoid',
75
endOfLine: 'auto',
8-
};
6+
printWidth: 120
7+
}

0 commit comments

Comments
 (0)