@utoo/lint 0.2.8 → 0.3.4
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/README.md +201 -172
- package/bin/fishlint.js +23 -3
- package/bin/migrate.js +555 -39
- package/bin/utoo-lint.js +15 -15
- package/configs/frontend.d.ts +54 -2
- package/configs/frontend.json +16 -1
- package/index.cjs +277 -60
- package/index.d.ts +14 -1
- package/index.js +277 -60
- package/package.json +13 -11
- package/schema.json +89 -36
package/schema.json
CHANGED
|
@@ -1,50 +1,103 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "https://raw.githubusercontent.com/
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/utooland/utoo-lint/main/npm/utoo-lint/schema.json",
|
|
4
4
|
"title": "utoo-lint configuration",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"$schema": {
|
|
9
|
-
"type": "string"
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{
|
|
7
|
+
"$ref": "#/definitions/configObject"
|
|
10
8
|
},
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"$ref": "#/definitions/ruleSeverity"
|
|
9
|
+
{
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"$ref": "#/definitions/configObject"
|
|
16
13
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"definitions": {
|
|
17
|
+
"configObject": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": true,
|
|
20
|
+
"properties": {
|
|
21
|
+
"$schema": {
|
|
22
22
|
"type": "string"
|
|
23
23
|
},
|
|
24
|
-
{
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
24
|
+
"rules": {
|
|
25
|
+
"description": "ESLint-compatible rule severity map. Unknown rule names are rejected by utoo-lint.",
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": {
|
|
28
|
+
"$ref": "#/definitions/ruleSeverity"
|
|
28
29
|
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"ignores": {
|
|
33
|
-
"description": "File globs ignored by this config entry.",
|
|
34
|
-
"oneOf": [
|
|
35
|
-
{
|
|
36
|
-
"type": "string"
|
|
37
30
|
},
|
|
38
|
-
{
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
31
|
+
"settings": {
|
|
32
|
+
"description": "Shared plugin settings.",
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": true,
|
|
35
|
+
"properties": {
|
|
36
|
+
"jest": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": true,
|
|
39
|
+
"properties": {
|
|
40
|
+
"version": {
|
|
41
|
+
"description": "Jest version used by version-aware Jest rules.",
|
|
42
|
+
"oneOf": [
|
|
43
|
+
{ "type": "integer", "minimum": 1 },
|
|
44
|
+
{ "type": "string", "pattern": "^[0-9]+(?:\\..*)?$" }
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"globalAliases": {
|
|
48
|
+
"description": "Additional global aliases for canonical Jest functions.",
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": { "type": "string", "minLength": 1 },
|
|
53
|
+
"uniqueItems": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
42
58
|
}
|
|
59
|
+
},
|
|
60
|
+
"files": {
|
|
61
|
+
"description": "File globs this config entry applies to.",
|
|
62
|
+
"oneOf": [
|
|
63
|
+
{
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"oneOf": [
|
|
70
|
+
{
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"minItems": 1
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"ignores": {
|
|
86
|
+
"description": "File globs ignored by this config entry.",
|
|
87
|
+
"oneOf": [
|
|
88
|
+
{
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
43
98
|
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"definitions": {
|
|
99
|
+
}
|
|
100
|
+
},
|
|
48
101
|
"ruleSeverity": {
|
|
49
102
|
"oneOf": [
|
|
50
103
|
{
|