@indentier/plugin-go 0.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/LICENSE +21 -0
- package/README.md +41 -0
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.mjs +21 -0
- package/icon.png +0 -0
- package/icon.svg +30 -0
- package/package.json +76 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 otoneko.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="./icon.png" width="256" height="256" alt="Indentier">
|
|
4
|
+
|
|
5
|
+
# @indentier/plugin-go
|
|
6
|
+
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/@indentier/plugin-go)
|
|
10
|
+
[](https://github.com/indentier/plugin-go/actions/workflows/ci.yml)
|
|
11
|
+
[](./LICENSE)
|
|
12
|
+
|
|
13
|
+
> Go support for [Indentier](https://github.com/indentier/indentier).
|
|
14
|
+
|
|
15
|
+
Full documentation: **[indentier.github.io](https://indentier.github.io)**
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm i -D indentier @indentier/plugin-go
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Setup
|
|
24
|
+
|
|
25
|
+
```jsonc
|
|
26
|
+
// .indentierrc.json
|
|
27
|
+
{
|
|
28
|
+
"plugins": ["@indentier/plugin-go"]
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
<!-- prettier-ignore -->
|
|
33
|
+
| | |
|
|
34
|
+
|-|-|
|
|
35
|
+
| Language | Go |
|
|
36
|
+
| Extensions | `.go` |
|
|
37
|
+
| Ruby mode | Yes — injects `var end any=nil`; end statement: `_ = end` |
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
[MIT](./LICENSE) © otoneko.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* indentier plugin for Go (.go)
|
|
4
|
+
*
|
|
5
|
+
* - Declaration: `var end any=nil` (package-level variable)
|
|
6
|
+
* - End statement: `_ = end` (blank assignment avoids "evaluated but not used" error)
|
|
7
|
+
* - Insertion index: just before the first `func`/`var`/`const`/`type` declaration,
|
|
8
|
+
* i.e. after the `package` statement and any `import` blocks.
|
|
9
|
+
*/
|
|
10
|
+
const plugin = {
|
|
11
|
+
extensions: [".go"],
|
|
12
|
+
rubyCompatible: true,
|
|
13
|
+
declarationTemplate: "var end any=nil",
|
|
14
|
+
getEndStatement: (variableName) => `_ = ${variableName}`,
|
|
15
|
+
declarationInsertIndex: (lines) => {
|
|
16
|
+
for (let i = 0; i < lines.length; i++) if (/^(?:func|var|const|type)\b/.test(lines[i].body)) return i;
|
|
17
|
+
return lines.length;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
module.exports = plugin;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IndentierPlugin } from "indentier";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* indentier plugin for Go (.go)
|
|
6
|
+
*
|
|
7
|
+
* - Declaration: `var end any=nil` (package-level variable)
|
|
8
|
+
* - End statement: `_ = end` (blank assignment avoids "evaluated but not used" error)
|
|
9
|
+
* - Insertion index: just before the first `func`/`var`/`const`/`type` declaration,
|
|
10
|
+
* i.e. after the `package` statement and any `import` blocks.
|
|
11
|
+
*/
|
|
12
|
+
declare const plugin: IndentierPlugin;
|
|
13
|
+
export = plugin;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IndentierPlugin } from "indentier";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* indentier plugin for Go (.go)
|
|
6
|
+
*
|
|
7
|
+
* - Declaration: `var end any=nil` (package-level variable)
|
|
8
|
+
* - End statement: `_ = end` (blank assignment avoids "evaluated but not used" error)
|
|
9
|
+
* - Insertion index: just before the first `func`/`var`/`const`/`type` declaration,
|
|
10
|
+
* i.e. after the `package` statement and any `import` blocks.
|
|
11
|
+
*/
|
|
12
|
+
declare const plugin: IndentierPlugin;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { plugin as default };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* indentier plugin for Go (.go)
|
|
4
|
+
*
|
|
5
|
+
* - Declaration: `var end any=nil` (package-level variable)
|
|
6
|
+
* - End statement: `_ = end` (blank assignment avoids "evaluated but not used" error)
|
|
7
|
+
* - Insertion index: just before the first `func`/`var`/`const`/`type` declaration,
|
|
8
|
+
* i.e. after the `package` statement and any `import` blocks.
|
|
9
|
+
*/
|
|
10
|
+
const plugin = {
|
|
11
|
+
extensions: [".go"],
|
|
12
|
+
rubyCompatible: true,
|
|
13
|
+
declarationTemplate: "var end any=nil",
|
|
14
|
+
getEndStatement: (variableName) => `_ = ${variableName}`,
|
|
15
|
+
declarationInsertIndex: (lines) => {
|
|
16
|
+
for (let i = 0; i < lines.length; i++) if (/^(?:func|var|const|type)\b/.test(lines[i].body)) return i;
|
|
17
|
+
return lines.length;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { plugin as default };
|
package/icon.png
ADDED
|
Binary file
|
package/icon.svg
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_1_32)">
|
|
3
|
+
<path d="M400 0H112C50.1441 0 0 50.1441 0 112V400C0 461.856 50.1441 512 112 512H400C461.856 512 512 461.856 512 400V112C512 50.1441 461.856 0 400 0Z" fill="url(#paint0_linear_1_32)"/>
|
|
4
|
+
<path d="M370 64V448" stroke="#21262D" stroke-width="4" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
5
|
+
<path d="M248 104H92C85.3726 104 80 109.373 80 116C80 122.627 85.3726 128 92 128H248C254.627 128 260 122.627 260 116C260 109.373 254.627 104 248 104Z" fill="#79C0FF"/>
|
|
6
|
+
<path d="M258 174H142C135.373 174 130 179.373 130 186C130 192.627 135.373 198 142 198H258C264.627 198 270 192.627 270 186C270 179.373 264.627 174 258 174Z" fill="#D2A8FF"/>
|
|
7
|
+
<path d="M268 244H192C185.373 244 180 249.373 180 256C180 262.627 185.373 268 192 268H268C274.627 268 280 262.627 280 256C280 249.373 274.627 244 268 244Z" fill="#FFA657"/>
|
|
8
|
+
<path d="M176.471 317.32C174.722 317.32 173.303 316.712 172.215 315.496C171.148 314.28 170.615 312.648 170.615 310.6V305.832C170.615 303.763 171.148 302.12 172.215 300.904C173.282 299.688 174.7 299.08 176.471 299.08C177.922 299.08 179.074 299.496 179.927 300.328C180.78 301.139 181.207 302.259 181.207 303.688L180.311 302.76H181.239L181.111 298.568V293.64H185.111V317H181.207V313.64H180.311L181.207 312.712C181.207 314.141 180.78 315.272 179.927 316.104C179.074 316.915 177.922 317.32 176.471 317.32ZM177.879 313.864C178.903 313.864 179.692 313.565 180.247 312.968C180.823 312.349 181.111 311.496 181.111 310.408V305.992C181.111 304.904 180.823 304.061 180.247 303.464C179.692 302.845 178.903 302.536 177.879 302.536C176.855 302.536 176.055 302.835 175.479 303.432C174.903 304.029 174.615 304.883 174.615 305.992V310.408C174.615 311.517 174.903 312.371 175.479 312.968C176.055 313.565 176.855 313.864 177.879 313.864Z" fill="#FF7B72"/>
|
|
9
|
+
<path d="M151.652 317V299.4H155.556V302.76H156.644L155.556 303.688C155.556 302.237 155.972 301.107 156.804 300.296C157.657 299.485 158.82 299.08 160.292 299.08C162.02 299.08 163.396 299.656 164.42 300.808C165.465 301.96 165.988 303.507 165.988 305.448V317H161.988V305.864C161.988 304.797 161.71 303.976 161.156 303.4C160.601 302.824 159.822 302.536 158.82 302.536C157.838 302.536 157.06 302.835 156.484 303.432C155.929 304.029 155.652 304.883 155.652 305.992V317H151.652Z" fill="#FF7B72"/>
|
|
10
|
+
<path d="M139.632 317.32C138.139 317.32 136.837 317.032 135.728 316.456C134.619 315.88 133.755 315.08 133.136 314.056C132.539 313.011 132.24 311.795 132.24 310.408V305.992C132.24 304.605 132.539 303.4 133.136 302.376C133.755 301.331 134.619 300.52 135.728 299.944C136.837 299.368 138.139 299.08 139.632 299.08C141.104 299.08 142.384 299.368 143.472 299.944C144.581 300.52 145.435 301.331 146.032 302.376C146.651 303.4 146.96 304.605 146.96 305.992V309.16H136.112V310.408C136.112 311.645 136.411 312.584 137.008 313.224C137.605 313.843 138.491 314.152 139.664 314.152C140.56 314.152 141.285 314.003 141.84 313.704C142.395 313.384 142.747 312.925 142.896 312.328H146.832C146.533 313.843 145.723 315.059 144.4 315.976C143.099 316.872 141.509 317.32 139.632 317.32ZM143.088 306.92V305.96C143.088 304.744 142.8 303.816 142.224 303.176C141.648 302.515 140.784 302.184 139.632 302.184C138.48 302.184 137.605 302.515 137.008 303.176C136.411 303.837 136.112 304.776 136.112 305.992V306.664L143.376 306.6L143.088 306.92Z" fill="#FF7B72"/>
|
|
11
|
+
<path d="M126.471 387.32C124.722 387.32 123.303 386.712 122.215 385.496C121.148 384.28 120.615 382.648 120.615 380.6V375.832C120.615 373.763 121.148 372.12 122.215 370.904C123.282 369.688 124.7 369.08 126.471 369.08C127.922 369.08 129.074 369.496 129.927 370.328C130.78 371.139 131.207 372.259 131.207 373.688L130.311 372.76H131.239L131.111 368.568V363.64H135.111V387H131.207V383.64H130.311L131.207 382.712C131.207 384.141 130.78 385.272 129.927 386.104C129.074 386.915 127.922 387.32 126.471 387.32ZM127.879 383.864C128.903 383.864 129.692 383.565 130.247 382.968C130.823 382.349 131.111 381.496 131.111 380.408V375.992C131.111 374.904 130.823 374.061 130.247 373.464C129.692 372.845 128.903 372.536 127.879 372.536C126.855 372.536 126.055 372.835 125.479 373.432C124.903 374.029 124.615 374.883 124.615 375.992V380.408C124.615 381.517 124.903 382.371 125.479 382.968C126.055 383.565 126.855 383.864 127.879 383.864Z" fill="#FF7B72"/>
|
|
12
|
+
<path d="M101.652 387V369.4H105.556V372.76H106.644L105.556 373.688C105.556 372.237 105.972 371.107 106.804 370.296C107.657 369.485 108.82 369.08 110.292 369.08C112.02 369.08 113.396 369.656 114.42 370.808C115.465 371.96 115.988 373.507 115.988 375.448V387H111.988V375.864C111.988 374.797 111.71 373.976 111.156 373.4C110.601 372.824 109.822 372.536 108.82 372.536C107.838 372.536 107.06 372.835 106.484 373.432C105.929 374.029 105.652 374.883 105.652 375.992V387H101.652Z" fill="#FF7B72"/>
|
|
13
|
+
<path d="M89.632 387.32C88.1387 387.32 86.8373 387.032 85.728 386.456C84.6187 385.88 83.7547 385.08 83.136 384.056C82.5387 383.011 82.24 381.795 82.24 380.408V375.992C82.24 374.605 82.5387 373.4 83.136 372.376C83.7547 371.331 84.6187 370.52 85.728 369.944C86.8373 369.368 88.1387 369.08 89.632 369.08C91.104 369.08 92.384 369.368 93.472 369.944C94.5813 370.52 95.4347 371.331 96.032 372.376C96.6507 373.4 96.96 374.605 96.96 375.992V379.16H86.112V380.408C86.112 381.645 86.4107 382.584 87.008 383.224C87.6053 383.843 88.4907 384.152 89.664 384.152C90.56 384.152 91.2853 384.003 91.84 383.704C92.3947 383.384 92.7467 382.925 92.896 382.328H96.832C96.5333 383.843 95.7227 385.059 94.4 385.976C93.0987 386.872 91.5093 387.32 89.632 387.32ZM93.088 376.92V375.96C93.088 374.744 92.8 373.816 92.224 373.176C91.648 372.515 90.784 372.184 89.632 372.184C88.48 372.184 87.6053 372.515 87.008 373.176C86.4107 373.837 86.112 374.776 86.112 375.992V376.664L93.376 376.6L93.088 376.92Z" fill="#FF7B72"/>
|
|
14
|
+
<path d="M434.686 120.996C433.342 120.996 432.154 120.732 431.122 120.204C430.114 119.676 429.346 118.932 428.818 117.972C428.29 117.036 428.062 115.908 428.134 114.588L428.494 109.116C428.566 108.132 428.362 107.388 427.882 106.884C427.426 106.38 426.646 106.128 425.542 106.128H421.258V101.988H425.542C426.646 101.988 427.426 101.736 427.882 101.232C428.362 100.728 428.566 99.996 428.494 99.036L428.134 93.384C428.062 92.088 428.29 90.972 428.818 90.036C429.346 89.1 430.114 88.38 431.122 87.876C432.154 87.372 433.342 87.12 434.686 87.12H437.17V91.26H435.334C434.47 91.26 433.786 91.464 433.282 91.872C432.802 92.28 432.586 92.928 432.634 93.816L432.994 99.432C433.09 100.848 432.67 101.988 431.734 102.852C430.798 103.716 429.49 104.148 427.81 104.148V103.896C429.466 103.896 430.762 104.34 431.698 105.228C432.658 106.092 433.09 107.244 432.994 108.684L432.634 114.3C432.61 115.092 432.838 115.716 433.318 116.172C433.822 116.604 434.494 116.82 435.334 116.82H437.17V120.996H434.686Z" fill="#484F58"/>
|
|
15
|
+
<path d="M434.686 190.996C433.342 190.996 432.154 190.732 431.122 190.204C430.114 189.676 429.346 188.932 428.818 187.972C428.29 187.036 428.062 185.908 428.134 184.588L428.494 179.116C428.566 178.132 428.362 177.388 427.882 176.884C427.426 176.38 426.646 176.128 425.542 176.128H421.258V171.988H425.542C426.646 171.988 427.426 171.736 427.882 171.232C428.362 170.728 428.566 169.996 428.494 169.036L428.134 163.384C428.062 162.088 428.29 160.972 428.818 160.036C429.346 159.1 430.114 158.38 431.122 157.876C432.154 157.372 433.342 157.12 434.686 157.12H437.17V161.26H435.334C434.47 161.26 433.786 161.464 433.282 161.872C432.802 162.28 432.586 162.928 432.634 163.816L432.994 169.432C433.09 170.848 432.67 171.988 431.734 172.852C430.798 173.716 429.49 174.148 427.81 174.148V173.896C429.466 173.896 430.762 174.34 431.698 175.228C432.658 176.092 433.09 177.244 432.994 178.684L432.634 184.3C432.61 185.092 432.838 185.716 433.318 186.172C433.822 186.604 434.494 186.82 435.334 186.82H437.17V190.996H434.686Z" fill="#484F58"/>
|
|
16
|
+
<path d="M423.994 262.76L426.874 251.564H432.634L427.954 262.76H423.994ZM428.854 242.888C427.966 242.888 427.234 242.6 426.658 242.024C426.106 241.448 425.83 240.728 425.83 239.864C425.83 239 426.118 238.28 426.694 237.704C427.27 237.128 427.99 236.84 428.854 236.84H429.574C430.438 236.84 431.158 237.128 431.734 237.704C432.31 238.28 432.598 239 432.598 239.864C432.598 240.728 432.31 241.448 431.734 242.024C431.182 242.6 430.462 242.888 429.574 242.888H428.854Z" fill="#484F58"/>
|
|
17
|
+
<path d="M421.258 330.996V326.82H423.094C423.934 326.82 424.606 326.604 425.11 326.172C425.614 325.716 425.842 325.092 425.794 324.3L425.434 318.684C425.338 317.244 425.758 316.092 426.694 315.228C427.654 314.34 428.962 313.896 430.618 313.896V314.148C428.962 314.148 427.654 313.716 426.694 312.852C425.758 311.988 425.338 310.848 425.434 309.432L425.794 303.816C425.842 302.928 425.614 302.28 425.11 301.872C424.63 301.464 423.958 301.26 423.094 301.26H421.258V297.12H423.742C425.086 297.12 426.262 297.372 427.27 297.876C428.302 298.38 429.082 299.1 429.61 300.036C430.138 300.972 430.366 302.088 430.294 303.384L429.934 309.036C429.862 309.996 430.066 310.728 430.546 311.232C431.026 311.736 431.806 311.988 432.886 311.988H437.17V316.128H432.886C431.806 316.128 431.026 316.38 430.546 316.884C430.066 317.388 429.862 318.132 429.934 319.116L430.294 324.588C430.366 325.908 430.138 327.036 429.61 327.972C429.082 328.932 428.302 329.676 427.27 330.204C426.262 330.732 425.086 330.996 423.742 330.996H421.258Z" fill="#484F58"/>
|
|
18
|
+
<path d="M423.994 402.76L426.874 391.564H432.634L427.954 402.76H423.994ZM428.854 382.888C427.966 382.888 427.234 382.6 426.658 382.024C426.106 381.448 425.83 380.728 425.83 379.864C425.83 379 426.118 378.28 426.694 377.704C427.27 377.128 427.99 376.84 428.854 376.84H429.574C430.438 376.84 431.158 377.128 431.734 377.704C432.31 378.28 432.598 379 432.598 379.864C432.598 380.728 432.31 381.448 431.734 382.024C431.182 382.6 430.462 382.888 429.574 382.888H428.854Z" fill="#484F58"/>
|
|
19
|
+
<path d="M399.672 400.996V396.82H401.508C402.348 396.82 403.02 396.604 403.524 396.172C404.028 395.716 404.256 395.092 404.208 394.3L403.848 388.684C403.752 387.244 404.172 386.092 405.108 385.228C406.068 384.34 407.376 383.896 409.032 383.896V384.148C407.376 384.148 406.068 383.716 405.108 382.852C404.172 381.988 403.752 380.848 403.848 379.432L404.208 373.816C404.256 372.928 404.028 372.28 403.524 371.872C403.044 371.464 402.372 371.26 401.508 371.26H399.672V367.12H402.156C403.5 367.12 404.676 367.372 405.684 367.876C406.716 368.38 407.496 369.1 408.024 370.036C408.552 370.972 408.78 372.088 408.708 373.384L408.348 379.036C408.276 379.996 408.48 380.728 408.96 381.232C409.44 381.736 410.22 381.988 411.3 381.988H415.584V386.128H411.3C410.22 386.128 409.44 386.38 408.96 386.884C408.48 387.388 408.276 388.132 408.348 389.116L408.708 394.588C408.78 395.908 408.552 397.036 408.024 397.972C407.496 398.932 406.716 399.676 405.684 400.204C404.676 400.732 403.5 400.996 402.156 400.996H399.672Z" fill="#484F58"/>
|
|
20
|
+
</g>
|
|
21
|
+
<defs>
|
|
22
|
+
<linearGradient id="paint0_linear_1_32" x1="0" y1="0" x2="512" y2="0" gradientUnits="userSpaceOnUse">
|
|
23
|
+
<stop offset="0.4" stop-color="#0D1117"/>
|
|
24
|
+
<stop offset="1" stop-color="#010409"/>
|
|
25
|
+
</linearGradient>
|
|
26
|
+
<clipPath id="clip0_1_32">
|
|
27
|
+
<rect width="512" height="512" fill="white"/>
|
|
28
|
+
</clipPath>
|
|
29
|
+
</defs>
|
|
30
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@indentier/plugin-go",
|
|
3
|
+
"description": "Indentier plugin for Go (.go)",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"import": {
|
|
8
|
+
"types": "./dist/index.d.mts",
|
|
9
|
+
"default": "./dist/index.mjs"
|
|
10
|
+
},
|
|
11
|
+
"require": {
|
|
12
|
+
"types": "./dist/index.d.cts",
|
|
13
|
+
"default": "./dist/index.cjs"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.cjs",
|
|
18
|
+
"module": "./dist/index.mjs",
|
|
19
|
+
"types": "./dist/index.d.mts",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"README.md",
|
|
24
|
+
"icon.png",
|
|
25
|
+
"icon.svg"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsdown",
|
|
29
|
+
"dev": "tsdown --watch",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"lint": "eslint .",
|
|
33
|
+
"lint:fix": "eslint . --fix",
|
|
34
|
+
"format:check": "prettier --check .",
|
|
35
|
+
"format": "prettier --write .",
|
|
36
|
+
"play": "powershell -File testplay/test.ps1",
|
|
37
|
+
"play:ruby": "powershell -File testplay/test.ps1 --mode=ruby"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"indentier",
|
|
41
|
+
"plugin",
|
|
42
|
+
"formatter"
|
|
43
|
+
],
|
|
44
|
+
"author": "otoneko.",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"homepage": "https://github.com/indentier/plugin-go#readme",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/indentier/plugin-go/issues"
|
|
49
|
+
},
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/indentier/plugin-go.git"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=22"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public",
|
|
59
|
+
"provenance": true
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"indentier": ">=0.1.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@eslint/js": "^10.0.1",
|
|
66
|
+
"eslint": "^10.3.0",
|
|
67
|
+
"eslint-config-prettier": "^10.1.8",
|
|
68
|
+
"indentier": "latest",
|
|
69
|
+
"prettier": "^3.8.3",
|
|
70
|
+
"tsdown": "^0.22.0",
|
|
71
|
+
"typescript": "^6.0.3",
|
|
72
|
+
"typescript-eslint": "^8.59.3",
|
|
73
|
+
"vitest": "^4.1.6"
|
|
74
|
+
},
|
|
75
|
+
"version": "0.1.0"
|
|
76
|
+
}
|