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 +7 -0
- package/lib/cli/eslint/index.js +2 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/lib/cli/eslint/index.js
CHANGED
|
@@ -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.
|
|
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",
|