-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path.eslintrc.js
42 lines (42 loc) · 886 Bytes
/
.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
41
42
module.exports = {
env: {
browser: true,
es6: true
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
Component: 'readonly',
getApp: 'writable',
roundFun: 'writable',
Page: 'writable',
wx: 'writable',
getCurrentPages: 'readonly',
App: 'readonly'
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'no-console': 0,
'semi': ["error", "never"],
'import/no-unresolved': 0,
'consistent-return': 0,
'no-underscore-dangle': 0,
'max-len': 0,
'no-nested-ternary': 0,
'no-param-reassign': 0,
'new-cap': 0,
'func-names': 0,
'camelcase': 0,
'import/no-extraneous-dependencies': 0,
'no-plusplus': 0,
'comma-dangle': ["error", "never"],
eqeqeq: 0,
'linebreak-style': ["error", "windows"]
},
};