mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* Adding JS App workflow, Bugfixes in Go Chaincode Initial impl JS App workflow, Added 2 asset sample, with transfer & delete Bugfixes: Bug fix in ReadTransferAgreement Improved logging in Go Chaincode, Improved Chaincode error handling, checks for execution on orgs peer, bug fix, lint issues use addDiscoveryInterest to scope policy, instead of setEndorsingOrganizations Signed-off-by: Sijo Cherian <sijo@ibm.com> * added js app to CI pipeline , and linting matrix Signed-off-by: Sijo Cherian <sijo@ibm.com> Co-authored-by: Sijo Cherian <sijo@ibm.com>
37 lines
945 B
JavaScript
37 lines
945 B
JavaScript
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
module.exports = {
|
|
env: {
|
|
node: true,
|
|
mocha: true
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 8,
|
|
sourceType: 'script'
|
|
},
|
|
extends: "eslint:recommended",
|
|
rules: {
|
|
indent: ['error', 4],
|
|
'linebreak-style': ['error', 'unix'],
|
|
quotes: ['error', 'single'],
|
|
semi: ['error', 'always'],
|
|
'no-unused-vars': ['error', { args: 'none' }],
|
|
'no-console': 'off',
|
|
curly: 'error',
|
|
eqeqeq: 'error',
|
|
'no-throw-literal': 'error',
|
|
strict: 'error',
|
|
'no-var': 'error',
|
|
'dot-notation': 'error',
|
|
'no-tabs': 'error',
|
|
'no-trailing-spaces': 'error',
|
|
'no-use-before-define': 'error',
|
|
'no-useless-call': 'error',
|
|
'no-with': 'error',
|
|
'operator-linebreak': 'error',
|
|
yoda: 'error',
|
|
'quote-props': ['error', 'as-needed']
|
|
}
|
|
};
|