mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Change-Id: I235cb62df492b7713bb1c355b7457f679903bd34 Signed-off-by: Anthony O'Dowd <a_o-dowd@uk.ibm.com>
37 lines
941 B
JavaScript
37 lines
941 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']
|
|
}
|
|
};
|