isdata-customer-sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +8 -0
- package/.eslintrc.js +42 -0
- package/babel.config.js +12 -0
- package/dist/index.js +4818 -0
- package/package.json +51 -0
- package/src/api/request.js +64 -0
- package/src/index.js +126 -0
- package/webpack.config.js +28 -0
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const isEnvProduction = process.env.NODE_ENV === "production"
|
|
2
|
+
const debuggerMode = !(process.env.VUE_APP_NEEDSOURCEMAP === "false")
|
|
3
|
+
const productionEslintConfig = () => {
|
|
4
|
+
return (isEnvProduction && !debuggerMode)
|
|
5
|
+
//生产环境
|
|
6
|
+
? {"no-debugger": [0]}
|
|
7
|
+
//开发环境
|
|
8
|
+
: { "no-debugger": [0] }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
"root": true,
|
|
13
|
+
"extends": [
|
|
14
|
+
"plugin:vue/essential", "eslint:recommended"
|
|
15
|
+
],
|
|
16
|
+
"env": {
|
|
17
|
+
"browser": true, "es6": true, "node": true
|
|
18
|
+
},
|
|
19
|
+
"parserOptions": {
|
|
20
|
+
"parser": "@babel/eslint-parser", "ecmaVersion": 10, "sourceType": "module", "ecmaFeatures": {
|
|
21
|
+
"jsx": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"rules": {
|
|
25
|
+
"vue/multi-word-component-names": [
|
|
26
|
+
0, {
|
|
27
|
+
"ignores": []
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"no-unused-vars": [
|
|
31
|
+
1, {
|
|
32
|
+
"vars": "local", "args": "none"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
//未定义变量不能使用
|
|
36
|
+
"no-undef": 1,
|
|
37
|
+
//对象字面量项尾不能有逗号
|
|
38
|
+
"comma-dangle": [1, "never"]
|
|
39
|
+
, ...productionEslintConfig()
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|