ol-base-components 2.5.0 → 2.5.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/.eslintrc CHANGED
@@ -1,8 +1,59 @@
1
- // {
2
- // "rules": {
3
- // "no-console": "off", // 关闭 console 相关的警告
4
- // "no-unused-vars": "off", // 关闭未使用变量的警告
5
- // "vue/no-mutating-props": "off", // 关闭对 props 的修改警告
6
- // "no-undef": "off" // 关闭未定义变量的警告
7
- // }
8
- // }
1
+ {
2
+ "extends": [
3
+ "plugin:vue/essential", // Vue规则 官方 ESLint 插件 eslint-plugin-vue
4
+ "eslint:recommended", // 基础规则 ESLint 自带的推荐规则
5
+ "prettier", // 关闭所有和 Prettier 冲突的 ESLint 规则
6
+ "plugin:prettier/recommended" //启用 prettier 插件,让 ESLint 把 Prettier 的格式问题当成 ESLint 报错
7
+ ],
8
+ "parserOptions": {
9
+ "parser": "@babel/eslint-parser",
10
+ "requireConfigFile": false,
11
+ "ecmaVersion": 2020,
12
+ "sourceType": "module"
13
+ },
14
+ "env": {
15
+ "browser": true,
16
+ "node": true,
17
+ "es6": true
18
+ },
19
+ "rules": {
20
+ "no-console": "warn",
21
+ "no-debugger": "warn",
22
+ "no-unused-vars": "warn",
23
+ "vue/no-unused-components": "warn",
24
+ "vue/no-unused-vars": "warn",
25
+ "vue/multi-word-component-names": "off",
26
+ "vue/no-v-html": "off",
27
+ "vue/require-default-prop": "off",
28
+ "vue/require-prop-types": "off",
29
+ "vue/no-mutating-props": "warn",
30
+ "vue/no-side-effects-in-computed-properties": "warn",
31
+ "vue/valid-v-for": "error",
32
+ "vue/valid-v-if": "error",
33
+ "vue/valid-v-model": "error",
34
+ "vue/valid-template-root": "error",
35
+ "vue/no-duplicate-attributes": "error",
36
+ "vue/no-parsing-error": "error",
37
+ "vue/require-v-for-key": "error",
38
+ "vue/valid-v-bind": "error",
39
+ "vue/valid-v-on": "error",
40
+ "vue/valid-v-slot": "error",
41
+ "vue/valid-v-text": "error",
42
+ "vue/valid-v-html": "error",
43
+ "vue/valid-v-pre": "error",
44
+ "vue/valid-v-cloak": "error",
45
+ "vue/valid-v-once": "error",
46
+ "vue/valid-v-show": "error",
47
+ "vue/valid-v-else": "error",
48
+ "vue/valid-v-else-if": "error",
49
+ "prefer-const": "warn",
50
+ "no-var": "error",
51
+ "eqeqeq": "error",
52
+ "no-undef": "error",
53
+ "no-redeclare": "error",
54
+ "no-unreachable": "error",
55
+ "strict": ["error", "global"],
56
+ "no-implicit-globals": "error",
57
+ "no-unused-expressions": "error"
58
+ }
59
+ }
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ dist
3
+ .git
4
+ *.min.js
5
+ *.min.css
6
+ package-lock.json
package/.prettierrc ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "semi": true,
3
+ "singleQuote": false,
4
+ "tabWidth": 2,
5
+ "printWidth": 100,
6
+ "trailingComma": "es5",
7
+ "bracketSpacing": true,
8
+ "arrowParens": "avoid",
9
+ "endOfLine": "lf",
10
+ "vueIndentScriptAndStyle": true,
11
+ "htmlWhitespaceSensitivity": "css",
12
+ "singleAttributePerLine": false,
13
+ "trimTrailingWhitespace": true
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol-base-components",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "private": false,
5
5
  "main": "src/package/index.js",
6
6
  "bin": {
@@ -30,6 +30,9 @@
30
30
  "@vue/cli-plugin-babel": "~5.0.0",
31
31
  "@vue/cli-plugin-eslint": "~5.0.0",
32
32
  "@vue/cli-service": "~5.0.0",
33
+ "eslint-config-prettier": "^8.8.0",
34
+ "eslint-plugin-prettier": "^4.2.1",
35
+ "prettier": "^2.8.8",
33
36
  "sass": "^1.89.2",
34
37
  "sass-loader": "^16.0.5",
35
38
  "vue-template-compiler": "^2.6.14"