ko-lint-config 2.2.13 → 2.2.16
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 +1 -1
- package/.stylelintrc.js +7 -0
- package/CHANGELOG.md +18 -0
- package/package.json +2 -1
package/.eslintrc.js
CHANGED
|
@@ -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
|
@@ -46,5 +46,12 @@ module.exports = {
|
|
|
46
46
|
ignoreSelectors: ['::-webkit-input-placeholder'],
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
|
+
'at-rule-name-case': null, // less 中变量名的大小写
|
|
50
|
+
'selector-no-vendor-prefix': null, // 兼容写法
|
|
51
|
+
'property-no-vendor-prefix': null, // 兼容写法
|
|
52
|
+
'selector-pseudo-class-no-unknown': null, // 兼容写法
|
|
53
|
+
'selector-type-no-unknown': null, // 兼容写法
|
|
54
|
+
'number-max-precision': 10, // 数字中允许的小数位数
|
|
55
|
+
'value-no-vendor-prefix': null,
|
|
49
56
|
},
|
|
50
57
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# ko-lint-config
|
|
2
2
|
|
|
3
|
+
## 2.2.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ab8fd720: some rules
|
|
8
|
+
|
|
9
|
+
## 2.2.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0b1a315c: postcss-less
|
|
14
|
+
|
|
15
|
+
## 2.2.14
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- ec113a5e: add theme rules
|
|
20
|
+
|
|
3
21
|
## 2.2.13
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ko-lint-config",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.16",
|
|
4
4
|
"description": "lint configs about eslint stylelint and prettier",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"eslint-plugin-sort-requires": "2.1.0",
|
|
46
46
|
"postcss": "8.4.14",
|
|
47
47
|
"postcss-scss": "4.0.4",
|
|
48
|
+
"postcss-less": "6.0.0",
|
|
48
49
|
"prettier": "2.7.1",
|
|
49
50
|
"stylelint": "14.11.0",
|
|
50
51
|
"stylelint-config-standard": "25.0.0",
|