|
a |
|
b/contract/.eslintrc.js |
|
|
1 |
/* |
|
|
2 |
* SPDX-License-Identifier: Apache-2.0 |
|
|
3 |
*/ |
|
|
4 |
|
|
|
5 |
module.exports = { |
|
|
6 |
env: { |
|
|
7 |
node: true, |
|
|
8 |
mocha: true |
|
|
9 |
}, |
|
|
10 |
parserOptions: { |
|
|
11 |
ecmaVersion: 8, |
|
|
12 |
sourceType: 'script' |
|
|
13 |
}, |
|
|
14 |
extends: "eslint:recommended", |
|
|
15 |
rules: { |
|
|
16 |
indent: ['error', 4], |
|
|
17 |
quotes: ['error', 'single'], |
|
|
18 |
semi: ['error', 'always'], |
|
|
19 |
'no-unused-vars': ['error', { args: 'none' }], |
|
|
20 |
'no-console': 'off', |
|
|
21 |
curly: 'error', |
|
|
22 |
eqeqeq: 'error', |
|
|
23 |
'no-throw-literal': 'error', |
|
|
24 |
strict: 'error', |
|
|
25 |
'no-var': 'error', |
|
|
26 |
'dot-notation': 'error', |
|
|
27 |
'no-tabs': 'error', |
|
|
28 |
'no-trailing-spaces': 'error', |
|
|
29 |
'no-use-before-define': 'error', |
|
|
30 |
'no-useless-call': 'error', |
|
|
31 |
'no-with': 'error', |
|
|
32 |
'operator-linebreak': 'error', |
|
|
33 |
yoda: 'error', |
|
|
34 |
'quote-props': ['error', 'as-needed'] |
|
|
35 |
} |
|
|
36 |
}; |