mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* initial commit Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> Code refactor Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * readme Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * lint fix Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * adopted best practises Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * code refactor Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * updated azure pipeline to include the app Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * mapped json and client object Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * Moved contract interactions to contractWrapper Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * salt value unexported Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * moved try catch from contract wrapper to app Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * contract wrapper refactor moved interfaces from utils to contract wrapper Signed-off-by: sapthasurendran <saptha.surendran@ibm.com> * exported data objects Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
102 lines
No EOL
2.3 KiB
JSON
102 lines
No EOL
2.3 KiB
JSON
{
|
|
"env": {
|
|
"node": true,
|
|
"es6": true
|
|
},
|
|
"root": true,
|
|
"ignorePatterns": [
|
|
"dist/"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
4
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"**/*.ts"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"impliedStrict": true
|
|
},
|
|
"project": [
|
|
"./tsconfig.json"
|
|
]
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/comma-spacing": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/explicit-function-return-type": [
|
|
"error",
|
|
{
|
|
"allowExpressions": true
|
|
}
|
|
],
|
|
"@typescript-eslint/func-call-spacing": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/member-delimiter-style": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/indent": [
|
|
"error",
|
|
4,
|
|
{
|
|
"SwitchCase": 0
|
|
}
|
|
],
|
|
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/prefer-optional-chain": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/prefer-reduce-type-parameter": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/prefer-return-this-type": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"@typescript-eslint/type-annotation-spacing": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/semi": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/space-before-function-paren": [
|
|
"error",
|
|
{
|
|
"anonymous": "never",
|
|
"named": "never",
|
|
"asyncArrow": "always"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |