ko-lint-config 2.2.0 → 2.2.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.js CHANGED
@@ -89,7 +89,16 @@ module.exports = {
89
89
  eqeqeq: 0,
90
90
  'arrow-body-style': 0, // 控制箭头函数的语法形式
91
91
  'object-shorthand': 2, // 对象的 key 和 value 一致时要求简写
92
- 'comma-dangle': [2, 'always-multiline'], // 当最后一个元素或属性与结束或属性位于不同的行时,要求尾随逗号
92
+ 'comma-dangle': [
93
+ 2,
94
+ {
95
+ arrays: 'always-multiline',
96
+ objects: 'always-multiline',
97
+ imports: 'always-multiline',
98
+ exports: 'always-multiline',
99
+ functions: 'never',
100
+ },
101
+ ], // 当最后一个元素或属性与结束或属性位于不同的行时,要求末尾逗号
93
102
  'lines-between-class-members': 0, // 方法间是否空行间隔开
94
103
  'space-before-function-paren': [
95
104
  // 箭头函数是否要求始终有小括号
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ko-lint-config
2
2
 
3
+ ## 2.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dea5d69b: update eslint comma-dangle
8
+
3
9
  ## 2.2.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ko-lint-config",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "lint configs about eslint stylelint and prettier",
5
5
  "main": "index.js",
6
6
  "files": [