redput 1.14.0 → 1.15.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,13 @@
1
+ 2023.11.28, v1.15.1
2
+
3
+ feature:
4
+ - e692952 redput: @putout/plugin-putout v17.0.0
5
+
6
+ 2023.11.28, v1.15.0
7
+
8
+ feature:
9
+ - ec9c667 redput: add ability to disable rules in index
10
+
1
11
  2023.11.28, v1.14.0
2
12
 
3
13
  feature:
@@ -23,5 +23,8 @@ function parseComment(comment) {
23
23
  if (error)
24
24
  return ['', raw];
25
25
 
26
- return [data[0], data[1]];
26
+ return [
27
+ data[0],
28
+ data[1],
29
+ ];
27
30
  }
package/lib/redput.js CHANGED
@@ -26,6 +26,7 @@ export const redput = async (link, {token}) => {
26
26
  options,
27
27
  lines,
28
28
  } = parsePlugin(raw);
29
+
29
30
  const rule = lines.join('\n');
30
31
  const report = getReport(rule);
31
32
 
@@ -10,6 +10,9 @@ export const addRule = (name, source, ruleOptions) => {
10
10
  name,
11
11
  ruleOptions,
12
12
  }],
13
+ 'putout/declare': ['on', {
14
+ dismiss: 'getRule',
15
+ }],
13
16
  },
14
17
  plugins: [
15
18
  ['putout', pluginPutout],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redput",
3
- "version": "1.14.0",
3
+ "version": "1.15.1",
4
4
  "description": "CLI tool to convert source from 🐊Putout Editor to files",
5
5
  "main": "lib/redput.js",
6
6
  "bin": {
@@ -59,7 +59,7 @@
59
59
  "dependencies": {
60
60
  "@putout/plugin-convert-esm-to-commonjs": "^6.0.0",
61
61
  "@putout/plugin-declare": "^2.0.1",
62
- "@putout/plugin-putout": "^16.7.0",
62
+ "@putout/plugin-putout": "^17.0.0",
63
63
  "@putout/plugin-remove-unused-variables": "^7.0.0",
64
64
  "node-fetch": "^3.3.2",
65
65
  "octokit": "^3.1.0",