@putout/eslint 2.4.0 → 3.0.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.
@@ -146,9 +146,8 @@ function isLastNodeInBody(node) {
146
146
  const {length} = node.parent.body;
147
147
  const n = length - 1;
148
148
 
149
- if (node === node.parent?.body?.[n]) {
149
+ if (node === node.parent?.body?.[n])
150
150
  return true;
151
- }
152
151
  }
153
152
 
154
153
  return false;
package/lib/eslint.js CHANGED
@@ -71,8 +71,7 @@ module.exports = async ({name, code, fix, config, putout = false}) => {
71
71
  }
72
72
 
73
73
  !putout && disablePutout(finalConfig);
74
- // that's right, we disabled "putout" rules in "config"
75
- // and now it located in eslint's cache
74
+ // that's right, we disabled "putout" rules in "config" // and now it located in eslint's cache
76
75
 
77
76
  const results = await eslint.lintText(code, {
78
77
  filePath: name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/eslint",
3
- "version": "2.4.0",
3
+ "version": "3.0.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",
@@ -29,7 +29,7 @@
29
29
  "report": "madrun report"
30
30
  },
31
31
  "dependencies": {
32
- "find-up": "^6.3.0",
32
+ "find-up": "^7.0.0",
33
33
  "try-to-catch": "^3.0.1"
34
34
  },
35
35
  "keywords": [
@@ -41,20 +41,20 @@
41
41
  "c8": "^8.0.0",
42
42
  "eslint": "^8.45.0",
43
43
  "eslint-plugin-n": "^16.0.0",
44
- "eslint-plugin-putout": "^20.0.0",
44
+ "eslint-plugin-putout": "^22.0.0",
45
45
  "just-camel-case": "^4.0.2",
46
46
  "lerna": "^6.0.1",
47
- "madrun": "^9.0.0",
47
+ "madrun": "^10.0.0",
48
48
  "mock-require": "^3.0.3",
49
49
  "montag": "^1.0.0",
50
50
  "nodemon": "^3.0.1",
51
51
  "putout": "*",
52
- "supertape": "^8.0.0",
52
+ "supertape": "^9.0.0",
53
53
  "try-catch": "^3.0.0"
54
54
  },
55
55
  "license": "MIT",
56
56
  "engines": {
57
- "node": ">=16"
57
+ "node": ">=18"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"