forked from polkadot-cloud/polkadot-staking-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from Cerebellum-Network/feature/sync-with-1.0.…
…1-bumped-polkadotjs Feature/sync with 1.0.1 bumped polkadotjs
- Loading branch information
Showing
588 changed files
with
28,662 additions
and
12,979 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,95 +1,86 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"airbnb", | ||
// "airbnb-typescript", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"arrowFunctions": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"airbnb", | ||
"plugin:prettier/recommended" | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"project": "./tsconfig.json" | ||
}, | ||
"plugins": ["react", "@typescript-eslint", "prefer-arrow-functions"], | ||
"rules": { | ||
"import/no-webpack-loader-syntax": "off", | ||
"react/require-default-props": "off", | ||
"react/no-access-state-in-setstate": "off", | ||
"react/destructuring-assignment": "off", | ||
"react/function-component-definition": "off", | ||
"react/jsx-no-constructed-context-values": "off", | ||
"react/no-array-index-key": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"react/jsx-no-useless-fragment": "off", | ||
"react/static-property-placement": "off", | ||
"no-unused-vars": "off", | ||
"no-param-reassign": "off", | ||
"no-plusplus": "off", | ||
"no-continue": "off", | ||
"no-underscore-dangle": "off", | ||
"no-restricted-syntax": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"import/prefer-default-export": "off", | ||
"consistent-return": "off", | ||
"no-promise-executor-return": "off", | ||
"prefer-destructuring": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"no-nested-ternary": "off", | ||
"no-shadow": "off", | ||
"semi": [2, "always"], | ||
"react/jsx-filename-extension": [ | ||
"warn", | ||
{ | ||
"extensions": [".tsx"] | ||
} | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"arrowFunctions": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"react", | ||
"@typescript-eslint", | ||
"prefer-arrow-functions" | ||
"import/extensions": [ | ||
"error", | ||
"ignorePackages", | ||
{ | ||
"ts": "never", | ||
"tsx": "never" | ||
} | ||
], | ||
"rules": { | ||
"react/no-access-state-in-setstate": "off", | ||
"react/destructuring-assignment": "off", | ||
"react/function-component-definition": "off", | ||
"react/jsx-no-constructed-context-values": "off", | ||
"react/no-array-index-key": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"react/jsx-no-useless-fragment": "off", | ||
"react/static-property-placement": "off", | ||
"no-unused-vars": "off", | ||
"no-param-reassign": "off", | ||
"no-plusplus": "off", | ||
"no-continue": "off", | ||
"max-len": "off", | ||
"no-underscore-dangle": "off", | ||
"no-restricted-syntax": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"react/prop-types": "off", | ||
"arrow-body-style": "off", | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"import/prefer-default-export": "off", | ||
"consistent-return": "off", | ||
"no-promise-executor-return": "off", | ||
"prefer-destructuring": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"camelcase": "off", | ||
"no-nested-ternary": "off", | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"react/jsx-filename-extension": [ | ||
"warn", | ||
{ | ||
"extensions": [ | ||
".tsx" | ||
] | ||
} | ||
], | ||
"import/extensions": [ | ||
"error", | ||
"ignorePackages", | ||
{ | ||
"ts": "never", | ||
"tsx": "never" | ||
} | ||
], | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": [ | ||
"error" | ||
], | ||
"prefer-arrow-functions/prefer-arrow-functions": [ | ||
"warn", | ||
{ | ||
"classPropertiesAllowed": false, | ||
"disallowPrototype": false, | ||
"returnStyle": "unchanged", | ||
"singleReturnOnly": false | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": {} | ||
} | ||
"@typescript-eslint/no-shadow": ["error"], | ||
"prefer-arrow-functions/prefer-arrow-functions": [ | ||
"warn", | ||
{ | ||
"classPropertiesAllowed": false, | ||
"disallowPrototype": false, | ||
"returnStyle": "unchanged", | ||
"singleReturnOnly": false | ||
} | ||
], | ||
"react/prop-types": "off" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": {} | ||
} | ||
} | ||
} | ||
} |
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,16 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: npm | ||
directory: '/' | ||
labels: | ||
- 'automerge' | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 4 | ||
- package-ecosystem: github-actions | ||
directory: '/' | ||
labels: | ||
- 'automerge' | ||
schedule: | ||
interval: daily |
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,21 @@ | ||
queue_rules: | ||
- name: default | ||
conditions: | ||
- check-success=all | ||
- label=automerge | ||
- base=master | ||
- '#changes-requested-reviews-by=0' | ||
- '#approved-reviews-by>=1' | ||
|
||
pull_request_rules: | ||
- name: automatic merge when CI passes on master | ||
conditions: | ||
- check-success=all | ||
- label=automerge | ||
- base=master | ||
- '#changes-requested-reviews-by=0' | ||
- '#approved-reviews-by>=1' | ||
actions: | ||
queue: | ||
name: default | ||
method: merge |
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,39 @@ | ||
name: Staking Dashboard CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
check-license-lines: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Check License Lines | ||
uses: kt3k/[email protected] | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x, 18.x] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn lint | ||
# - run: yarn test # No reason to check for tests now since they do not exist | ||
|
||
all: | ||
# This job ensures that all jobs above (now we have just build) are successful. | ||
needs: [check-license-lines, build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo Success |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
# environment | ||
.env | ||
.vscode | ||
|
||
# dependencies | ||
/node_modules | ||
|
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,4 @@ | ||
{ | ||
"**/*.{ts, tsx}": "// Copyright 2022 @paritytech/polkadot-staking-dashboard authors & contributors", | ||
"ignore": ["testdata", "npm"] | ||
} |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
**/package-lock.json | ||
**/.eslintrc.js | ||
**/tsconfig.json | ||
**/webpack.config.js | ||
**/webpack.config.js | ||
src/img/**/* |
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.