@putout/plugin-putout 23.14.0 → 23.14.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/README.md CHANGED
@@ -189,7 +189,7 @@ t.report('a');
189
189
  ### ✅ Example of correct code
190
190
 
191
191
  ```js
192
- t.noReportWithOptons('rename-files-full', {
192
+ t.noReportWithOptions('rename-files-full', {
193
193
  from: ['/'],
194
194
  to: [],
195
195
  });
@@ -14,12 +14,16 @@ module.exports.report = (path) => {
14
14
  if (compare(path, 't.noReport(__a, "__b")'))
15
15
  return `Use 't.noReport(__a)' instead of 't.noReport(__a, "__b")'`;
16
16
 
17
- return `Use '${TYPES[name]}()' instead of '${name}()'`;
17
+ if (compare(path, 't.noReportWithOptions(__a, __b, __c)'))
18
+ return `Use 't.noReportWithOptions(__a, __c)' instead of 't.noReportWithOptions(__a, __b, __c)'`;
19
+
20
+ return `Use 't.${TYPES[name]}()' instead of 't.${name}()'`;
18
21
  };
19
22
 
20
23
  module.exports.replace = () => ({
21
- 't.noReport(__a, __object)': 't.noReportWithOptons(__a, __object)',
24
+ 't.noReport(__a, __object)': 't.noReportWithOptions(__a, __object)',
22
25
  't.noReport(__a, "__b")': 't.noReport(__a)',
23
26
  't.report(__a)': 't.noReport(__a)',
24
27
  't.noReportWithOptions(__a)': 't.noReport(__a)',
28
+ 't.noReportWithOptions(__a, __b, __c)': 't.noReportWithOptions(__a, __c)',
25
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout",
3
- "version": "23.14.0",
3
+ "version": "23.14.2",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with plugins development",