putout 32.14.0 → 32.15.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 CHANGED
@@ -1,3 +1,18 @@
1
+ 2023.11.03, v32.15.0
2
+
3
+ fix:
4
+ - bdb3d1344 @putout/plugin-config: move-formatter-up: processor
5
+
6
+ feature:
7
+ - 6e4c6d1d1 @putout/plugin-putout-config: move-formatter-up: printer
8
+ - e5e75a070 @putout/cli-choose-formatter: lint putout config
9
+ - 36b4dccbe @putout/plugin-putout-config: move-formatter-up: newline
10
+ - 80227e2d4 putout: lintJSON: add
11
+ - 6c8baa9ca @putout/plugin-putout-config: move-formatter-up
12
+ - 6a7940d8a @putout/plugin-putout-config: move-formatter-up: add
13
+ - 661011ec7 @putout/plugin-conditions: remove-same-values-condition: add reverse
14
+ - 0644445d7 @putout/plugin-conditions: remove-same-values-condition: exclude conditions without ContinueStatment
15
+
1
16
  2023.11.02, v32.14.0
2
17
 
3
18
  feature:
@@ -0,0 +1,13 @@
1
+ import {
2
+ branch,
3
+ merge,
4
+ } from '@putout/processor-json';
5
+ import putout from '../putout.js';
6
+
7
+ export const lintJSON = (rawSource, options) => {
8
+ const list = branch(rawSource);
9
+ const {source} = list[0];
10
+ const {code} = putout(source, options);
11
+
12
+ return merge(rawSource, [code]);
13
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "32.14.0",
3
+ "version": "32.15.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, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
@@ -18,7 +18,8 @@
18
18
  "./cli": "./lib/cli/index.js",
19
19
  "./cli/run": "./lib/cli/runner/work",
20
20
  "./loader": "./lib/loader.mjs",
21
- "./package.json": "./package.json"
21
+ "./package.json": "./package.json",
22
+ "./lint/json": "./lib/lint/json.mjs"
22
23
  },
23
24
  "bin": {
24
25
  "putout": "bin/putout.mjs"