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 +10 -1
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
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': [
|
|
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