@putout/plugin-putout 26.2.0 → 26.3.1

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.
@@ -1,5 +1,5 @@
1
1
  import {operator, types} from 'putout';
2
- import toSnakeCase from 'just-snake-case';
2
+ import toKebabCase from 'just-kebab-case';
3
3
 
4
4
  const {
5
5
  arrayExpression,
@@ -56,7 +56,7 @@ export const replace = () => ({
56
56
  if (isArrayExpression(value))
57
57
  return 't.noReportWithOptions(__a, __b)';
58
58
 
59
- const name = toSnakeCase(value.name);
59
+ const name = toKebabCase(value.name);
60
60
 
61
61
  path.node.arguments[1] = arrayExpression([
62
62
  arrayExpression([stringLiteral(name), value]),
@@ -9,4 +9,5 @@ export const declare = () => ({
9
9
  createTest: `import {createTest} from '@putout/test'`,
10
10
  ...operator,
11
11
  getRule: `const getRule = ${getRule.toString()};`,
12
+ print: `import {print} from 'putout'`,
12
13
  });
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout",
3
- "version": "26.2.0",
3
+ "version": "26.3.1",
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",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "fullstore": "^3.0.0",
35
35
  "just-camel-case": "^6.2.0",
36
- "just-snake-case": "^3.2.0",
36
+ "just-kebab-case": "^4.2.0",
37
37
  "try-catch": "^3.0.0"
38
38
  },
39
39
  "keywords": [
@@ -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": "^27.0.0",
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",