putout 21.4.0 → 22.0.1

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 CHANGED
@@ -1,3 +1,47 @@
1
+ 2021.11.14, v22.0.1
2
+
3
+ fix:
4
+ - (putout) parse-options: read rules: directory with config -> current working directory
5
+ - test(@putout/engine-processor) markdown disable change without fix in favour of simpler rules
6
+ - feature(@putout/processor-markdown) add support of rules splited to fix and traverse
7
+
8
+ feature:
9
+ - (@putout/rules-set-homepage) update homepage so it linked to package directory (#88)
10
+ - (@putout/processor-markdown) add merge-heading-spaces
11
+ - (@putout/processor-markdown) add support of rules splited to fix and traverse
12
+ - (@putout/processor-markdown) rules: add remove-dependencies-badge (#85)
13
+ - (@putout/plugin-tape) remove-stop-all: add support of traceImport
14
+
15
+
16
+ 2021.11.10, v22.0.0
17
+
18
+ feature:
19
+ - (putout) remove apply-filter-boolean from default install, use remove-useless-functions instead'
20
+
21
+
22
+ 2021.11.10, v21.6.0
23
+
24
+ feature:
25
+ - (package) @putout/plugin-remove-useless-functions v2.0.0
26
+ - (@putout/plugin-remove-useless-functions) drop support of node < 14
27
+ - (putout) apply-filter-boolean: disabled and will be removed in next major version
28
+ - (@putout/plugin-remove-useless-functions) add support of id
29
+ - (eslint-plugin-putout) add babel options from @putout/engine-parser for TypeScript and Markdown
30
+ - (@putout/engine-parser) export babel/options
31
+ - (@putout/plugin-tape) add-stop-all: add support of test.only(), test.skip()
32
+ - (@putout/plugin-tape) remove-stop-all: add support of test.only(), test.skip()
33
+
34
+
35
+ 2021.11.10, v21.5.0
36
+
37
+ feature:
38
+ - (putout) terminal: add support of WebStorm, VS Code
39
+ - (@putout/plugin-tape) add remove-stop-all
40
+ - (@putout/plugin-tape) add add-await-to-re-import
41
+ - (@putout/plugin-tape) add-stop-all: add support of async functions
42
+ - (eslint-plugin-putout) add add-newlines-between-types-in-union
43
+
44
+
1
45
  2021.11.08, v21.4.0
2
46
 
3
47
  feature:
package/lib/cli/index.js CHANGED
@@ -16,6 +16,10 @@ const {version} = require('../../package.json');
16
16
 
17
17
  const simport = createSimport(__filename);
18
18
 
19
+ const {env} = process;
20
+ const isIDE = env.TERMINAL_EMULATOR || env.TERM_PROGRAM === 'vscode';
21
+ const chooseName = (name, resolvedName) => !isIDE ? name : resolvedName;
22
+
19
23
  const {
20
24
  runProcessors,
21
25
  getFilePatterns,
@@ -322,7 +326,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
322
326
  const formatterProxy = createFormatterProxy({
323
327
  report,
324
328
  formatterOptions,
325
- name,
329
+ name: chooseName(name, resolvedName),
326
330
  places,
327
331
  index: currentIndex,
328
332
  count: length,
@@ -372,7 +376,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
372
376
  const line = report(currentFormat, {
373
377
  report,
374
378
  formatterOptions,
375
- name,
379
+ name: chooseName(name, resolvedName),
376
380
  source: rawSource,
377
381
  places,
378
382
  index: currentIndex,
@@ -56,7 +56,7 @@ module.exports = (info = {}) => {
56
56
 
57
57
  const resultOptions = merge(
58
58
  readCodeMods(),
59
- readRules(dir, rulesdir),
59
+ readRules('./', rulesdir),
60
60
  mergedOptions,
61
61
  mergedDefaultsMatch,
62
62
  mergedMatch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "21.4.0",
3
+ "version": "22.0.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "🐊 Pluggable and configurable code transformer with built-in eslint, babel plugins and jscodeshift codemods support of js, jsx typescript, flow files, markdown, yaml and json",
6
6
  "homepage": "http://github.com/coderaiser/putout",
@@ -71,7 +71,6 @@
71
71
  "@putout/plugin-apply-array-at": "^1.0.0",
72
72
  "@putout/plugin-apply-as-type-assertions": "^1.0.0",
73
73
  "@putout/plugin-apply-destructuring": "^5.0.0",
74
- "@putout/plugin-apply-filter-boolean": "^1.0.0",
75
74
  "@putout/plugin-apply-if-condition": "^1.0.0",
76
75
  "@putout/plugin-apply-is-array": "^2.0.0",
77
76
  "@putout/plugin-apply-numeric-separators": "^1.0.0",
@@ -149,7 +148,7 @@
149
148
  "@putout/plugin-remove-useless-continue": "^1.0.0",
150
149
  "@putout/plugin-remove-useless-escape": "^1.0.0",
151
150
  "@putout/plugin-remove-useless-for-of": "^2.0.0",
152
- "@putout/plugin-remove-useless-functions": "^1.0.3",
151
+ "@putout/plugin-remove-useless-functions": "^2.0.0",
153
152
  "@putout/plugin-remove-useless-map": "^1.0.0",
154
153
  "@putout/plugin-remove-useless-mapped-types": "^1.0.0",
155
154
  "@putout/plugin-remove-useless-mapping-modifiers": "^1.0.0",
package/putout.json CHANGED
@@ -140,7 +140,6 @@
140
140
  },
141
141
  "plugins": [
142
142
  "apply-array-at",
143
- "apply-filter-boolean",
144
143
  "apply-is-array",
145
144
  "apply-destructuring",
146
145
  "apply-optional-chaining",