babel-plugin-putout 8.0.0 → 9.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.
Files changed (2) hide show
  1. package/lib/index.js +22 -27
  2. package/package.json +5 -6
package/lib/index.js CHANGED
@@ -5,32 +5,27 @@ import {
5
5
  } from 'putout';
6
6
  import {parseOptions} from 'putout/parse-options';
7
7
 
8
- export default () => {
9
- let code = '';
10
-
11
- return {
12
- visitor: {
13
- Program(path, {filename, opts}) {
14
- const options = parseOptions({
15
- filename,
16
- options: opts,
17
- });
18
-
19
- transform(path.container, code, options);
20
- },
21
- },
22
-
23
- parserOverride(source) {
24
- code = source;
25
- return parse(source);
26
- },
27
-
28
- generatorOverride(ast) {
29
- const code = print(ast, {});
8
+ export default () => ({
9
+ visitor: {
10
+ Program(path, {filename, opts}) {
11
+ const options = parseOptions({
12
+ filename,
13
+ options: opts,
14
+ });
30
15
 
31
- return {
32
- code,
33
- };
16
+ transform(path.container, options);
34
17
  },
35
- };
36
- };
18
+ },
19
+
20
+ parserOverride(source) {
21
+ return parse(source);
22
+ },
23
+
24
+ generatorOverride(ast) {
25
+ const code = print(ast);
26
+
27
+ return {
28
+ code,
29
+ };
30
+ },
31
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-putout",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "type": "module",
5
5
  "description": "babel plugin for putout",
6
6
  "author": "Coderaiser <coderaiser@cloudcmd.io>",
@@ -15,12 +15,11 @@
15
15
  "devDependencies": {
16
16
  "@babel/core": "^8.0.0-alpha.1",
17
17
  "@babel/eslint-plugin-development": "^8.0.0-alpha.1",
18
- "@putout/eslint-flat": "^3.0.0",
19
18
  "c8": "^10.0.0",
20
- "eslint": "^10.0.0-alpha.0",
19
+ "eslint": "^10.0.0",
21
20
  "eslint-plugin-n": "^17.0.0",
22
- "eslint-plugin-putout": "^29.0.0",
23
- "madrun": "^12.0.0",
21
+ "eslint-plugin-putout": "^31.0.0",
22
+ "madrun": "^13.0.0",
24
23
  "mocha": "^11.1.0",
25
24
  "supertape": "^12.0.0"
26
25
  },
@@ -43,7 +42,7 @@
43
42
  "babel-plugin"
44
43
  ],
45
44
  "peerDependencies": {
46
- "putout": ">=41"
45
+ "putout": ">=42"
47
46
  },
48
47
  "publishConfig": {
49
48
  "access": "public"