@putout/eslint 2.1.0 → 2.2.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.
@@ -34,7 +34,7 @@ const prepare = (plugin, context, options) => (node) => {
34
34
  getSpacesBeforeNode,
35
35
  getSpacesAfterNode,
36
36
  filename,
37
- });
37
+ }, options);
38
38
 
39
39
  if (!result)
40
40
  return;
package/lib/eslint.js CHANGED
@@ -55,6 +55,7 @@ module.exports = async ({name, code, fix, config, putout = false}) => {
55
55
  const places = [
56
56
  convertToPlace(cutNewLine(eslintError)),
57
57
  ];
58
+
58
59
  return [code, places];
59
60
  }
60
61
 
@@ -67,13 +68,14 @@ module.exports = async ({name, code, fix, config, putout = false}) => {
67
68
  const places = [
68
69
  convertToPlace(parseError(configError)),
69
70
  ];
71
+
70
72
  return [code, places];
71
73
  }
72
74
 
73
75
  !putout && disablePutout(finalConfig);
74
-
75
76
  // that's right, we disabled "putout" rules in "config"
76
77
  // and now it located in eslint's cache
78
+
77
79
  const results = await eslint.lintText(code, {
78
80
  filePath: name,
79
81
  });
package/lib/lint/index.js CHANGED
@@ -47,8 +47,5 @@ module.exports.lint = (source, {fix = true, plugins, filename, options = []}) =>
47
47
  messages,
48
48
  } = linter.verifyAndFix(source, allOptions, mainOptions);
49
49
 
50
- return [
51
- output,
52
- messages.map(convertToPlace),
53
- ];
50
+ return [output, messages.map(convertToPlace)];
54
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/eslint",
3
- "version": "2.1.0",
3
+ "version": "2.2.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",
@@ -40,7 +40,7 @@
40
40
  "@putout/plugin-eslint-plugin": "*",
41
41
  "c8": "^7.5.0",
42
42
  "eslint": "^8.0.1",
43
- "eslint-plugin-n": "^15.2.4",
43
+ "eslint-plugin-n": "^16.0.0",
44
44
  "eslint-plugin-putout": "^17.0.0",
45
45
  "just-camel-case": "^4.0.2",
46
46
  "lerna": "^6.0.1",