@putout/plugin-putout 11.10.0 → 11.11.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
@@ -133,6 +133,8 @@ const test = createTest({
133
133
 
134
134
  ## convert-number-to-numeric
135
135
 
136
+ Prevent `Babel` warning: `The node type NumberLiteral has been renamed to NumericLiteral`.
137
+
136
138
  ### ❌ Example of incorrect code
137
139
 
138
140
  ```js
@@ -4,11 +4,15 @@ module.exports.report = () => `Use 'isNumericLiteral()' instead of 'isNumberLite
4
4
 
5
5
  module.exports.fix = (path) => {
6
6
  path.scope.rename('isNumberLiteral', 'isNumericLiteral');
7
+ path.scope.rename('NumberLiteral', 'NumericLiteral');
7
8
  };
8
9
 
9
10
  module.exports.traverse = ({push}) => ({
10
11
  'isNumberLiteral(__a)': (path) => {
11
12
  push(path);
12
13
  },
14
+ 'NumberLiteral(__a)': (path) => {
15
+ push(path);
16
+ },
13
17
  });
14
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout",
3
- "version": "11.10.0",
3
+ "version": "11.11.0",
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",