-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '11303a767df67e67e8007ca20e07894b268e3269' into refactor…
…/ethers-provider-and-signer
- Loading branch information
Showing
205 changed files
with
2,259 additions
and
2,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,67 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"plugin:import/recommended", | ||
"airbnb-typescript/base", | ||
"prettier" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
// required for "type-aware linting" | ||
"project": ["./tsconfig.json"], | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"plugin:import/recommended", | ||
"airbnb-typescript/base" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
// required for "type-aware linting" | ||
"project": [ | ||
"./tsconfig.json" | ||
], | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["import", "@typescript-eslint"], | ||
"settings": { | ||
// resolves imports without file extensions for listed extensions | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".ts", ".tsx"] | ||
} | ||
}, | ||
"plugins": [ | ||
"import", | ||
"@typescript-eslint", | ||
"prettier" | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"rules": { | ||
// ignores need for "react" import | ||
"react/react-in-jsx-scope": "off", | ||
// rule for function component to be framed as function | ||
"react/function-component-definition": [ | ||
2, | ||
{ | ||
"namedComponents": "function-declaration" | ||
} | ||
], | ||
"settings": { | ||
// resolves imports without file extensions for listed extensions | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [ | ||
".ts", | ||
".tsx" | ||
] | ||
} | ||
}, | ||
"react": { | ||
"version": "detect" | ||
"comma-dangle": "off", | ||
"@typescript-eslint/comma-dangle": "off", | ||
"indent": "off", | ||
"@typescript-eslint/indent": "off", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": false | ||
} | ||
}, | ||
"rules": { | ||
// ignores need for "react" import | ||
"react/react-in-jsx-scope": "off", | ||
// rule for function component to be framed as function | ||
"react/function-component-definition": [ | ||
2, | ||
{ | ||
"namedComponents": "function-declaration" | ||
} | ||
], | ||
"comma-dangle": "off", | ||
"@typescript-eslint/comma-dangle": "off", | ||
"indent": "off", | ||
"@typescript-eslint/indent": "off", | ||
// prettier config | ||
"prettier/prettier": [ | ||
1, | ||
{ | ||
"printWidth": 100, | ||
"endOfLine": "auto", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"semi": true, | ||
"arrowParens": "avoid", | ||
"singleAttributePerLine": true | ||
} | ||
], | ||
"import/order": [ | ||
"error", | ||
{ | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": false | ||
} | ||
} | ||
], | ||
// react hook rules | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
// var rules | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": "error", | ||
"@typescript-eslint/no-unused-vars": "warn", | ||
// class rules | ||
"@typescript-eslint/lines-between-class-members": "off" | ||
} | ||
} | ||
} | ||
], | ||
// react hook rules | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
// var rules | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": "error", | ||
"@typescript-eslint/no-unused-vars": "warn", | ||
// class rules | ||
"@typescript-eslint/lines-between-class-members": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Code Syntax | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build GraphQL client | ||
run: npm run graphql:build | ||
- name: Run tests | ||
run: npm run lint | ||
pretty: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build GraphQL client | ||
run: npm run graphql:build | ||
- name: Run tests | ||
run: npm run pretty:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,4 +143,3 @@ jobs: | |
docker rm webapp | ||
docker stop blockchain | ||
docker rm blockchain | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/assets/typechain-types/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"printWidth": 100, | ||
"endOfLine": "auto", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"semi": true, | ||
"arrowParens": "avoid", | ||
"singleAttributePerLine": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.