@tongfun/tf-widget 0.1.70 → 0.1.73

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/.env ADDED
@@ -0,0 +1,5 @@
1
+ VUE_APP_BASIC = '/TfWidget'
2
+
3
+ # 需要远程调用组件库时,改为true
4
+ # VUE_APP_ISREMOTE = true
5
+ VUE_APP_ISREMOTE = false
package/.eslintrc.js CHANGED
@@ -1,18 +1,62 @@
1
1
  module.exports = {
2
2
  root: true,
3
3
  env: {
4
- node: true
4
+ browser: true,
5
+ node: true,
6
+ es6: true
5
7
  },
6
8
  extends: [
7
- 'plugin:vue/essential',
8
- '@vue/standard'
9
+ 'plugin:vue/recommended',
10
+ 'eslint:recommended'
9
11
  ],
10
12
  parserOptions: {
11
- parser: 'babel-eslint'
13
+ parser: '@babel/eslint-parser'
12
14
  },
13
15
  rules: {
14
16
  'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
15
17
  'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16
- 'space-before-function-paren': [2, 'never'],
18
+ 'no-unused-vars': 'off',
19
+ 'no-useless-escape': 'off',
20
+ 'vue/no-mutating-props': 'off',
21
+ 'vue/attribute-hyphenation': 'error',
22
+ 'vue/multi-word-component-names': 'off',
23
+ 'vue/no-reserved-component-names': 'off',
24
+ 'vue/no-async-in-computed-properties': 'off',
25
+ 'vue/singleline-html-element-content-newline': 'off',
26
+ 'vue/multiline-html-element-content-newline':'off',
27
+ 'vue/max-attributes-per-line': ['error', {
28
+ 'singleline': 10,
29
+ 'multiline': 1
30
+ }],
31
+ 'quotes': [2, 'single', {
32
+ 'avoidEscape': true,
33
+ 'allowTemplateLiterals': true
34
+ }],
35
+ 'semi': [2, 'never'],
36
+ 'semi-spacing': [2, {
37
+ 'before': false,
38
+ 'after': true
39
+ }],
40
+ 'comma-dangle': [2, 'never'],
41
+ 'arrow-spacing': [2, {
42
+ 'before': true,
43
+ 'after': true
44
+ }],
45
+ 'space-before-blocks': [2, 'always'],
46
+ 'space-infix-ops': 2,
47
+ 'space-unary-ops': [2, {
48
+ 'words': true,
49
+ 'nonwords': false
50
+ }],
51
+ 'keyword-spacing': [2, {
52
+ 'before': true,
53
+ 'after': true
54
+ }],
55
+ 'indent': [2, 2, {
56
+ 'SwitchCase': 1
57
+ }],
58
+ 'no-multiple-empty-lines': [2, {
59
+ 'max': 1
60
+ }]
17
61
  }
18
62
  }