@lobehub/lint 1.26.0 → 1.26.2
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/dist/eslint/index.d.ts +15 -9
- package/dist/eslint/index.js +15 -9
- package/dist/prettier/index.js +1 -1
- package/package.json +4 -4
package/dist/eslint/index.d.ts
CHANGED
|
@@ -9,11 +9,12 @@ declare const _default: {
|
|
|
9
9
|
'import/newline-after-import': string;
|
|
10
10
|
'import/no-duplicates': string;
|
|
11
11
|
'no-empty': string;
|
|
12
|
-
'no-extra-boolean-cast':
|
|
12
|
+
'no-extra-boolean-cast': number;
|
|
13
13
|
'no-unused-vars': number;
|
|
14
14
|
'react/display-name': number;
|
|
15
15
|
'react/jsx-no-useless-fragment': string;
|
|
16
16
|
'react/jsx-sort-props': string;
|
|
17
|
+
'react/no-unknown-property': string;
|
|
17
18
|
'react/prop-types': number;
|
|
18
19
|
'react/react-in-jsx-scope': number;
|
|
19
20
|
'react/self-closing-comp': (string | {
|
|
@@ -24,25 +25,30 @@ declare const _default: {
|
|
|
24
25
|
'sort-keys-fix/sort-keys-fix': string;
|
|
25
26
|
'typescript-sort-keys/interface': string;
|
|
26
27
|
'typescript-sort-keys/string-enum': string;
|
|
27
|
-
'unicorn/
|
|
28
|
+
'unicorn/catch-error-name': string;
|
|
29
|
+
'unicorn/explicit-length-check': number;
|
|
28
30
|
'unicorn/filename-case': number;
|
|
29
31
|
'unicorn/import-style': number;
|
|
30
32
|
'unicorn/no-anonymous-default-export': number;
|
|
31
|
-
'unicorn/no-array-
|
|
33
|
+
'unicorn/no-array-callback-reference': number;
|
|
34
|
+
'unicorn/no-array-for-each': number;
|
|
32
35
|
'unicorn/no-array-reduce': number;
|
|
33
36
|
'unicorn/no-empty-file': string;
|
|
34
|
-
'unicorn/no-negated-condition':
|
|
37
|
+
'unicorn/no-negated-condition': number;
|
|
35
38
|
'unicorn/no-nested-ternary': number;
|
|
36
|
-
'unicorn/no-null':
|
|
39
|
+
'unicorn/no-null': number;
|
|
37
40
|
'unicorn/no-typeof-undefined': string;
|
|
38
|
-
'unicorn/no-useless-undefined':
|
|
39
|
-
'unicorn/prefer-code-point':
|
|
41
|
+
'unicorn/no-useless-undefined': number;
|
|
42
|
+
'unicorn/prefer-code-point': number;
|
|
40
43
|
'unicorn/prefer-logical-operator-over-ternary': number;
|
|
41
44
|
'unicorn/prefer-module': number;
|
|
42
|
-
'unicorn/prefer-
|
|
45
|
+
'unicorn/prefer-number-properties': number;
|
|
46
|
+
'unicorn/prefer-query-selector': number;
|
|
47
|
+
'unicorn/prefer-spread': number;
|
|
43
48
|
'unicorn/prefer-string-raw': number;
|
|
44
49
|
'unicorn/prefer-string-replace-all': string;
|
|
45
|
-
'unicorn/prefer-
|
|
50
|
+
'unicorn/prefer-ternary': number;
|
|
51
|
+
'unicorn/prefer-type-error': number;
|
|
46
52
|
'unicorn/prevent-abbreviations': number;
|
|
47
53
|
'unicorn/switch-case-braces': string;
|
|
48
54
|
'unused-imports/no-unused-imports': string;
|
package/dist/eslint/index.js
CHANGED
|
@@ -54,11 +54,12 @@ var eslint_default = {
|
|
|
54
54
|
"import/newline-after-import": "error",
|
|
55
55
|
"import/no-duplicates": "error",
|
|
56
56
|
"no-empty": "warn",
|
|
57
|
-
"no-extra-boolean-cast":
|
|
57
|
+
"no-extra-boolean-cast": 0,
|
|
58
58
|
"no-unused-vars": 0,
|
|
59
59
|
"react/display-name": 0,
|
|
60
60
|
"react/jsx-no-useless-fragment": "error",
|
|
61
61
|
"react/jsx-sort-props": "error",
|
|
62
|
+
"react/no-unknown-property": "warn",
|
|
62
63
|
"react/prop-types": 0,
|
|
63
64
|
"react/react-in-jsx-scope": 0,
|
|
64
65
|
"react/self-closing-comp": [
|
|
@@ -72,25 +73,30 @@ var eslint_default = {
|
|
|
72
73
|
"sort-keys-fix/sort-keys-fix": "error",
|
|
73
74
|
"typescript-sort-keys/interface": "error",
|
|
74
75
|
"typescript-sort-keys/string-enum": "error",
|
|
75
|
-
"unicorn/
|
|
76
|
+
"unicorn/catch-error-name": "warn",
|
|
77
|
+
"unicorn/explicit-length-check": 0,
|
|
76
78
|
"unicorn/filename-case": 0,
|
|
77
79
|
"unicorn/import-style": 0,
|
|
78
80
|
"unicorn/no-anonymous-default-export": 0,
|
|
79
|
-
"unicorn/no-array-
|
|
81
|
+
"unicorn/no-array-callback-reference": 0,
|
|
82
|
+
"unicorn/no-array-for-each": 0,
|
|
80
83
|
"unicorn/no-array-reduce": 0,
|
|
81
84
|
"unicorn/no-empty-file": "warn",
|
|
82
|
-
"unicorn/no-negated-condition":
|
|
85
|
+
"unicorn/no-negated-condition": 0,
|
|
83
86
|
"unicorn/no-nested-ternary": 0,
|
|
84
|
-
"unicorn/no-null":
|
|
87
|
+
"unicorn/no-null": 0,
|
|
85
88
|
"unicorn/no-typeof-undefined": "warn",
|
|
86
|
-
"unicorn/no-useless-undefined":
|
|
87
|
-
"unicorn/prefer-code-point":
|
|
89
|
+
"unicorn/no-useless-undefined": 0,
|
|
90
|
+
"unicorn/prefer-code-point": 0,
|
|
88
91
|
"unicorn/prefer-logical-operator-over-ternary": 0,
|
|
89
92
|
"unicorn/prefer-module": 0,
|
|
90
|
-
"unicorn/prefer-
|
|
93
|
+
"unicorn/prefer-number-properties": 0,
|
|
94
|
+
"unicorn/prefer-query-selector": 0,
|
|
95
|
+
"unicorn/prefer-spread": 0,
|
|
91
96
|
"unicorn/prefer-string-raw": 0,
|
|
92
97
|
"unicorn/prefer-string-replace-all": "warn",
|
|
93
|
-
"unicorn/prefer-
|
|
98
|
+
"unicorn/prefer-ternary": 0,
|
|
99
|
+
"unicorn/prefer-type-error": 0,
|
|
94
100
|
"unicorn/prevent-abbreviations": 0,
|
|
95
101
|
"unicorn/switch-case-braces": "warn",
|
|
96
102
|
"unused-imports/no-unused-imports": "error",
|
package/dist/prettier/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var prettier_default = {
|
|
|
38
38
|
bracketSpacing: true,
|
|
39
39
|
endOfLine: "lf",
|
|
40
40
|
importOrder: ["<THIRD_PARTY_MODULES>", "^@/(.*)$", "^[./]"],
|
|
41
|
-
importOrderParserPlugins: ["typescript", "decorators
|
|
41
|
+
importOrderParserPlugins: ["typescript", "jsx", "decorators"],
|
|
42
42
|
importOrderSeparation: true,
|
|
43
43
|
importOrderSortSpecifiers: true,
|
|
44
44
|
jsonRecursiveSort: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lint",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.2",
|
|
4
4
|
"homepage": "https://github.com/lobehub/lobe-lint",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/lobehub/lobe-lint/issues/new"
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
+
"overrides": {
|
|
21
|
+
"mdast-util-gfm": "3.0.0"
|
|
22
|
+
},
|
|
20
23
|
"dependencies": {
|
|
21
24
|
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
|
|
22
25
|
"@typescript-eslint/eslint-plugin": "7.5.0",
|
|
@@ -87,8 +90,5 @@
|
|
|
87
90
|
"overrides": {
|
|
88
91
|
"mdast-util-gfm": "3.0.0"
|
|
89
92
|
}
|
|
90
|
-
},
|
|
91
|
-
"overrides": {
|
|
92
|
-
"mdast-util-gfm": "3.0.0"
|
|
93
93
|
}
|
|
94
94
|
}
|