@putout/plugin-putout 28.15.0 → 28.17.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/README.md CHANGED
@@ -86,6 +86,7 @@ npm i @putout/plugin-putout -D
86
86
  - ✅ [remove-empty-object-from-transform](#remove-empty-object-from-transform);
87
87
  - ✅ [remove-unused-get-properties-argument](#remove-unused-get-properties-argument);
88
88
  - ✅ [remove-useless-printer-option](#remove-useless-printer-option);
89
+ - ✅ [remove-message-from-no-report-after-transform](#remove-message-from-no-report-after-transform);
89
90
  - ✅ [rename-operate-to-operator](#rename-operate-to-operator);
90
91
  - ✅ [replace-operate-with-operator](#replace-operate-with-operator);
91
92
  - ✅ [replace-test-message](#replace-test-message);
@@ -173,6 +174,7 @@ npm i @putout/plugin-putout -D
173
174
  "putout/remove-empty-array-from-process": "on",
174
175
  "putout/remove-empty-object-from-transform": "on",
175
176
  "putout/remove-useless-printer-option": "on",
177
+ "putout/remove-message-from-no-report-after-transform": "on",
176
178
  "putout/simplify-replace-template": "on"
177
179
  }
178
180
  }
@@ -1963,6 +1965,28 @@ const {
1963
1965
  } = getProperties(__jsonPath, ['parser', 'rules', 'extends']);
1964
1966
  ```
1965
1967
 
1968
+ ## remove-message-from-no-report-after-transform
1969
+
1970
+ Check it out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/b40b73049530d6c4e142a4d4b09e29e2/2167f30abebc5713e2db916a2a0152e13722e7b1).
1971
+
1972
+ ### ❌ Example of incorrect code
1973
+
1974
+ ```js
1975
+ test('github: set-message-of-commit-fixes: no report after transform', (t) => {
1976
+ t.noReportAfterTransform('set-message-of-commit-fixes', `Set 'message' of 'Commit fixes'`);
1977
+ t.end();
1978
+ });
1979
+ ```
1980
+
1981
+ ### ✅ Example of correct code
1982
+
1983
+ ```js
1984
+ test('github: set-message-of-commit-fixes: no report after transform', (t) => {
1985
+ t.noReportAfterTransform('set-message-of-commit-fixes');
1986
+ t.end();
1987
+ });
1988
+ ```
1989
+
1966
1990
  ## remove-useless-printer-option
1967
1991
 
1968
1992
  Check it out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/f176313cf67fd6d7138470385511319f/5b26aa45db21f250016d228b7bbabbb3c10b582b).
@@ -18,6 +18,7 @@ const FIXTURE = [
18
18
  const NAMES = [
19
19
  ...FIXTURE,
20
20
  'transform with options',
21
+ 'report with options',
21
22
  'no transform with options',
22
23
  'no report',
23
24
  'no transform',
@@ -32,6 +33,7 @@ export const match = () => ({
32
33
  't.noReport(__a, __b)': check,
33
34
  't.noReportAfterTransform(__a)': check,
34
35
  't.report(__a, __b)': check,
36
+ 't.reportWithOptions(__a, __b, __c)': check,
35
37
  't.transform(__a)': check,
36
38
  't.transform(__a, __b)': check,
37
39
  't.transformWithOptions(__a, __b)': check,
@@ -47,6 +49,7 @@ export const replace = () => ({
47
49
  't.transform(__a)': transform,
48
50
  't.transform(__a, __b)': transform,
49
51
  't.transformWithOptions(__a, __b)': transform,
52
+ 't.reportWithOptions(__a, __b, __c)': transform,
50
53
  't.noTransformWithOptions(__a, __b)': transform,
51
54
  't.noTransform(__a)': transform,
52
55
  't.noReportAfterTransform(__a)': transform,
package/lib/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import * as removeMessageFromNoReportAfterTransform from './remove-message-from-no-report-after-transform/index.js';
1
2
  import * as addCrawlFile from './add-crawl-file/index.js';
2
3
  import * as applyDesturcturing from './apply-desturcturing/index.js';
3
4
  import * as convertGetFileContentToReadFileContent from './convert-get-file-content-to-read-file-content/index.js';
@@ -156,4 +157,5 @@ export const rules = {
156
157
  'convert-get-file-content-to-read-file-content': convertGetFileContentToReadFileContent,
157
158
  'apply-desturcturing': applyDesturcturing,
158
159
  'add-crawl-file': addCrawlFile,
160
+ 'remove-message-from-no-report-after-transform': removeMessageFromNoReportAfterTransform,
159
161
  };
@@ -0,0 +1,6 @@
1
+ export const report = () => `Avoid 'message' in 't.noReportAfterTransform()'`;
2
+
3
+ export const replace = () => ({
4
+ 't.noReportAfterTransform("__a", `__b`)': 't.noReportAfterTransform("__a")',
5
+ 't.noReportAfterTransform("__a", "__b")': 't.noReportAfterTransform("__a")',
6
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout",
3
- "version": "28.15.0",
3
+ "version": "28.17.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with plugins development",
@@ -49,7 +49,7 @@
49
49
  "@putout/plugin-tape": "*",
50
50
  "@putout/test": "^15.0.0",
51
51
  "c8": "^10.0.0",
52
- "eslint": "^10.0.0-alpha.0",
52
+ "eslint": "^10.0.0",
53
53
  "eslint-plugin-n": "^17.0.0",
54
54
  "eslint-plugin-putout": "^30.0.0",
55
55
  "madrun": "^12.0.0",