eslint-plugin-putout 29.2.1 → 29.2.3

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.
package/lib/markdown.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import parserOpts from '@putout/engine-parser/babel/options';
1
+ import * as parserOpts from '@putout/engine-parser/babel/options';
2
2
  import parserPlugins from '@putout/engine-parser/babel/plugins';
3
3
  import babel from '#babel/eslint-parser/experimental-worker';
4
4
  import tsConfig from './ts.mjs';
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ const {putoutSync} = require('./sync.mjs');
4
+
3
5
  const getContextOptions = ({options}) => {
4
6
  const [allContextOptions = {}] = options;
5
7
  return allContextOptions;
@@ -19,7 +21,6 @@ module.exports = {
19
21
 
20
22
  create(context) {
21
23
  const {esm, ...options} = getContextOptions(context);
22
- const putoutSync = require('./sync');
23
24
 
24
25
  return putoutSync({
25
26
  context,
@@ -1,23 +1,19 @@
1
- 'use strict';
2
-
3
- const process = require('node:process');
4
- const {tryCatch} = require('try-catch');
5
- const {ignores} = require('putout/ignores');
6
-
7
- const {
1
+ import process from 'node:process';
2
+ import {tryCatch} from 'try-catch';
3
+ import {ignores} from 'putout/ignores';
4
+ import {parseOptions} from 'putout/parse-options';
5
+ import {
8
6
  findPlaces,
9
7
  transform,
10
8
  print,
11
9
  parse,
12
- } = require('putout');
13
-
14
- const {parseOptions} = require('putout/parse-options');
15
- const {parseError} = require('../parse-error');
10
+ } from 'putout';
11
+ import {parseError} from './parse-error.js';
16
12
 
17
13
  const cwd = process.cwd();
18
14
  const EMPTY_VISITORS = {};
19
15
 
20
- module.exports = ({context, options}) => {
16
+ export const putoutSync = ({context, options}) => {
21
17
  const name = context.filename;
22
18
  const resultOptions = parseOptions({
23
19
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-putout",
3
- "version": "29.2.1",
3
+ "version": "29.2.3",
4
4
  "type": "commonjs",
5
5
  "description": "ESLint plugin for 🐊Putout",
6
6
  "release": false,
@@ -63,11 +63,11 @@
63
63
  "devDependencies": {
64
64
  "@babel/plugin-syntax-typescript": "^8.0.0-alpha.1",
65
65
  "@putout/plugin-eslint-plugin": "^7.0.0",
66
- "@putout/test": "^14.0.0",
66
+ "@putout/test": "^15.0.0",
67
67
  "c8": "^10.0.0",
68
68
  "eslint": "^10.0.0-alpha.0",
69
69
  "eslint-plugin-eslint-plugin": "^7.0.0",
70
- "madrun": "^11.0.0",
70
+ "madrun": "^12.0.0",
71
71
  "mocha": "^11.0.1",
72
72
  "montag": "^1.0.0",
73
73
  "supertape": "^11.0.3"
@@ -81,7 +81,7 @@
81
81
  }
82
82
  },
83
83
  "engines": {
84
- "node": ">=20"
84
+ "node": ">=22"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "eslint": ">=9",