@putout/plugin-putout 26.1.1 → 26.3.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.
package/lib/declare/index.js
CHANGED
|
@@ -55,8 +55,7 @@ export const replace = () => ({
|
|
|
55
55
|
const buildRequire = template(`const NAME = REQUIRE`);
|
|
56
56
|
|
|
57
57
|
function declareRequire({__a, __b}, path) {
|
|
58
|
-
const shortName = __a.value || __a
|
|
59
|
-
.name
|
|
58
|
+
const shortName = __a.value || __a.name
|
|
60
59
|
.split('/')
|
|
61
60
|
.pop();
|
|
62
61
|
|
|
@@ -18,7 +18,7 @@ const INCORRECT = {
|
|
|
18
18
|
REPORT: /: (no report after transform|no report|transform|no transform)/,
|
|
19
19
|
NO_REPORT: /: (no report after transform|report|transform|no transform)/,
|
|
20
20
|
NO_REPORT_AFTER_TRANSFORM: /: (report|transform|no transform|no report)/,
|
|
21
|
-
NO_REPORT_WITH_OPTIONS: /: (no report after transform
|
|
21
|
+
NO_REPORT_WITH_OPTIONS: /: (no report after transform(\swith options)?|report|transform|no transform|no report)/,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export const traverse = ({push}) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-putout",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin helps with plugins development",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"chalk": "^5.3.0",
|
|
53
53
|
"eslint": "^9.0.0",
|
|
54
54
|
"eslint-plugin-n": "^17.0.0",
|
|
55
|
-
"eslint-plugin-putout": "^
|
|
55
|
+
"eslint-plugin-putout": "^28.0.0",
|
|
56
56
|
"madrun": "^11.0.0",
|
|
57
57
|
"montag": "^1.2.1",
|
|
58
58
|
"nodemon": "^3.0.1",
|