ko-lint-config 2.2.15 → 2.2.17
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 +2 -2
- package/.stylelintrc.js +1 -0
- package/CHANGELOG.md +12 -0
- package/README_CN.md +1 -1
- package/package.json +1 -1
package/.eslintrc.js
CHANGED
|
@@ -113,7 +113,7 @@ module.exports = {
|
|
|
113
113
|
// 函数括号前的空格
|
|
114
114
|
2,
|
|
115
115
|
{
|
|
116
|
-
anonymous: '
|
|
116
|
+
anonymous: 'never', // 匿名函数表达式,例如 function () {}
|
|
117
117
|
named: 'never', // 命名函数表达式,例如 function foo () {}
|
|
118
118
|
asyncArrow: 'always', // 异步箭头函数表达式,例如 async () => {}
|
|
119
119
|
},
|
|
@@ -129,7 +129,7 @@ module.exports = {
|
|
|
129
129
|
'no-prototype-builtins': 0,
|
|
130
130
|
'no-mixed-operators': 1, // 混合使用不同的运算符,建议添加括号增加代码的可读性
|
|
131
131
|
'no-return-assign': 0, // return 的代码中有运算
|
|
132
|
-
'no-useless-escape':
|
|
132
|
+
'no-useless-escape': 1,
|
|
133
133
|
'no-useless-constructor': 0, // 空构造函数
|
|
134
134
|
'no-template-curly-in-string': 0,
|
|
135
135
|
'no-console': 0,
|
package/.stylelintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
package/README_CN.md
CHANGED