ko-lint-config 2.2.5 → 2.2.8

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
@@ -132,7 +132,7 @@ module.exports = {
132
132
  'no-useless-escape': 0,
133
133
  'no-useless-constructor': 0, // 空构造函数
134
134
  'no-template-curly-in-string': 0,
135
- 'no-console': 1,
135
+ 'no-console': 0,
136
136
  'no-debugger': 2,
137
137
  'no-param-reassign': 2, // 给函数的入参赋值
138
138
  'no-use-before-define': 0, // 使用尚未声明的变量
package/.prettierrc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  semi: true, // 行末添加分号
3
3
  tabWidth: 4, // tab 缩进,默认 2
4
- printWidth: 200, // 换行列数,默认 80
4
+ printWidth: 100, // 换行列数,默认 80
5
5
  singleQuote: true, // 单引号
6
6
  useTabs: false, // 使用 tab 缩进,默认 false 使用空格
7
7
  bracketSpacing: true, // 对象中打印空格 默认 true
package/.stylelintrc.js CHANGED
@@ -6,13 +6,7 @@ module.exports = {
6
6
  rules: {
7
7
  // null 为关闭规则
8
8
  indentation: 4, // 缩进4格
9
- 'at-rule-no-unknown': [
10
- // 允许未知规则,如 @extend
11
- true,
12
- {
13
- ignoreAtRules: ['mixin', 'include', 'extend'],
14
- },
15
- ],
9
+ 'at-rule-no-unknown': null, // 允许未知规则
16
10
  'declaration-empty-line-before': 'never', // 第一条属性声明前不允许有空行
17
11
  'selector-class-pattern': '[a-zA-Z]+', // className 的大小写
18
12
  // 规则之前的空行
@@ -26,18 +20,31 @@ module.exports = {
26
20
  'color-function-notation': 'legacy', // 颜色 rgba 等使用传统逗号隔开
27
21
  'color-hex-case': 'upper', // 颜色十六进制字符大写
28
22
  'selector-list-comma-newline-after': 'always-multi-line',
29
- 'max-line-length': 300, // 最大宽度
23
+ 'max-line-length': [
24
+ 300,
25
+ {
26
+ ignore: ['non-comments'],
27
+ },
28
+ ],
30
29
  'font-family-no-missing-generic-family-keyword': null, // 是否必须包含通用字体
31
30
  'no-descending-specificity': null, // 选择器顺序
32
31
  'keyframes-name-pattern': null, // keyframes 推荐小写+连字符命名
33
32
  'no-empty-source': null, // 空文件
34
33
  'block-no-empty': null, // 空规则
35
34
  'function-url-quotes': null, // url 不需要引号
35
+ 'function-no-unknown': null,
36
+ 'selector-id-pattern': null,
36
37
  'selector-pseudo-class-no-unknown': [
37
38
  true,
38
39
  {
39
40
  ignorePseudoClasses: ['global'],
40
41
  },
41
42
  ],
43
+ 'selector-no-vendor-prefix': [
44
+ true,
45
+ {
46
+ ignoreSelectors: ['::-webkit-input-placeholder'],
47
+ },
48
+ ],
42
49
  },
43
50
  };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # ko-lint-config
2
2
 
3
+ ## 2.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 40884a3c: lint config
8
+
9
+ ## 2.2.7
10
+
11
+ ### Patch Changes
12
+
13
+ - edb4ae7e: change prettier config
14
+
15
+ ## 2.2.6
16
+
17
+ ### Patch Changes
18
+
19
+ - 5f645514: update stylelint rules
20
+
3
21
  ## 2.2.5
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.5",
3
+ "version": "2.2.8",
4
4
  "description": "lint configs about eslint stylelint and prettier",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -46,10 +46,10 @@
46
46
  "postcss": "^8.4.12",
47
47
  "postcss-scss": "^4.0.3",
48
48
  "prettier": "^2.6.2",
49
- "stylelint": "^14.7.1",
50
- "stylelint-config-standard": "^25.0.0",
51
- "stylelint-order": "^5.0.0",
52
- "stylelint-scss": "^4.2.0"
49
+ "stylelint": "14.11.0",
50
+ "stylelint-config-standard": "28.0.0",
51
+ "stylelint-order": "5.0.0",
52
+ "stylelint-scss": "4.3.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "tape": "^5.5.2",