@weitutech/by-components 1.1.1 → 1.1.2

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/.babelrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "presets": ["@babel/preset-env"],
3
+ "plugins": [
4
+ "@babel/plugin-proposal-nullish-coalescing-operator",
5
+ "@babel/plugin-proposal-optional-chaining"
6
+ ]
7
+ }
package/.editorconfig ADDED
@@ -0,0 +1,19 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
13
+
14
+ [*.vue]
15
+ indent_size = 2
16
+
17
+ [*.vue:script]
18
+ indent_style = space
19
+ indent_size = 0
package/.eslintignore ADDED
@@ -0,0 +1,9 @@
1
+ /dist/
2
+ /lib/
3
+ /node_modules/
4
+ .DS_Store
5
+ .env.local
6
+ .env.*.local
7
+ npm-debug.log*
8
+ yarn-debug.log*
9
+ yarn-error.log*
package/.eslintrc.cjs ADDED
@@ -0,0 +1,65 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ node: true,
5
+ browser: true,
6
+ },
7
+ extends: ['plugin:vue/essential', 'eslint:recommended', 'plugin:prettier/recommended'],
8
+ parser: 'vue-eslint-parser',
9
+ rules: {
10
+ 'vue/max-attributes-per-line': [
11
+ 'error',
12
+ {
13
+ singleline: 5,
14
+ multiline: {
15
+ max: 1,
16
+ allowFirstLine: false,
17
+ },
18
+ },
19
+ ],
20
+ 'vue/html-self-closing': [
21
+ 'error',
22
+ {
23
+ html: {
24
+ void: 'always',
25
+ normal: 'never',
26
+ component: 'always',
27
+ },
28
+ },
29
+ ],
30
+ 'vue/html-closing-bracket-newline': [
31
+ 'error',
32
+ {
33
+ singleline: 'never',
34
+ multiline: 'always',
35
+ },
36
+ ],
37
+ 'vue/multiline-html-element-content-newline': [
38
+ 'error',
39
+ {
40
+ ignoreWhenEmpty: true,
41
+ ignores: ['pre', 'textarea'],
42
+ },
43
+ ],
44
+ // "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
45
+ // "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
46
+ 'no-unused-vars': ['warn', { args: 'none' }],
47
+ 'prefer-const': 'warn',
48
+ // "no-var": "error",
49
+ 'prettier/prettier': ['error', {}, { usePrettierrc: true }],
50
+
51
+ 'vue/no-lone-template': 'off',
52
+ 'vue/singleline-html-element-content-newline': 'off',
53
+ 'require-atomic-updates': 'off',
54
+ 'no-prototype-builtins': 'off',
55
+ 'no-restricted-syntax': 'off',
56
+ 'no-useless-catch': 'off',
57
+ 'no-useless-escape': 'off',
58
+ 'no-useless-return': 'off',
59
+ 'no-case-declarations': 'off',
60
+
61
+ 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
62
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
63
+ 'vue/multi-word-component-names': 'off',
64
+ },
65
+ }
@@ -0,0 +1,9 @@
1
+ /dist/
2
+ /lib/
3
+ /node_modules/
4
+ .DS_Store
5
+ .env.local
6
+ .env.*.local
7
+ npm-debug.log*
8
+ yarn-debug.log*
9
+ yarn-error.log*
package/.prettierrc ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "printWidth": 120,
3
+ "tabWidth": 2,
4
+ "useTabs": false,
5
+ "semi": false,
6
+ "singleQuote": true,
7
+ "trailingComma": "none",
8
+ "bracketSpacing": true,
9
+ "arrowParens": "avoid",
10
+ "endOfLine": "lf",
11
+ "htmlWhitespaceSensitivity": "ignore",
12
+ "bracketSameLine": false,
13
+ "overrides": [
14
+ {
15
+ "files": "*.vue",
16
+ "options": {
17
+ "parser": "vue",
18
+ "vueIndentScriptAndStyle": false
19
+ }
20
+ }
21
+ ]
22
+ }