putout 26.21.0 → 26.24.0
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/ChangeLog +39 -0
- package/lib/parse-options/validate-options/schema.json +16 -1
- package/package.json +1 -1
- package/putout.json +8 -1
package/ChangeLog
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
2022.07.12, v26.24.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- (putout) config: create-react-app: setupTests: improve support
|
|
5
|
+
- (putout) config: ignore: add .idea
|
|
6
|
+
- (@putout/plugin-react-hooks) declare: add useCallback
|
|
7
|
+
- (@putout/plugin-react-hooks) declare: add useReducer
|
|
8
|
+
- (@putout/plugin-remove-unreferenced-variables) report
|
|
9
|
+
- (@putout/plugin-remove-unreferenced-variables) add support of upper scope
|
|
10
|
+
- (@putout/plugin-react-hooks) add apply-short-fragment
|
|
11
|
+
- (@putout/plugin-react-hooks) add declare
|
|
12
|
+
- (@putout/plugin-putout) convert-number-to-numeric: add support of NumberLiteral
|
|
13
|
+
- (@putout/plugin-putout) add convert-number-to-numeric
|
|
14
|
+
- (@putout/plugin-tape) convert-equal-to-not-ok: add support of compute
|
|
15
|
+
- (@putout/plugin-tape) convert-equal-to-ok: add compute
|
|
16
|
+
- (@putout/processor-wasm) lock versions (xtuc/webassemblyjs#1132)
|
|
17
|
+
- (@putout/plugin-eslint) add add-putout
|
|
18
|
+
- (@putout/plugin-eslint) get
|
|
19
|
+
- (@putout/plugin-tape) convert-deep-equal-to-equal: add support of null, undefined and boolean
|
|
20
|
+
- (@putout/plugin-tape) convert-deep-equal-to-equal: add support of number
|
|
21
|
+
- (@putout/plugin-tape) convert-deepe-qual-to-equal: add support of Strings
|
|
22
|
+
- (@putout/plugin-putout) declare: add support of "compute"
|
|
23
|
+
- (@putout/plugin-apply-comparison-order) exclude OptionalMemberExpression
|
|
24
|
+
- (@putout/processor-html) add support of svelte
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
2022.06.30, v26.23.0
|
|
28
|
+
|
|
29
|
+
feature:
|
|
30
|
+
- (putout) svelte: disable remove-unused-variables: since variables can be used in markup
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
2022.06.30, v26.22.0
|
|
34
|
+
|
|
35
|
+
feature:
|
|
36
|
+
- (putout) parse-options: validate-options: processors: on/off tuple
|
|
37
|
+
- (@putout/plugin-declare-undefined-variables) Object: add freeze
|
|
38
|
+
|
|
39
|
+
|
|
1
40
|
2022.06.29, v26.21.0
|
|
2
41
|
|
|
3
42
|
fix:
|
|
@@ -53,6 +53,17 @@
|
|
|
53
53
|
}, {
|
|
54
54
|
"enum": [true, false]
|
|
55
55
|
}]
|
|
56
|
+
},
|
|
57
|
+
"processorToggle": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": [{
|
|
60
|
+
"type": "string"
|
|
61
|
+
}, {
|
|
62
|
+
"description": "🐊Putout processor\n\n\"off\" means rule is off\n\"on\" means it is a on\n",
|
|
63
|
+
"enum": ["on", "off"]
|
|
64
|
+
}],
|
|
65
|
+
"minItems": 2,
|
|
66
|
+
"maxItems": 2
|
|
56
67
|
}
|
|
57
68
|
},
|
|
58
69
|
"properties": {
|
|
@@ -69,7 +80,11 @@
|
|
|
69
80
|
"type": "array",
|
|
70
81
|
"uniqueItems": true,
|
|
71
82
|
"items": {
|
|
72
|
-
"
|
|
83
|
+
"oneOf": [{
|
|
84
|
+
"$ref": "#/definitions/processorToggle"
|
|
85
|
+
}, {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}]
|
|
73
88
|
}
|
|
74
89
|
},
|
|
75
90
|
"ignore": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.24.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊 Pluggable and configurable code transformer with built-in eslint and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
|
package/putout.json
CHANGED
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
".madrun.{js,cjs,mjs}": {
|
|
26
26
|
"madrun": "on"
|
|
27
27
|
},
|
|
28
|
+
"setupTests.*": {
|
|
29
|
+
"remove-empty/import": "off"
|
|
30
|
+
},
|
|
28
31
|
"*.md": {
|
|
29
32
|
"convert-quotes-to-backticks": "off",
|
|
30
33
|
"convert-comparison-to-boolean": "off",
|
|
@@ -41,6 +44,9 @@
|
|
|
41
44
|
"declare-undefined-variables": "off",
|
|
42
45
|
"nodejs/declare": "off"
|
|
43
46
|
},
|
|
47
|
+
"*.svelte": {
|
|
48
|
+
"remove-unused-variables": "off"
|
|
49
|
+
},
|
|
44
50
|
"{*rc,*.{json,yml}}": {
|
|
45
51
|
"convert-quotes-to-backticks": "off",
|
|
46
52
|
"remove-useless-escape": "off",
|
|
@@ -102,7 +108,8 @@
|
|
|
102
108
|
"**/dist",
|
|
103
109
|
"**/dist-dev",
|
|
104
110
|
"**/build",
|
|
105
|
-
"**/package-lock.json"
|
|
111
|
+
"**/package-lock.json",
|
|
112
|
+
"**/.idea"
|
|
106
113
|
],
|
|
107
114
|
"rules": {
|
|
108
115
|
"typescript": "off",
|