fabric-samples/asset-transfer-private-data/chaincode-javascript/.eslintrc.js
abdou.chakhkhar 0aa7b52666 eslint change
Signed-off-by: abdou.chakhkhar <abdelmoula.chakhkhar@uit.ac.ma>
2022-08-29 11:17:12 +01:00

33 lines
834 B
JavaScript

/*
* SPDX-License-Identifier: Apache-2.0
*/
module.exports = {
env: {
node: true,
mocha: true,
es6: true
},
parserOptions: {
ecmaVersion: 8,
sourceType: 'script'
},
rules: {
indent: ['error', 4],
'linebreak-style': ['error', 'unix'],
'no-unused-vars': ['error', { args: 'none' }],
'no-console': 'off',
curly: 'error',
'no-throw-literal': 'error',
strict: 'error',
'no-var': 'error',
'dot-notation': 'error',
'no-use-before-define': 'error',
'no-useless-call': 'error',
'no-with': 'error',
'operator-linebreak': 'error',
yoda: 'error',
'quote-props': ['error', 'as-needed'],
'no-constant-condition': ["error", { "checkLoops": false }]
}
};