-
Notifications
You must be signed in to change notification settings - Fork 51
/
.eslintrc.js
40 lines (40 loc) · 1.2 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
jest: true,
},
extends: 'airbnb-base',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
BigInt: true,
wx: true,
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
'arrow-parens': ['error', 'as-needed'],
'arrow-body-style': 0, // for readable lambda
'class-methods-use-this': 0,
'func-names': 0, // for function without name
'function-paren-newline': 0, // for readable arguments
'linebreak-style': 0, // for windows and mac
'max-classes-per-file': 0,
'max-len': 0, // for jsdoc
'no-await-in-loop': 0, // for loop request
'no-else-return': 0,
'no-param-reassign': 0, // for merge default Value
'no-restricted-syntax': 0, // for `for(... of ...)`
'no-underscore-dangle': 0, // for private attribute
'no-use-before-define': 0, // for recursive parse
'object-curly-newline': 0, // for object in one line
'object-property-newline': 0, // for long object keys
'operator-linebreak': 0, // for `'string' +\n`
'prefer-destructuring': 0,
'quote-props': 0, // for string key
'yoda': 0, // for `min < number && number < max`
},
};