@putout/eslint 3.7.0 → 3.8.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.
Files changed (2) hide show
  1. package/lib/eslint.js +2 -5
  2. package/package.json +1 -1
package/lib/eslint.js CHANGED
@@ -99,17 +99,14 @@ module.exports = async ({name, code, fix, config, putout = false}) => {
99
99
  return noChanges;
100
100
 
101
101
  const [report] = results;
102
- const {output} = report;
102
+ const {output = code} = report;
103
103
 
104
104
  const places = report
105
105
  .messages
106
106
  .map(convertToPlace)
107
107
  .filter(Boolean);
108
108
 
109
- return [
110
- output || code,
111
- places,
112
- ];
109
+ return [output, places];
113
110
  };
114
111
 
115
112
  module.exports._noConfigFound = noConfigFound;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/eslint",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Wrapper that simplifies ESLint API and makes it compatible with 🐊Putout",