@putout/plugin-putout 29.0.0 → 29.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.
package/README.md
CHANGED
|
@@ -1323,9 +1323,6 @@ This is additional tests, if you forget to test some case (from a big list of ru
|
|
|
1323
1323
|
|
|
1324
1324
|
## declare
|
|
1325
1325
|
|
|
1326
|
-
Depends on [@putout/convert-esm-to-commonjs](https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-esm-to-commonjs#readme) and
|
|
1327
|
-
[@putout/declare](https://github.com/coderaiser/putout/tree/master/packages/plugin-declare#readme).
|
|
1328
|
-
|
|
1329
1326
|
### ❌ Example of incorrect code
|
|
1330
1327
|
|
|
1331
1328
|
```js
|
|
@@ -1336,7 +1333,7 @@ isIdentifier(a);
|
|
|
1336
1333
|
### ✅ Example of correct code
|
|
1337
1334
|
|
|
1338
1335
|
```js
|
|
1339
|
-
|
|
1336
|
+
import {operator, types} from 'putout';
|
|
1340
1337
|
|
|
1341
1338
|
const {compare} = operator;
|
|
1342
1339
|
const {isIdentifier} = types;
|
|
@@ -3,7 +3,6 @@ export default {
|
|
|
3
3
|
findFile: 'const {findFile} = operator',
|
|
4
4
|
findFileUp: 'const {findFileUp} = operator',
|
|
5
5
|
renameFile: 'const {renameFile} = operator',
|
|
6
|
-
renameFiles: 'const {renameFiles} = operator',
|
|
7
6
|
removeFile: 'const {removeFile} = operator',
|
|
8
7
|
moveFile: 'const {moveFile} = operator',
|
|
9
8
|
createFile: 'const {createFile} = operator',
|
|
@@ -4,8 +4,12 @@ import jsx from './jsx.js';
|
|
|
4
4
|
import keyword from './keyword.js';
|
|
5
5
|
import parens from './parens.js';
|
|
6
6
|
import regexp from './regexp.js';
|
|
7
|
+
import creators from './creators.json' with {
|
|
8
|
+
type: 'json',
|
|
9
|
+
};
|
|
7
10
|
|
|
8
11
|
export default {
|
|
12
|
+
...creators,
|
|
9
13
|
...filesystem,
|
|
10
14
|
...json,
|
|
11
15
|
...jsx,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-putout",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.1.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",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"c8": "^10.0.0",
|
|
52
52
|
"eslint": "^10.0.0",
|
|
53
53
|
"eslint-plugin-n": "^17.0.0",
|
|
54
|
-
"eslint-plugin-putout": "^
|
|
55
|
-
"madrun": "^
|
|
54
|
+
"eslint-plugin-putout": "^31.0.0",
|
|
55
|
+
"madrun": "^13.0.0",
|
|
56
56
|
"montag": "^1.2.1",
|
|
57
57
|
"nodemon": "^3.0.1",
|
|
58
58
|
"supertape": "^12.0.0"
|