Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ module.exports = {
"no-console": [2, {
"allow": ["warn", "error", "info"]
}],
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }]
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
"max-classes-per-file": [0]
},
"globals": {
"BigInt": "readonly"
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
},
"devDependencies": {
"@types/jest": "24.0.13",
"@typescript-eslint/eslint-plugin": "2.0.0",
"@typescript-eslint/parser": "2.0.0",
"@typescript-eslint/eslint-plugin": "2.1.0",
"@typescript-eslint/parser": "2.1.0",
"concurrently": "4.1.1",
"cross-env": "5.2.0",
"eslint": "5.16.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "4.3.0",
"eslint-plugin-import": "2.17.3",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint": "6.3.0",
"eslint-config-airbnb": "18.0.1",
"eslint-config-prettier": "6.1.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.0",
"eslint-plugin-react": "7.13.0",
"eslint-plugin-react": "7.14.3",
"husky": "3.0.1",
"lerna": "3.16.2",
"ncp": "2.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/neuron-ui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ module.exports = {
"react/jsx-filename-extension": [1, {
"extensions": [".ts", ".tsx"]
}],
"react/jsx-props-no-spreading": [0]
}
}
2 changes: 1 addition & 1 deletion packages/neuron-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"react-dom": "16.8.6",
"react-i18next": "10.11.0",
"react-router-dom": "5.0.0",
"react-scripts": "3.0.1",
"react-scripts": "3.1.1",
"styled-components": "5.0.0-beta.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/neuron-ui/src/components/ErrorBoundary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const handleError = (error: Error) => {
}

class ErrorBoundary extends Component<{ children: React.ReactChild }, { hasError: boolean }> {
/* eslint-disable react/state-in-constructor */
state = {
hasError: false,
}
Expand Down
2 changes: 2 additions & 0 deletions packages/neuron-ui/src/services/remote/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export * from './wallets'
export * from './networks'
export * from './transactions'

/* eslint-disable no-alert */

export const getLocale = () => {
if (!window.remote) {
console.warn('remote is not supported')
Expand Down
1 change: 1 addition & 0 deletions packages/neuron-ui/src/utils/formatters.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-redeclare */
/* global BigInt */

import { CapacityUnit } from './const'
Expand Down
1 change: 1 addition & 0 deletions packages/neuron-ui/src/utils/validators.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { MAX_NETWORK_NAME_LENGTH } from 'utils/const'
/* eslint-disable no-redeclare */
/* global BigInt */
import { ckbCore } from 'services/chain'
import { MIN_PASSWORD_LENGTH, MAX_PASSWORD_LENGTH, MIN_AMOUNT, MAX_DECIMAL_DIGITS, ErrorCode } from './const'
Expand Down
2,212 changes: 1,537 additions & 675 deletions yarn.lock

Large diffs are not rendered by default.