putout 24.2.2 → 24.3.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,10 @@
1
+ 2022.01.24, v24.3.0
2
+
3
+ feature:
4
+ - (putout) eslint: add ability to enable putout/putout rule with a flag
5
+ - (putout/eslint) add ability to enable putout
6
+
7
+
1
8
  2022.01.24, v24.2.2
2
9
 
3
10
  fix:
@@ -49,7 +49,7 @@ const getESLint = ({fix, config}) => {
49
49
  };
50
50
  };
51
51
 
52
- module.exports = async ({name, code, fix, config}) => {
52
+ module.exports = async ({name, code, fix, config, putout = false}) => {
53
53
  const noChanges = [
54
54
  code,
55
55
  [],
@@ -81,7 +81,7 @@ module.exports = async ({name, code, fix, config}) => {
81
81
  ];
82
82
  }
83
83
 
84
- disablePutout(finalConfig);
84
+ !putout && disablePutout(finalConfig);
85
85
 
86
86
  // that's right, we disabled "putout" rules in "config"
87
87
  // and now it located in eslint's cache
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "24.2.2",
3
+ "version": "24.3.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 and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",