@putout/eslint 2.4.0 → 3.1.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.
@@ -2,7 +2,6 @@
2
2
 
3
3
  const prepare = (plugin, context, options) => (node) => {
4
4
  const {filter, report} = plugin;
5
-
6
5
  const {sourceCode, filename} = context;
7
6
 
8
7
  const getText = sourceCode.getText.bind(sourceCode);
@@ -19,7 +18,6 @@ const prepare = (plugin, context, options) => (node) => {
19
18
  });
20
19
 
21
20
  const text = getText(node);
22
-
23
21
  const path = {
24
22
  text,
25
23
  node,
@@ -95,7 +93,7 @@ function getMeta(plugin) {
95
93
  docs: {
96
94
  recommended,
97
95
  },
98
- schema: {},
96
+ schema: false,
99
97
  fixable,
100
98
  };
101
99
  }
@@ -146,9 +144,8 @@ function isLastNodeInBody(node) {
146
144
  const {length} = node.parent.body;
147
145
  const n = length - 1;
148
146
 
149
- if (node === node.parent?.body?.[n]) {
147
+ if (node === node.parent?.body?.[n])
150
148
  return true;
151
- }
152
149
  }
153
150
 
154
151
  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.1.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": [
@@ -39,22 +39,22 @@
39
39
  "devDependencies": {
40
40
  "@putout/plugin-eslint-plugin": "*",
41
41
  "c8": "^8.0.0",
42
- "eslint": "^8.45.0",
42
+ "eslint": "^9.0.0-alpha.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"