-
Notifications
You must be signed in to change notification settings - Fork 85
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 #2419 from nervosnetwork/rc/v0.103.1
- Loading branch information
Showing
136 changed files
with
12,599 additions
and
10,365 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,159 @@ | ||
module.exports = { | ||
"extends": ["airbnb", "plugin:prettier/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"paths": ["src"], | ||
"extensions": [".js", ".ts", ".jsx", ".tsx"] | ||
} | ||
extends: ['airbnb', 'plugin:prettier/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
paths: ['src'], | ||
extensions: ['.js', '.ts', '.jsx', '.tsx'], | ||
}, | ||
}, | ||
react: { | ||
version: 'detect', | ||
}, | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"rules": { | ||
"prettier/prettier": [2, { | ||
"printWidth": 120 | ||
}], | ||
"semi": [2, "never"], | ||
"curly": [2, "all"], | ||
"comma-dangle": [2, { | ||
"arrays": "always-multiline", | ||
"objects": "always-multiline", | ||
"imports": "always-multiline", | ||
"exports": "always-multiline", | ||
"functions": "ignore" | ||
}], | ||
"import/no-extraneous-dependencies": [2, { | ||
"devDependencies": true | ||
}], | ||
"no-unused-vars": "off", | ||
"implicit-arrow-linebreak": "off", | ||
"@typescript-eslint/no-unused-vars": ["error", { | ||
"vars": "local", | ||
"args": "after-used", | ||
"ignoreRestSiblings": false | ||
}], | ||
"arrow-parens": [2, "as-needed"], | ||
"max-len": [2, { | ||
"code": 120, | ||
"ignoreComments": true, | ||
"ignoreTrailingComments": true, | ||
"ignoreUrls": true, | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true, | ||
"ignoreRegExpLiterals": true, | ||
}], | ||
"object-curly-newline": ["error", { | ||
"ObjectExpression": { | ||
"consistent": true | ||
rules: { | ||
'prettier/prettier': [ | ||
2, | ||
{ | ||
printWidth: 120, | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
semi: [2, 'never'], | ||
curly: [2, 'all'], | ||
'comma-dangle': [ | ||
2, | ||
{ | ||
arrays: 'always-multiline', | ||
objects: 'always-multiline', | ||
imports: 'always-multiline', | ||
exports: 'always-multiline', | ||
functions: 'ignore', | ||
}, | ||
], | ||
'import/no-extraneous-dependencies': [ | ||
2, | ||
{ | ||
devDependencies: true, | ||
}, | ||
], | ||
'no-unused-vars': 'off', | ||
'implicit-arrow-linebreak': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
vars: 'local', | ||
args: 'after-used', | ||
ignoreRestSiblings: false, | ||
}, | ||
], | ||
'arrow-parens': [2, 'as-needed'], | ||
'max-len': [ | ||
2, | ||
{ | ||
code: 120, | ||
ignoreComments: true, | ||
ignoreTrailingComments: true, | ||
ignoreUrls: true, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true, | ||
ignoreRegExpLiterals: true, | ||
}, | ||
], | ||
'object-curly-newline': [ | ||
'error', | ||
{ | ||
ObjectExpression: { | ||
consistent: true, | ||
}, | ||
ObjectPattern: { | ||
consistent: true, | ||
}, | ||
ImportDeclaration: { | ||
consistent: true, | ||
}, | ||
ExportDeclaration: { | ||
multiline: true, | ||
minProperties: 3, | ||
}, | ||
}, | ||
"ObjectPattern": { | ||
"consistent": true | ||
], | ||
'no-plusplus': [0], | ||
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], | ||
'max-classes-per-file': [0], | ||
'react/jsx-filename-extension': [ | ||
1, | ||
{ | ||
extensions: ['.ts', '.tsx'], | ||
}, | ||
"ImportDeclaration": { | ||
"consistent": true, | ||
], | ||
'react/jsx-props-no-spreading': [0], | ||
'typescript-eslint/no-angle-bracket-type-assertion': [0], | ||
'no-alert': [0], | ||
'no-console': [ | ||
2, | ||
{ | ||
allow: ['info', 'warn', 'error', 'group', 'groupEnd'], | ||
}, | ||
"ExportDeclaration": { | ||
"multiline": true, | ||
"minProperties": 3 | ||
} | ||
}], | ||
"no-plusplus": [0], | ||
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }], | ||
"max-classes-per-file": [0], | ||
"react/jsx-filename-extension": [1, { | ||
"extensions": [".ts", ".tsx"] | ||
}], | ||
"react/jsx-props-no-spreading": [0], | ||
"typescript-eslint/no-angle-bracket-type-assertion": [0], | ||
"no-alert": [0], | ||
"no-console": [2, { | ||
"allow": ["info", "warn", "error", "group", "groupEnd"] | ||
}], | ||
"no-bitwise": [0] | ||
], | ||
'no-bitwise': [0], | ||
'import/extensions': [ | ||
'error', | ||
'ignorePackages', | ||
{ | ||
ts: 'never', | ||
tsx: 'never', | ||
}, | ||
], | ||
'no-shadow': 'off', | ||
'@typescript-eslint/no-shadow': ['error'], | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'react/prop-types': 'off', | ||
'react/function-component-definition': [ | ||
2, | ||
{ | ||
namedComponents: 'arrow-function', | ||
unnamedComponents: 'arrow-function', | ||
}, | ||
], | ||
'react/require-default-props': 'off', | ||
'@typescript-eslint/ban-types': [ | ||
'error', | ||
{ | ||
extendDefaults: true, | ||
types: { | ||
'{}': false, | ||
Function: false, | ||
}, | ||
}, | ||
], | ||
'no-unsafe-optional-chaining': ['warn', { disallowArithmeticOperators: false }], | ||
'react/no-unstable-nested-components': ['warn', { allowAsProps: true }], | ||
'default-param-last': 'off', | ||
'react/jsx-no-useless-fragment': 'off', | ||
}, | ||
"env": { | ||
"jest": true, | ||
"node": true, | ||
"browser": true | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
'no-undef': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
'react/jsx-no-constructed-context-values': 0, | ||
}, | ||
}, | ||
], | ||
env: { | ||
jest: true, | ||
node: true, | ||
browser: true, | ||
}, | ||
"globals": { | ||
"BigInt": "readonly" | ||
globals: { | ||
BigInt: 'readonly', | ||
}, | ||
} |
Oops, something went wrong.
0fb03b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packaging for test is done in 2480314218
0fb03b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'
'### Downloads'
''
'OS | Arch | Package | SHA256 Checksum'
'-- | -- | -- | --'
'Windows | x64 | exe |
b7adabb816958e7341622fd62bdaa1c092eca7574e211b94f8e6df86cf324aa7
''macOS | x64 | zip |
fc59e7ffc0ac03ef512d69c598c554bec6418fbf42192f72acc06c23e658cec0
''macOS | x64 | DMG |
b038dec53efe67a6281e60f08eb662a245aa35c8c86d53cc994b60f1357df686
''Linux | x64 | AppImage |
05fbbed25275df60e4ba3457c9748f0a5f07b9749d17a0ca2226e409cf96a2d6
0fb03b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packaging for test is done in 2480367491