putout 25.18.0 β 26.0.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/ChangeLog +71 -25
- package/README.md +2 -2
- package/help.json +1 -1
- package/lib/parse-options/validate-options/schema.json +1 -1
- package/package.json +5 -6
- package/putout.json +4 -5
package/ChangeLog
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
2022.05.12, v26.0.2
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- (@putout/plugin-reuse-deuplicate-init) description
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- (package) @putout/plugin-reuse-duplicate-init v4.0.0
|
|
9
|
+
- (@putout/plugin-reuse-duplicate-init) drop support of π < 26
|
|
10
|
+
- (@putout/plugin-reuse-duplicate-init) report message: simplify
|
|
11
|
+
- (@putout/plugin-remove-useless-variables) remove: add support of AssignmentExpression
|
|
12
|
+
- (@putout/operate) remove: improve comments support
|
|
13
|
+
- (@putout/plugin-remove-useless-variables) await: improve report message
|
|
14
|
+
- (@putout/plugin-putout) add: replace-test-message
|
|
15
|
+
- (@putout/plugin-apply-array-at) improve report
|
|
16
|
+
- (@putout/plugin-convert-reduce-to-for-of) exclude CallExpression
|
|
17
|
+
- (@putout/plugin-tape) convert-ok-to-match: test: add support of message
|
|
18
|
+
- (@putout/plugin-remove-useless-operand) check operand type when string could be used
|
|
19
|
+
- (@putout/plugin-madrun) convert-lint-lib: parseObject -> getProperty
|
|
20
|
+
- (@putout/plugin-madrun) convert-nyc-to-c8: add support of CommonJS
|
|
21
|
+
- (@putout/operator-add-args) exclude not calls
|
|
22
|
+
- (@putout/eslint-config) add array-bracket-spacing
|
|
23
|
+
- (@putout/plugin-putout) add-args: add support of process
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
2022.05.09, v26.0.1
|
|
27
|
+
|
|
28
|
+
fix:
|
|
29
|
+
- (@putout/plugin-convert-commonjs-to-esm) report
|
|
30
|
+
- (putout) help: localy -> locally
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
feature:
|
|
34
|
+
- (package) @putout/plugin-convert-esm-to-commonjs v5.0.0
|
|
35
|
+
- (@putout/plugin-convert-esm-to-commonjs) drop support of π < 26
|
|
36
|
+
- (@putout/plugin-convert-esm-to-commonjs) change report
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
2022.05.08, v26.0.0
|
|
40
|
+
|
|
41
|
+
feature:
|
|
42
|
+
- (package) @putout/plugin-strict-mode v5.0.0
|
|
43
|
+
- (@putout/plugin-new) merge: add-missing-new, remove-useless-new
|
|
44
|
+
- (@putout/plugin-strict-mode) add, remove -> add-missing, remove-useless
|
|
45
|
+
|
|
46
|
+
|
|
1
47
|
2022.05.08, v25.18.0
|
|
2
48
|
|
|
3
49
|
fix:
|
|
@@ -1245,7 +1291,7 @@ feature:
|
|
|
1245
1291
|
2021.11.28, v22.2.1
|
|
1246
1292
|
|
|
1247
1293
|
fix:
|
|
1248
|
-
- (@putout/plugin-remove-constant-conditions) report: "constant
|
|
1294
|
+
- (@putout/plugin-remove-constant-conditions) report: "constant conditions should not be used" -> "Avoid constant conditions"
|
|
1249
1295
|
|
|
1250
1296
|
feature:
|
|
1251
1297
|
- (package) @putout/plugin-madrun v11.0.0
|
|
@@ -1260,7 +1306,7 @@ feature:
|
|
|
1260
1306
|
fix:
|
|
1261
1307
|
- (@putout/plugin-remove-unused-variables) OptionalMemberExpression: computed property
|
|
1262
1308
|
- (eslint-plugin-putout) array-element-newline: minimum elements: 4 -> 5
|
|
1263
|
-
- (eslint-plugin-putout) add-newlinew-before-function-call:
|
|
1309
|
+
- (eslint-plugin-putout) add-newlinew-before-function-call: trimmed whitespaces on empty line
|
|
1264
1310
|
- (eslint-plugin-putout) add-newline-before-function-call: add support of comments
|
|
1265
1311
|
- (eslint-plugin-putout) add-newline-before-function-call: continue -> return
|
|
1266
1312
|
|
|
@@ -1275,7 +1321,7 @@ feature:
|
|
|
1275
1321
|
- (@putout/eslint-config) padding-line-between-statements: add support of while
|
|
1276
1322
|
- (eslint-plugin-putout) add add-newline-before-function-call
|
|
1277
1323
|
- (@putout/eslint-config) add func-call-spacing (https://eslint.org/docs/rules/func-call-spacing)
|
|
1278
|
-
- (eslint-plugin-putout) plugin-tape-remove-newline-before-t-end: add support of
|
|
1324
|
+
- (eslint-plugin-putout) plugin-tape-remove-newline-before-t-end: add support of trimmed newline
|
|
1279
1325
|
- (eslint-plugin-putout) add add-newline-before-t-end
|
|
1280
1326
|
- (@putout/plugin-declare-undefined-variables) add maybeEmptyArray
|
|
1281
1327
|
- (eslint-plugin-putout) array-element-newline: add support of Identifier
|
|
@@ -1706,7 +1752,7 @@ feature:
|
|
|
1706
1752
|
2021.09.25, v20.5.0
|
|
1707
1753
|
|
|
1708
1754
|
fix:
|
|
1709
|
-
- (@putout/test)
|
|
1755
|
+
- (@putout/test) leak of plugins used in `t.transform()`
|
|
1710
1756
|
- (@putout/plugin-tape) apply-with-name: not declared
|
|
1711
1757
|
- (@putout/plugin-declare-undefined-variables) get back record, to have eslint-plugin-putout support
|
|
1712
1758
|
|
|
@@ -1928,11 +1974,11 @@ fix:
|
|
|
1928
1974
|
2021.09.01, v19.3.0
|
|
1929
1975
|
|
|
1930
1976
|
fix:
|
|
1931
|
-
- feature(putout) exit with error when "--fix" used with "--enable(-all)" or "--
|
|
1977
|
+
- feature(putout) exit with error when "--fix" used with "--enable(-all)" or "--disable(-all)" (#77)
|
|
1932
1978
|
- (@putout/plugin-declare-undefined-variables) mockImport: multiple declarations
|
|
1933
1979
|
|
|
1934
1980
|
feature:
|
|
1935
|
-
- (putout) exit with error when "--fix" used with "--enable(-all)" or "--
|
|
1981
|
+
- (putout) exit with error when "--fix" used with "--enable(-all)" or "--disable(-all)" (#77)
|
|
1936
1982
|
- (@putout/plugin-regexp) remove-useless-group: allow only test, search match (#74)
|
|
1937
1983
|
- (@putout/plugin-apply-filter-boolean) add
|
|
1938
1984
|
- (eslint-plugin-putout) rm category (https://eslint.org/blog/2021/08/eslint-v8.0.0-beta.1-released)
|
|
@@ -1995,8 +2041,8 @@ feature:
|
|
|
1995
2041
|
2021.08.23, v19.0.0
|
|
1996
2042
|
|
|
1997
2043
|
fix:
|
|
1998
|
-
- (@putout/cli-validate-args) switch to
|
|
1999
|
-
- (@putout/plugin-regexp) convert-to-string: false
|
|
2044
|
+
- (@putout/cli-validate-args) switch to dynamic import
|
|
2045
|
+
- (@putout/plugin-regexp) convert-to-string: false positive with Char of kind meta: \d
|
|
2000
2046
|
- (@putout/eslint-config) peerDependency
|
|
2001
2047
|
- (eslint-plugin-putout) peerDependencies: eslint
|
|
2002
2048
|
|
|
@@ -2025,7 +2071,7 @@ feature:
|
|
|
2025
2071
|
fix:
|
|
2026
2072
|
- (@putout/compare) link: arrays
|
|
2027
2073
|
- (putout) parse-options: read rules with "putout-plugin" prefix
|
|
2028
|
-
- (eslint-plugin-putout) rm
|
|
2074
|
+
- (eslint-plugin-putout) rm additional esm handling
|
|
2029
2075
|
- (@putout/engine-runner) empty key
|
|
2030
2076
|
|
|
2031
2077
|
feature:
|
|
@@ -2718,7 +2764,7 @@ fix:
|
|
|
2718
2764
|
|
|
2719
2765
|
|
|
2720
2766
|
feature:
|
|
2721
|
-
- feature(@putout/plugin-remove-useless-await) add
|
|
2767
|
+
- feature(@putout/plugin-remove-useless-await) add support of not async functions
|
|
2722
2768
|
- feature(putout) bin: disable remove-empty/import, ESM: disable strict-mode/add
|
|
2723
2769
|
- feature(eslint-plugin-putout) single-property-destructuring: add support of ImportDeclaration
|
|
2724
2770
|
- feature(eslint-plugin-putout) ide: remove-empty/block -> remove-empty
|
|
@@ -2986,7 +3032,7 @@ feature:
|
|
|
2986
3032
|
2021.01.30, v14.0.3
|
|
2987
3033
|
|
|
2988
3034
|
fix:
|
|
2989
|
-
- (putout) prevent unhandled
|
|
3035
|
+
- (putout) prevent unhandled exceptions
|
|
2990
3036
|
- (@putout/processor-ignore) windows line endings
|
|
2991
3037
|
|
|
2992
3038
|
feature:
|
|
@@ -3006,7 +3052,7 @@ feature:
|
|
|
3006
3052
|
2021.01.27, v14.0.1
|
|
3007
3053
|
|
|
3008
3054
|
fix:
|
|
3009
|
-
- (putout) cache-files: rm useless logical operation: "" always
|
|
3055
|
+
- (putout) cache-files: rm useless logical operation: "" always positive after condition
|
|
3010
3056
|
|
|
3011
3057
|
feature:
|
|
3012
3058
|
- (package) eslint-plugin-putout v7.0.0
|
|
@@ -3139,7 +3185,7 @@ feature:
|
|
|
3139
3185
|
- (putout) cli: cache: add ability to detect eslintrc change
|
|
3140
3186
|
- (putout) cache-files: add ability to detect node_modules changes
|
|
3141
3187
|
- (@putout/plugin-tape) add convert-emitter-to-promise
|
|
3142
|
-
- (@putout/formatter-memory) add
|
|
3188
|
+
- (@putout/formatter-memory) add support of PUTOUT_PROGRESS_BAR
|
|
3143
3189
|
- (@putout/plugin-nodejs) add convert-promisify-to-fs-promises
|
|
3144
3190
|
|
|
3145
3191
|
|
|
@@ -3414,7 +3460,7 @@ feature:
|
|
|
3414
3460
|
2020.12.07, v12.0.1
|
|
3415
3461
|
|
|
3416
3462
|
fix:
|
|
3417
|
-
- (putout) parse-match: memory
|
|
3463
|
+
- (putout) parse-match: memory leak: 400mb -> 140mb: rm memo
|
|
3418
3464
|
|
|
3419
3465
|
feature:
|
|
3420
3466
|
- (@putout/plugin-convert-commonjs-to-esm) require: exclude declared require
|
|
@@ -4397,7 +4443,7 @@ fix:
|
|
|
4397
4443
|
- (@putout/engine-loader) load-plugin: rm useless Module.plugins (used for webpack bundle build)
|
|
4398
4444
|
|
|
4399
4445
|
feature:
|
|
4400
|
-
- (putout) add --debug flag to switch formatter into reason of a crash (when
|
|
4446
|
+
- (putout) add --debug flag to switch formatter into reason of a crash (when occurs)
|
|
4401
4447
|
- (@putout/eslint-cofig) .eslintrc.json -> eslintrc.json
|
|
4402
4448
|
|
|
4403
4449
|
|
|
@@ -5089,7 +5135,7 @@ feature:
|
|
|
5089
5135
|
|
|
5090
5136
|
feature:
|
|
5091
5137
|
- (putout) parse-options: readRules: plugins: object -> array
|
|
5092
|
-
- (@putout/codemod-convert-tape-to-supertape)
|
|
5138
|
+
- (@putout/codemod-convert-tape-to-supertape) convert to replace
|
|
5093
5139
|
- (@putout/codemod-cut-legacy) convert to include
|
|
5094
5140
|
- (@putout/engine-runner) filter: replace -> include
|
|
5095
5141
|
- (@putout/engine-runner) rm unused check
|
|
@@ -6378,13 +6424,13 @@ fix:
|
|
|
6378
6424
|
- (eslintrc) overrides does not supported by eslint
|
|
6379
6425
|
- (@putout/plugin-extract-sequence-epxressions) add support of WhileStatement
|
|
6380
6426
|
- (@putout/eslint-config) rm overrides: does not supported by eslint
|
|
6381
|
-
- (@putout/eslint-config) no-
|
|
6427
|
+
- (@putout/eslint-config) no-unneeded-ternary: default-assignment: defaultAssignment
|
|
6382
6428
|
|
|
6383
6429
|
feature:
|
|
6384
6430
|
- (putout) rm shebang check
|
|
6385
6431
|
- (putout) improve directives support
|
|
6386
6432
|
- (@putout/eslint-config) overrids "bin": disable rules: no-console, no-process-exit
|
|
6387
|
-
- (@putout/eslint-config) no-
|
|
6433
|
+
- (@putout/eslint-config) no-unneeded-ternary: default-assignment: false
|
|
6388
6434
|
|
|
6389
6435
|
|
|
6390
6436
|
2019.07.24, v4.60.0
|
|
@@ -6643,7 +6689,7 @@ fix:
|
|
|
6643
6689
|
- (@putout/plugin-convert-apply-to-spread) rm quotes
|
|
6644
6690
|
|
|
6645
6691
|
feature:
|
|
6646
|
-
- (putout) add ability to handle
|
|
6692
|
+
- (putout) add ability to handle overlapped plugins: missing node
|
|
6647
6693
|
- (@putout/plugin-remove-unused-variables) add support of named FunctionExpression in ReturnStatement
|
|
6648
6694
|
- (package) eslint-plugin-node v9.1.0
|
|
6649
6695
|
- (package) eslint v6.0.1
|
|
@@ -6673,7 +6719,7 @@ fix:
|
|
|
6673
6719
|
feature:
|
|
6674
6720
|
- (putout) enable typescript only for .ts files
|
|
6675
6721
|
- (package) eslint v6.0.1
|
|
6676
|
-
- (@putout/plugin-remove-empty) add support of empty
|
|
6722
|
+
- (@putout/plugin-remove-empty) add support of empty consequent block, and not empty alternate block if IfStatement
|
|
6677
6723
|
- (@putout/plugin-remove-unused-variables) add support of TSInterfaceDeclaration, TSMethodSignature
|
|
6678
6724
|
- (package) eslint-plugin-node v9.1.0
|
|
6679
6725
|
- (package) eslint v6.0.1
|
|
@@ -6991,7 +7037,7 @@ fix:
|
|
|
6991
7037
|
|
|
6992
7038
|
feature:
|
|
6993
7039
|
- (@putout/plugin-putout) add
|
|
6994
|
-
- (@putout/eslint-config) padding-line-
|
|
7040
|
+
- (@putout/eslint-config) padding-line-between-statements: add empty line before if condition
|
|
6995
7041
|
- (@putout/plugin-remove-empty-pattern) add support of function argument
|
|
6996
7042
|
- (@putout/plugin-remove-empty) add support of css
|
|
6997
7043
|
|
|
@@ -7156,7 +7202,7 @@ feature:
|
|
|
7156
7202
|
- (@putout/plugin-remove-unused-variables) add support of ClassDeclaration in ExportDefaultDeclaration
|
|
7157
7203
|
- (@putotu/plugin-remove-unused-variables) condition isObjectExpression -> traverse ObjectExpression
|
|
7158
7204
|
- (putout) isTemplateLiteral checks -> TemplateLiteral key
|
|
7159
|
-
- (putout) add support of TemplateLiteral in
|
|
7205
|
+
- (putout) add support of TemplateLiteral in ConditionalExpression
|
|
7160
7206
|
- (@putout/plugin-remove-unused-variables) add support of Identifier in JSXSpreadAttribute
|
|
7161
7207
|
- (@putout/plugin-remove-unused-variables) add support of marking as used elements before RestElement when destructuring used as a function param
|
|
7162
7208
|
- (@putout/plugin-remove-unused-variables) add support of specifiers in ExportNamedDeclaration
|
|
@@ -7251,7 +7297,7 @@ fix:
|
|
|
7251
7297
|
|
|
7252
7298
|
feature:
|
|
7253
7299
|
- (plugin-madrun) call-series -> call-run
|
|
7254
|
-
- (eslint-plugin-putout) add
|
|
7300
|
+
- (eslint-plugin-putout) add support of multiple-properties-destructuring
|
|
7255
7301
|
- (eslint-config) add object-property-newline
|
|
7256
7302
|
|
|
7257
7303
|
|
|
@@ -7331,7 +7377,7 @@ feature:
|
|
|
7331
7377
|
- (putout) set defaults for bin
|
|
7332
7378
|
- (putout) remove support of putout section of package.json
|
|
7333
7379
|
- (putout) rm --config
|
|
7334
|
-
- (eslint-config) prefer-destructuring: AssignmentExpression: disable
|
|
7380
|
+
- (eslint-config) prefer-destructuring: AssignmentExpression: disable object
|
|
7335
7381
|
- (eslint-config) prefer-destructuring
|
|
7336
7382
|
- (putout) madrun v2.0.0
|
|
7337
7383
|
|
|
@@ -7744,7 +7790,7 @@ fix:
|
|
|
7744
7790
|
feature:
|
|
7745
7791
|
- (parse-match) move out from bin/putout.js
|
|
7746
7792
|
- (putout) add support of match/ignore
|
|
7747
|
-
- (putout) add plugin name in
|
|
7793
|
+
- (putout) add plugin name in errors output
|
|
7748
7794
|
- (plugin-remove-skip) add
|
|
7749
7795
|
- (putout) add ability to set config path
|
|
7750
7796
|
- (putout) cherow -> espree: comments support
|
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ Usage: putout [options] [path]
|
|
|
154
154
|
Options:
|
|
155
155
|
-h, --help display this help and exit
|
|
156
156
|
-v, --version output version information and exit
|
|
157
|
-
-f, --format [formatter] use a specific output format, the default is: 'progress-bar'
|
|
157
|
+
-f, --format [formatter] use a specific output format, the default is: 'progress-bar' locally and 'dump' on CI
|
|
158
158
|
-s, --staged add staged files when in git repository
|
|
159
159
|
--fix apply fixes of errors to code
|
|
160
160
|
--fix-count [count = 10] count of fixes rounds
|
|
@@ -187,7 +187,7 @@ putout lib test --fix
|
|
|
187
187
|
|
|
188
188
|
## Plugins
|
|
189
189
|
|
|
190
|
-
By default π**Putout** uses all enabled by default plugins, anyways it can be run with a couple mentioned plugins (
|
|
190
|
+
By default π**Putout** uses all enabled by default plugins, anyways it can be run with a couple mentioned plugins (split with ","):
|
|
191
191
|
|
|
192
192
|
```sh
|
|
193
193
|
putout lib --plugins remove-debugger,remove-unused-variables
|
package/help.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"-h, --help ": "display this help and exit",
|
|
3
3
|
"-v, --version ": "output version information and exit",
|
|
4
|
-
"-f, --format [formatter] ": "use a specific output format, the default is: 'progress-bar'
|
|
4
|
+
"-f, --format [formatter] ": "use a specific output format, the default is: 'progress-bar' locally and 'dump' on CI",
|
|
5
5
|
"-s, --staged ": "add staged files when in git repository",
|
|
6
6
|
"--fix ": "apply fixes of errors to code",
|
|
7
7
|
"--fix-count [count = 10] ": "count of fixes rounds",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.0.2",
|
|
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",
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"@putout/operator-add-args": "^3.0.0",
|
|
71
71
|
"@putout/operator-declare": "^4.0.0",
|
|
72
72
|
"@putout/operator-regexp": "^1.0.0",
|
|
73
|
-
"@putout/plugin-add-missing-new": "^1.0.0",
|
|
74
73
|
"@putout/plugin-apply-array-at": "^2.0.0",
|
|
75
74
|
"@putout/plugin-apply-destructuring": "^5.0.0",
|
|
76
75
|
"@putout/plugin-apply-early-return": "^2.0.0",
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
"@putout/plugin-convert-comparison-to-boolean": "^3.0.0",
|
|
90
89
|
"@putout/plugin-convert-concat-to-flat": "^1.0.0",
|
|
91
90
|
"@putout/plugin-convert-equal-to-strict-equal": "^1.0.0",
|
|
92
|
-
"@putout/plugin-convert-esm-to-commonjs": "^
|
|
91
|
+
"@putout/plugin-convert-esm-to-commonjs": "^5.0.0",
|
|
93
92
|
"@putout/plugin-convert-for-each-to-for-of": "^7.0.0",
|
|
94
93
|
"@putout/plugin-convert-for-in-to-for-of": "^2.0.0",
|
|
95
94
|
"@putout/plugin-convert-for-to-for-of": "^4.0.0",
|
|
@@ -115,6 +114,7 @@
|
|
|
115
114
|
"@putout/plugin-merge-duplicate-imports": "^6.0.0",
|
|
116
115
|
"@putout/plugin-merge-if-statements": "^3.0.0",
|
|
117
116
|
"@putout/plugin-montag": "^1.0.0",
|
|
117
|
+
"@putout/plugin-new": "^1.0.0",
|
|
118
118
|
"@putout/plugin-nodejs": "^4.0.0",
|
|
119
119
|
"@putout/plugin-npmignore": "^2.0.0",
|
|
120
120
|
"@putout/plugin-package-json": "^4.0.0",
|
|
@@ -151,7 +151,6 @@
|
|
|
151
151
|
"@putout/plugin-remove-useless-for-of": "^2.0.0",
|
|
152
152
|
"@putout/plugin-remove-useless-functions": "^2.0.0",
|
|
153
153
|
"@putout/plugin-remove-useless-map": "^1.0.0",
|
|
154
|
-
"@putout/plugin-remove-useless-new": "^2.0.0",
|
|
155
154
|
"@putout/plugin-remove-useless-operand": "^2.0.0",
|
|
156
155
|
"@putout/plugin-remove-useless-return": "^4.0.0",
|
|
157
156
|
"@putout/plugin-remove-useless-spread": "^5.0.0",
|
|
@@ -159,13 +158,13 @@
|
|
|
159
158
|
"@putout/plugin-remove-useless-type-conversion": "^2.0.0",
|
|
160
159
|
"@putout/plugin-remove-useless-typeof": "^1.0.0",
|
|
161
160
|
"@putout/plugin-remove-useless-variables": "^7.0.0",
|
|
162
|
-
"@putout/plugin-reuse-duplicate-init": "^
|
|
161
|
+
"@putout/plugin-reuse-duplicate-init": "^4.0.0",
|
|
163
162
|
"@putout/plugin-simplify-assignment": "^1.0.0",
|
|
164
163
|
"@putout/plugin-simplify-logical-expressions": "^2.0.0",
|
|
165
164
|
"@putout/plugin-simplify-ternary": "^2.0.0",
|
|
166
165
|
"@putout/plugin-split-nested-destructuring": "^1.0.0",
|
|
167
166
|
"@putout/plugin-split-variable-declarations": "^2.0.0",
|
|
168
|
-
"@putout/plugin-strict-mode": "^
|
|
167
|
+
"@putout/plugin-strict-mode": "^5.0.0",
|
|
169
168
|
"@putout/plugin-tape": "^9.0.0",
|
|
170
169
|
"@putout/plugin-try-catch": "^1.0.0",
|
|
171
170
|
"@putout/plugin-typescript": "^2.0.0",
|
package/putout.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
],
|
|
14
14
|
"match": {
|
|
15
15
|
"*.{mjs,ts,tsx}": {
|
|
16
|
-
"strict-mode/remove": "on",
|
|
17
|
-
"strict-mode/add": "off"
|
|
16
|
+
"strict-mode/remove-useless": "on",
|
|
17
|
+
"strict-mode/add-missing": "off"
|
|
18
18
|
},
|
|
19
19
|
"*.{jsx,js,cjs}": {
|
|
20
20
|
"strict-mode": "on"
|
|
@@ -122,7 +122,6 @@
|
|
|
122
122
|
"convert-mock-require-to-mock-import": "off"
|
|
123
123
|
},
|
|
124
124
|
"plugins": [
|
|
125
|
-
"add-missing-new",
|
|
126
125
|
"apply-array-at",
|
|
127
126
|
"apply-early-return",
|
|
128
127
|
"apply-is-array",
|
|
@@ -148,7 +147,6 @@
|
|
|
148
147
|
"remove-useless-variables",
|
|
149
148
|
"remove-useless-else",
|
|
150
149
|
"remove-useless-map",
|
|
151
|
-
"remove-useless-new",
|
|
152
150
|
"remove-useless-constructor",
|
|
153
151
|
"remove-useless-array-constructor",
|
|
154
152
|
"remove-useless-continue",
|
|
@@ -221,7 +219,8 @@
|
|
|
221
219
|
"tape",
|
|
222
220
|
"try-catch",
|
|
223
221
|
"nodejs",
|
|
224
|
-
"montag"
|
|
222
|
+
"montag",
|
|
223
|
+
"new"
|
|
225
224
|
]
|
|
226
225
|
}
|
|
227
226
|
|