@tai-kun/vp-lint-plugins 0.0.0-stage → 0.0.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.
- package/LICENSE +21 -0
- package/README.md +2 -2
- package/dist/src/index.d.ts +22 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +21 -0
- package/dist/src/plugin.d.ts +3 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/plugin.js +46 -0
- package/dist/src/rules/blank-line-after-control-block.d.ts +7 -0
- package/dist/src/rules/blank-line-after-control-block.d.ts.map +1 -0
- package/dist/src/rules/blank-line-after-control-block.js +54 -0
- package/dist/src/rules/blank-line-after-declaration.d.ts +7 -0
- package/dist/src/rules/blank-line-after-declaration.d.ts.map +1 -0
- package/dist/src/rules/blank-line-after-declaration.js +79 -0
- package/dist/src/rules/blank-line-after-variable-declaration.d.ts +8 -0
- package/dist/src/rules/blank-line-after-variable-declaration.d.ts.map +1 -0
- package/dist/src/rules/blank-line-after-variable-declaration.js +62 -0
- package/dist/src/rules/blank-line-before-return.d.ts +7 -0
- package/dist/src/rules/blank-line-before-return.d.ts.map +1 -0
- package/dist/src/rules/blank-line-before-return.js +81 -0
- package/dist/src/rules/blank-line-between-class-members.d.ts +8 -0
- package/dist/src/rules/blank-line-between-class-members.d.ts.map +1 -0
- package/dist/src/rules/blank-line-between-class-members.js +85 -0
- package/dist/src/rules/blank-line-between-switch-cases.d.ts +8 -0
- package/dist/src/rules/blank-line-between-switch-cases.d.ts.map +1 -0
- package/dist/src/rules/blank-line-between-switch-cases.js +45 -0
- package/dist/src/rules/blank-line.d.ts +14 -0
- package/dist/src/rules/blank-line.d.ts.map +1 -0
- package/dist/src/rules/blank-line.js +68 -0
- package/dist/src/rules/comment-japanese-spacing.d.ts +8 -0
- package/dist/src/rules/comment-japanese-spacing.d.ts.map +1 -0
- package/dist/src/rules/comment-japanese-spacing.js +195 -0
- package/dist/src/rules/comment-one-sentence-per-line.d.ts +9 -0
- package/dist/src/rules/comment-one-sentence-per-line.d.ts.map +1 -0
- package/dist/src/rules/comment-one-sentence-per-line.js +190 -0
- package/dist/src/rules/comment-utils.d.ts +30 -0
- package/dist/src/rules/comment-utils.d.ts.map +1 -0
- package/dist/src/rules/comment-utils.js +153 -0
- package/dist/src/rules/jsdoc-param-order.d.ts +6 -0
- package/dist/src/rules/jsdoc-param-order.d.ts.map +1 -0
- package/dist/src/rules/jsdoc-param-order.js +101 -0
- package/dist/src/rules/jsdoc-tag-lines.d.ts +6 -0
- package/dist/src/rules/jsdoc-tag-lines.d.ts.map +1 -0
- package/dist/src/rules/jsdoc-tag-lines.js +128 -0
- package/dist/src/rules/jsdoc-tag-order.d.ts +6 -0
- package/dist/src/rules/jsdoc-tag-order.d.ts.map +1 -0
- package/dist/src/rules/jsdoc-tag-order.js +62 -0
- package/dist/src/rules/jsdoc-utils.d.ts +26 -0
- package/dist/src/rules/jsdoc-utils.d.ts.map +1 -0
- package/dist/src/rules/jsdoc-utils.js +132 -0
- package/dist/src/rules/member-ordering.d.ts +6 -0
- package/dist/src/rules/member-ordering.d.ts.map +1 -0
- package/dist/src/rules/member-ordering.js +66 -0
- package/dist/src/rules/object-properties-newline.d.ts +9 -0
- package/dist/src/rules/object-properties-newline.d.ts.map +1 -0
- package/dist/src/rules/object-properties-newline.js +47 -0
- package/dist/src/rules/object-sort-utils.d.ts +32 -0
- package/dist/src/rules/object-sort-utils.d.ts.map +1 -0
- package/dist/src/rules/object-sort-utils.js +221 -0
- package/dist/src/rules/overload-signatures-adjacent.d.ts +6 -0
- package/dist/src/rules/overload-signatures-adjacent.d.ts.map +1 -0
- package/dist/src/rules/overload-signatures-adjacent.js +143 -0
- package/dist/src/rules/sort-import-export-specifiers.d.ts +8 -0
- package/dist/src/rules/sort-import-export-specifiers.d.ts.map +1 -0
- package/dist/src/rules/sort-import-export-specifiers.js +130 -0
- package/dist/src/rules/sort-jsx-props.d.ts +7 -0
- package/dist/src/rules/sort-jsx-props.d.ts.map +1 -0
- package/dist/src/rules/sort-jsx-props.js +102 -0
- package/dist/src/rules/sort-object-properties.d.ts +9 -0
- package/dist/src/rules/sort-object-properties.d.ts.map +1 -0
- package/dist/src/rules/sort-object-properties.js +54 -0
- package/dist/src/rules/sort-type-members.d.ts +8 -0
- package/dist/src/rules/sort-type-members.d.ts.map +1 -0
- package/dist/src/rules/sort-type-members.js +213 -0
- package/dist/src/rules/spaced-comment.d.ts +6 -0
- package/dist/src/rules/spaced-comment.d.ts.map +1 -0
- package/dist/src/rules/spaced-comment.js +105 -0
- package/dist/src/rules/type-literal-properties-newline.d.ts +8 -0
- package/dist/src/rules/type-literal-properties-newline.d.ts.map +1 -0
- package/dist/src/rules/type-literal-properties-newline.js +39 -0
- package/package.json +39 -3
- package/src/index.ts +22 -0
- package/src/plugin.ts +48 -0
- package/src/rules/blank-line-after-control-block.ts +82 -0
- package/src/rules/blank-line-after-declaration.ts +106 -0
- package/src/rules/blank-line-after-variable-declaration.ts +84 -0
- package/src/rules/blank-line-before-return.ts +101 -0
- package/src/rules/blank-line-between-class-members.ts +112 -0
- package/src/rules/blank-line-between-switch-cases.ts +53 -0
- package/src/rules/blank-line.ts +113 -0
- package/src/rules/comment-japanese-spacing.ts +271 -0
- package/src/rules/comment-one-sentence-per-line.ts +264 -0
- package/src/rules/comment-utils.ts +218 -0
- package/src/rules/jsdoc-param-order.ts +137 -0
- package/src/rules/jsdoc-tag-lines.ts +165 -0
- package/src/rules/jsdoc-tag-order.ts +75 -0
- package/src/rules/jsdoc-utils.ts +179 -0
- package/src/rules/member-ordering.ts +93 -0
- package/src/rules/object-properties-newline.ts +54 -0
- package/src/rules/object-sort-utils.ts +339 -0
- package/src/rules/overload-signatures-adjacent.ts +204 -0
- package/src/rules/sort-import-export-specifiers.ts +194 -0
- package/src/rules/sort-jsx-props.ts +149 -0
- package/src/rules/sort-object-properties.ts +62 -0
- package/src/rules/sort-type-members.ts +299 -0
- package/src/rules/spaced-comment.ts +129 -0
- package/src/rules/type-literal-properties-newline.ts +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026-present, tai-kun
|
|
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
|
|
13
|
+
all 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
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @tai-kun/vp-lint-plugins
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[Document](https://tai-kun.github.io/vp-lint-plugins/)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { default as blankLineAfterControlBlock } from "./rules/blank-line-after-control-block.js";
|
|
2
|
+
export { default as blankLineAfterDeclaration } from "./rules/blank-line-after-declaration.js";
|
|
3
|
+
export { default as blankLineAfterVariableDeclaration } from "./rules/blank-line-after-variable-declaration.js";
|
|
4
|
+
export { default as blankLineBeforeReturn } from "./rules/blank-line-before-return.js";
|
|
5
|
+
export { default as blankLineBetweenClassMembers } from "./rules/blank-line-between-class-members.js";
|
|
6
|
+
export { default as blankLineBetweenSwitchCases } from "./rules/blank-line-between-switch-cases.js";
|
|
7
|
+
export { default as commentJapaneseSpacing } from "./rules/comment-japanese-spacing.js";
|
|
8
|
+
export { default as commentOneSentencePerLine } from "./rules/comment-one-sentence-per-line.js";
|
|
9
|
+
export { default as jsdocParamOrder } from "./rules/jsdoc-param-order.js";
|
|
10
|
+
export { default as jsdocTagLines } from "./rules/jsdoc-tag-lines.js";
|
|
11
|
+
export { default as jsdocTagOrder } from "./rules/jsdoc-tag-order.js";
|
|
12
|
+
export { default as memberOrdering } from "./rules/member-ordering.js";
|
|
13
|
+
export { default as objectPropertiesNewline } from "./rules/object-properties-newline.js";
|
|
14
|
+
export { default as overloadSignaturesAdjacent } from "./rules/overload-signatures-adjacent.js";
|
|
15
|
+
export { default as sortImportExportSpecifiers } from "./rules/sort-import-export-specifiers.js";
|
|
16
|
+
export { default as sortJsxProps } from "./rules/sort-jsx-props.js";
|
|
17
|
+
export { default as sortObjectProperties } from "./rules/sort-object-properties.js";
|
|
18
|
+
export { default as sortTypeMembers } from "./rules/sort-type-members.js";
|
|
19
|
+
export { default as spacedComment } from "./rules/spaced-comment.js";
|
|
20
|
+
export { default as typeLiteralPropertiesNewline } from "./rules/type-literal-properties-newline.js";
|
|
21
|
+
export { default } from "./plugin.js";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAChH,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAErG,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { default as blankLineAfterControlBlock } from "./rules/blank-line-after-control-block.js";
|
|
2
|
+
export { default as blankLineAfterDeclaration } from "./rules/blank-line-after-declaration.js";
|
|
3
|
+
export { default as blankLineAfterVariableDeclaration } from "./rules/blank-line-after-variable-declaration.js";
|
|
4
|
+
export { default as blankLineBeforeReturn } from "./rules/blank-line-before-return.js";
|
|
5
|
+
export { default as blankLineBetweenClassMembers } from "./rules/blank-line-between-class-members.js";
|
|
6
|
+
export { default as blankLineBetweenSwitchCases } from "./rules/blank-line-between-switch-cases.js";
|
|
7
|
+
export { default as commentJapaneseSpacing } from "./rules/comment-japanese-spacing.js";
|
|
8
|
+
export { default as commentOneSentencePerLine } from "./rules/comment-one-sentence-per-line.js";
|
|
9
|
+
export { default as jsdocParamOrder } from "./rules/jsdoc-param-order.js";
|
|
10
|
+
export { default as jsdocTagLines } from "./rules/jsdoc-tag-lines.js";
|
|
11
|
+
export { default as jsdocTagOrder } from "./rules/jsdoc-tag-order.js";
|
|
12
|
+
export { default as memberOrdering } from "./rules/member-ordering.js";
|
|
13
|
+
export { default as objectPropertiesNewline } from "./rules/object-properties-newline.js";
|
|
14
|
+
export { default as overloadSignaturesAdjacent } from "./rules/overload-signatures-adjacent.js";
|
|
15
|
+
export { default as sortImportExportSpecifiers } from "./rules/sort-import-export-specifiers.js";
|
|
16
|
+
export { default as sortJsxProps } from "./rules/sort-jsx-props.js";
|
|
17
|
+
export { default as sortObjectProperties } from "./rules/sort-object-properties.js";
|
|
18
|
+
export { default as sortTypeMembers } from "./rules/sort-type-members.js";
|
|
19
|
+
export { default as spacedComment } from "./rules/spaced-comment.js";
|
|
20
|
+
export { default as typeLiteralPropertiesNewline } from "./rules/type-literal-properties-newline.js";
|
|
21
|
+
export { default } from "./plugin.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { definePlugin } from "vite-plus/lint/plugins";
|
|
2
|
+
import blankLineAfterControlBlock from "./rules/blank-line-after-control-block.js";
|
|
3
|
+
import blankLineAfterDeclaration from "./rules/blank-line-after-declaration.js";
|
|
4
|
+
import blankLineAfterVariableDeclaration from "./rules/blank-line-after-variable-declaration.js";
|
|
5
|
+
import blankLineBeforeReturn from "./rules/blank-line-before-return.js";
|
|
6
|
+
import blankLineBetweenClassMembers from "./rules/blank-line-between-class-members.js";
|
|
7
|
+
import blankLineBetweenSwitchCases from "./rules/blank-line-between-switch-cases.js";
|
|
8
|
+
import commentJapaneseSpacing from "./rules/comment-japanese-spacing.js";
|
|
9
|
+
import commentOneSentencePerLine from "./rules/comment-one-sentence-per-line.js";
|
|
10
|
+
import jsdocParamOrder from "./rules/jsdoc-param-order.js";
|
|
11
|
+
import jsdocTagLines from "./rules/jsdoc-tag-lines.js";
|
|
12
|
+
import jsdocTagOrder from "./rules/jsdoc-tag-order.js";
|
|
13
|
+
import memberOrdering from "./rules/member-ordering.js";
|
|
14
|
+
import objectPropertiesNewline from "./rules/object-properties-newline.js";
|
|
15
|
+
import overloadSignaturesAdjacent from "./rules/overload-signatures-adjacent.js";
|
|
16
|
+
import sortImportExportSpecifiers from "./rules/sort-import-export-specifiers.js";
|
|
17
|
+
import sortJsxProps from "./rules/sort-jsx-props.js";
|
|
18
|
+
import sortObjectProperties from "./rules/sort-object-properties.js";
|
|
19
|
+
import sortTypeMembers from "./rules/sort-type-members.js";
|
|
20
|
+
import spacedComment from "./rules/spaced-comment.js";
|
|
21
|
+
import typeLiteralPropertiesNewline from "./rules/type-literal-properties-newline.js";
|
|
22
|
+
export default definePlugin({
|
|
23
|
+
meta: { name: "tai-kun" },
|
|
24
|
+
rules: {
|
|
25
|
+
"sort-jsx-props": sortJsxProps,
|
|
26
|
+
"spaced-comment": spacedComment,
|
|
27
|
+
"jsdoc-tag-lines": jsdocTagLines,
|
|
28
|
+
"jsdoc-tag-order": jsdocTagOrder,
|
|
29
|
+
"member-ordering": memberOrdering,
|
|
30
|
+
"jsdoc-param-order": jsdocParamOrder,
|
|
31
|
+
"sort-type-members": sortTypeMembers,
|
|
32
|
+
"sort-object-properties": sortObjectProperties,
|
|
33
|
+
"blank-line-before-return": blankLineBeforeReturn,
|
|
34
|
+
"comment-japanese-spacing": commentJapaneseSpacing,
|
|
35
|
+
"object-properties-newline": objectPropertiesNewline,
|
|
36
|
+
"blank-line-after-declaration": blankLineAfterDeclaration,
|
|
37
|
+
"overload-signatures-adjacent": overloadSignaturesAdjacent,
|
|
38
|
+
"comment-one-sentence-per-line": commentOneSentencePerLine,
|
|
39
|
+
"sort-import-export-specifiers": sortImportExportSpecifiers,
|
|
40
|
+
"blank-line-after-control-block": blankLineAfterControlBlock,
|
|
41
|
+
"blank-line-between-switch-cases": blankLineBetweenSwitchCases,
|
|
42
|
+
"type-literal-properties-newline": typeLiteralPropertiesNewline,
|
|
43
|
+
"blank-line-between-class-members": blankLineBetweenClassMembers,
|
|
44
|
+
"blank-line-after-variable-declaration": blankLineAfterVariableDeclaration,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 制御ブロックの直後に次の処理がある場合、空行を 1 行以上確保します。
|
|
3
|
+
* 余分な空行は Oxfmt が 1 行に畳みます。
|
|
4
|
+
*/
|
|
5
|
+
declare const blankLineAfterControlBlock: import("vite-plus/lint/plugins").Rule;
|
|
6
|
+
export default blankLineAfterControlBlock;
|
|
7
|
+
//# sourceMappingURL=blank-line-after-control-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-line-after-control-block.d.ts","sourceRoot":"","sources":["../../../src/rules/blank-line-after-control-block.ts"],"names":[],"mappings":"AA+BA;;;GAGG;AACH,QAAA,MAAM,0BAA0B,uCA4C9B,CAAC;eAEY,0BAA0B"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineRule } from "vite-plus/lint/plugins";
|
|
2
|
+
import { hasBlankLine, getBlankLineFix, getNextStatement, getInsertionTarget, } from "./blank-line.js";
|
|
3
|
+
const CONTROL_STATEMENT_TYPES = new Set([
|
|
4
|
+
"DoWhileStatement",
|
|
5
|
+
"ForInStatement",
|
|
6
|
+
"ForOfStatement",
|
|
7
|
+
"ForStatement",
|
|
8
|
+
"IfStatement",
|
|
9
|
+
"SwitchStatement",
|
|
10
|
+
"TryStatement",
|
|
11
|
+
"WhileStatement",
|
|
12
|
+
]);
|
|
13
|
+
/**
|
|
14
|
+
* 制御ブロックの直後に次の処理がある場合、空行を 1 行以上確保します。
|
|
15
|
+
* 余分な空行は Oxfmt が 1 行に畳みます。
|
|
16
|
+
*/
|
|
17
|
+
const blankLineAfterControlBlock = defineRule({
|
|
18
|
+
meta: {
|
|
19
|
+
docs: {
|
|
20
|
+
description: "Require a blank line after a control block when another statement follows.",
|
|
21
|
+
},
|
|
22
|
+
type: "layout",
|
|
23
|
+
fixable: "whitespace",
|
|
24
|
+
messages: {
|
|
25
|
+
blankLine: "Expected a blank line after a control block when another statement follows.",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
create(context) {
|
|
29
|
+
const sourceCode = context.sourceCode;
|
|
30
|
+
function checkNode(node) {
|
|
31
|
+
const nextStatement = getNextStatement(node);
|
|
32
|
+
if (nextStatement === null || nextStatement.type === "EmptyStatement") {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const target = getInsertionTarget(node, nextStatement, sourceCode);
|
|
36
|
+
if (hasBlankLine(node, target)) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
context.report({
|
|
40
|
+
fix(fixer) {
|
|
41
|
+
return getBlankLineFix(fixer, sourceCode, node, target);
|
|
42
|
+
},
|
|
43
|
+
node,
|
|
44
|
+
messageId: "blankLine",
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
const visitors = {};
|
|
48
|
+
for (const type of CONTROL_STATEMENT_TYPES) {
|
|
49
|
+
visitors[type] = checkNode;
|
|
50
|
+
}
|
|
51
|
+
return visitors;
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
export default blankLineAfterControlBlock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 関数・クラス・型などの宣言の後に次の文がある場合、空行を 1 行以上確保します。
|
|
3
|
+
* 余分な空行は Oxfmt が 1 行に畳みます。
|
|
4
|
+
*/
|
|
5
|
+
declare const blankLineAfterDeclaration: import("vite-plus/lint/plugins").Rule;
|
|
6
|
+
export default blankLineAfterDeclaration;
|
|
7
|
+
//# sourceMappingURL=blank-line-after-declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-line-after-declaration.d.ts","sourceRoot":"","sources":["../../../src/rules/blank-line-after-declaration.ts"],"names":[],"mappings":"AA2CA;;;GAGG;AACH,QAAA,MAAM,yBAAyB,uCAwD7B,CAAC;eAEY,yBAAyB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineRule } from "vite-plus/lint/plugins";
|
|
2
|
+
import { hasBlankLine, getBlankLineFix, getNextStatement, getInsertionTarget, } from "./blank-line.js";
|
|
3
|
+
const DECLARATION_TYPES = new Set([
|
|
4
|
+
"ClassDeclaration",
|
|
5
|
+
"FunctionDeclaration",
|
|
6
|
+
"TSDeclareFunction",
|
|
7
|
+
"TSEnumDeclaration",
|
|
8
|
+
"TSInterfaceDeclaration",
|
|
9
|
+
"TSModuleDeclaration",
|
|
10
|
+
"TSTypeAliasDeclaration",
|
|
11
|
+
]);
|
|
12
|
+
function getDeclaration(node) {
|
|
13
|
+
if (DECLARATION_TYPES.has(node.type)) {
|
|
14
|
+
return node;
|
|
15
|
+
}
|
|
16
|
+
if ((node.type === "ExportNamedDeclaration" || node.type === "ExportDefaultDeclaration") &&
|
|
17
|
+
node.declaration !== null &&
|
|
18
|
+
DECLARATION_TYPES.has(node.declaration.type)) {
|
|
19
|
+
return node.declaration;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
function isOverload(declaration) {
|
|
24
|
+
return ((declaration.type === "FunctionDeclaration" || declaration.type === "TSDeclareFunction") &&
|
|
25
|
+
declaration.body === null);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 関数・クラス・型などの宣言の後に次の文がある場合、空行を 1 行以上確保します。
|
|
29
|
+
* 余分な空行は Oxfmt が 1 行に畳みます。
|
|
30
|
+
*/
|
|
31
|
+
const blankLineAfterDeclaration = defineRule({
|
|
32
|
+
meta: {
|
|
33
|
+
docs: {
|
|
34
|
+
description: "Require a blank line after a declaration when another statement follows.",
|
|
35
|
+
},
|
|
36
|
+
type: "layout",
|
|
37
|
+
fixable: "whitespace",
|
|
38
|
+
messages: {
|
|
39
|
+
blankLine: "Expected a blank line after a declaration when another statement follows.",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
create(context) {
|
|
43
|
+
const sourceCode = context.sourceCode;
|
|
44
|
+
function checkNode(node) {
|
|
45
|
+
const declaration = getDeclaration(node);
|
|
46
|
+
if (declaration === null || isOverload(declaration)) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const nextStatement = getNextStatement(node);
|
|
50
|
+
if (nextStatement === null || nextStatement.type === "EmptyStatement") {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const target = getInsertionTarget(node, nextStatement, sourceCode);
|
|
54
|
+
if (hasBlankLine(node, target)) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
context.report({
|
|
58
|
+
fix(fixer) {
|
|
59
|
+
return getBlankLineFix(fixer, sourceCode, node, target);
|
|
60
|
+
},
|
|
61
|
+
node,
|
|
62
|
+
messageId: "blankLine",
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
const visitors = {
|
|
66
|
+
ClassDeclaration: checkNode,
|
|
67
|
+
TSDeclareFunction: checkNode,
|
|
68
|
+
TSEnumDeclaration: checkNode,
|
|
69
|
+
FunctionDeclaration: checkNode,
|
|
70
|
+
TSModuleDeclaration: checkNode,
|
|
71
|
+
ExportNamedDeclaration: checkNode,
|
|
72
|
+
TSInterfaceDeclaration: checkNode,
|
|
73
|
+
TSTypeAliasDeclaration: checkNode,
|
|
74
|
+
ExportDefaultDeclaration: checkNode,
|
|
75
|
+
};
|
|
76
|
+
return visitors;
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
export default blankLineAfterDeclaration;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 連続する変数宣言の後に別の種類の文が続く場合、空行を 1 行以上確保します。
|
|
3
|
+
*
|
|
4
|
+
* return の直前は blank-line-before-return が担当するため対象外にします。
|
|
5
|
+
*/
|
|
6
|
+
declare const blankLineAfterVariableDeclaration: import("vite-plus/lint/plugins").Rule;
|
|
7
|
+
export default blankLineAfterVariableDeclaration;
|
|
8
|
+
//# sourceMappingURL=blank-line-after-variable-declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-line-after-variable-declaration.d.ts","sourceRoot":"","sources":["../../../src/rules/blank-line-after-variable-declaration.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,QAAA,MAAM,iCAAiC,uCA0DrC,CAAC;eAEY,iCAAiC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineRule } from "vite-plus/lint/plugins";
|
|
2
|
+
import { hasBlankLine, getBlankLineFix, getNextStatement, getInsertionTarget, } from "./blank-line.js";
|
|
3
|
+
function isVariableDeclarationStatement(node) {
|
|
4
|
+
if (node.type === "VariableDeclaration") {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
return node.type === "ExportNamedDeclaration" && node.declaration?.type === "VariableDeclaration";
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 連続する変数宣言の後に別の種類の文が続く場合、空行を 1 行以上確保します。
|
|
11
|
+
*
|
|
12
|
+
* return の直前は blank-line-before-return が担当するため対象外にします。
|
|
13
|
+
*/
|
|
14
|
+
const blankLineAfterVariableDeclaration = defineRule({
|
|
15
|
+
meta: {
|
|
16
|
+
docs: {
|
|
17
|
+
description: "Require a blank line after a variable declaration group when another statement follows.",
|
|
18
|
+
},
|
|
19
|
+
type: "layout",
|
|
20
|
+
fixable: "whitespace",
|
|
21
|
+
messages: {
|
|
22
|
+
blankLine: "Expected a blank line after a variable declaration group when another statement follows.",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
create(context) {
|
|
26
|
+
const sourceCode = context.sourceCode;
|
|
27
|
+
function checkStatement(node) {
|
|
28
|
+
if (node.type === "VariableDeclaration" && node.parent.type === "ExportNamedDeclaration") {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const nextStatement = getNextStatement(node);
|
|
32
|
+
if (nextStatement === null ||
|
|
33
|
+
nextStatement.type === "EmptyStatement" ||
|
|
34
|
+
nextStatement.type === "ReturnStatement" ||
|
|
35
|
+
isVariableDeclarationStatement(nextStatement)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const target = getInsertionTarget(node, nextStatement, sourceCode);
|
|
39
|
+
if (hasBlankLine(node, target)) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
context.report({
|
|
43
|
+
fix(fixer) {
|
|
44
|
+
return getBlankLineFix(fixer, sourceCode, node, target);
|
|
45
|
+
},
|
|
46
|
+
node,
|
|
47
|
+
messageId: "blankLine",
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
VariableDeclaration(node) {
|
|
52
|
+
checkStatement(node);
|
|
53
|
+
},
|
|
54
|
+
ExportNamedDeclaration(node) {
|
|
55
|
+
if (node.declaration?.type === "VariableDeclaration") {
|
|
56
|
+
checkStatement(node);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
export default blankLineAfterVariableDeclaration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-line-before-return.d.ts","sourceRoot":"","sources":["../../../src/rules/blank-line-before-return.ts"],"names":[],"mappings":"AA2CA;;;GAGG;AACH,QAAA,MAAM,qBAAqB,uCAmDzB,CAAC;eAEY,qBAAqB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineRule } from "vite-plus/lint/plugins";
|
|
2
|
+
import { hasBlankLine, getBlankLineFix, getInsertionTarget, getPreviousStatement, } from "./blank-line.js";
|
|
3
|
+
const SKIP_PREVIOUS_TYPES = new Set([
|
|
4
|
+
// 制御ブロックは blank-line-after-control-block が担当します。
|
|
5
|
+
"DoWhileStatement",
|
|
6
|
+
"ForInStatement",
|
|
7
|
+
"ForOfStatement",
|
|
8
|
+
"ForStatement",
|
|
9
|
+
"IfStatement",
|
|
10
|
+
"SwitchStatement",
|
|
11
|
+
"TryStatement",
|
|
12
|
+
"WhileStatement",
|
|
13
|
+
// 宣言は blank-line-after-declaration が担当します。
|
|
14
|
+
"ClassDeclaration",
|
|
15
|
+
"ExportAllDeclaration",
|
|
16
|
+
"ExportDefaultDeclaration",
|
|
17
|
+
"ExportNamedDeclaration",
|
|
18
|
+
"FunctionDeclaration",
|
|
19
|
+
"ImportDeclaration",
|
|
20
|
+
"TSDeclareFunction",
|
|
21
|
+
"TSEnumDeclaration",
|
|
22
|
+
"TSInterfaceDeclaration",
|
|
23
|
+
"TSModuleDeclaration",
|
|
24
|
+
"TSTypeAliasDeclaration",
|
|
25
|
+
// 途中で終わる文や空文の後は対象外にします。
|
|
26
|
+
"BlockStatement",
|
|
27
|
+
"BreakStatement",
|
|
28
|
+
"ContinueStatement",
|
|
29
|
+
"DebuggerStatement",
|
|
30
|
+
"EmptyStatement",
|
|
31
|
+
"LabeledStatement",
|
|
32
|
+
"ReturnStatement",
|
|
33
|
+
"ThrowStatement",
|
|
34
|
+
"WithStatement",
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* return の直前に処理がある場合、空行を 1 行以上確保します。
|
|
38
|
+
* 余分な空行は Oxfmt が 1 行に畳みます。
|
|
39
|
+
*/
|
|
40
|
+
const blankLineBeforeReturn = defineRule({
|
|
41
|
+
meta: {
|
|
42
|
+
docs: {
|
|
43
|
+
description: "Require a blank line before a return statement when another statement precedes it.",
|
|
44
|
+
},
|
|
45
|
+
type: "layout",
|
|
46
|
+
fixable: "whitespace",
|
|
47
|
+
messages: {
|
|
48
|
+
blankLine: "Expected a blank line before a return statement when another statement precedes it.",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
create(context) {
|
|
52
|
+
const sourceCode = context.sourceCode;
|
|
53
|
+
return {
|
|
54
|
+
ReturnStatement(node) {
|
|
55
|
+
const previousStatement = getPreviousStatement(node);
|
|
56
|
+
if (previousStatement === null) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (SKIP_PREVIOUS_TYPES.has(previousStatement.type)) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (previousStatement.type === "ExpressionStatement" &&
|
|
63
|
+
typeof previousStatement.directive === "string") {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const target = getInsertionTarget(previousStatement, node, sourceCode);
|
|
67
|
+
if (hasBlankLine(previousStatement, target)) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
context.report({
|
|
71
|
+
fix(fixer) {
|
|
72
|
+
return getBlankLineFix(fixer, sourceCode, previousStatement, target);
|
|
73
|
+
},
|
|
74
|
+
node,
|
|
75
|
+
messageId: "blankLine",
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
export default blankLineBeforeReturn;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* クラスメンバーの間に空行を 1 行以上確保します。
|
|
3
|
+
*
|
|
4
|
+
* オーバーロード署名と getter/setter のペアは連続させます。
|
|
5
|
+
*/
|
|
6
|
+
declare const blankLineBetweenClassMembers: import("vite-plus/lint/plugins").Rule;
|
|
7
|
+
export default blankLineBetweenClassMembers;
|
|
8
|
+
//# sourceMappingURL=blank-line-between-class-members.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-line-between-class-members.d.ts","sourceRoot":"","sources":["../../../src/rules/blank-line-between-class-members.ts"],"names":[],"mappings":"AA2DA;;;;GAIG;AACH,QAAA,MAAM,4BAA4B,uCA6ChC,CAAC;eAEY,4BAA4B"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { defineRule } from "vite-plus/lint/plugins";
|
|
2
|
+
import { hasBlankLine, getBlankLineFix, getInsertionTarget } from "./blank-line.js";
|
|
3
|
+
function getKeyName(member) {
|
|
4
|
+
if (member.type === "TSIndexSignature" || member.type === "StaticBlock") {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
if (member.computed) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
const key = member.key;
|
|
11
|
+
if (key.type === "Identifier") {
|
|
12
|
+
return key.name;
|
|
13
|
+
}
|
|
14
|
+
if (key.type === "Literal" && (typeof key.value === "string" || typeof key.value === "number")) {
|
|
15
|
+
return String(key.value);
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
function isOverload(member) {
|
|
20
|
+
return member.type === "MethodDefinition" && member.value.body === null;
|
|
21
|
+
}
|
|
22
|
+
function isGetterSetterPair(previous, next) {
|
|
23
|
+
if (previous.type !== "MethodDefinition" || next.type !== "MethodDefinition") {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
if (!((previous.kind === "get" && next.kind === "set") ||
|
|
27
|
+
(previous.kind === "set" && next.kind === "get"))) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
const previousName = getKeyName(previous);
|
|
31
|
+
const nextName = getKeyName(next);
|
|
32
|
+
return previousName !== null && previousName === nextName;
|
|
33
|
+
}
|
|
34
|
+
function getMemberStart(member) {
|
|
35
|
+
if (member.type === "TSIndexSignature" || member.type === "StaticBlock") {
|
|
36
|
+
return member;
|
|
37
|
+
}
|
|
38
|
+
return member.decorators[0] ?? member;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* クラスメンバーの間に空行を 1 行以上確保します。
|
|
42
|
+
*
|
|
43
|
+
* オーバーロード署名と getter/setter のペアは連続させます。
|
|
44
|
+
*/
|
|
45
|
+
const blankLineBetweenClassMembers = defineRule({
|
|
46
|
+
meta: {
|
|
47
|
+
docs: {
|
|
48
|
+
description: "Require a blank line between class members.",
|
|
49
|
+
},
|
|
50
|
+
type: "layout",
|
|
51
|
+
fixable: "whitespace",
|
|
52
|
+
messages: {
|
|
53
|
+
blankLine: "Expected a blank line between class members.",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
create(context) {
|
|
57
|
+
const sourceCode = context.sourceCode;
|
|
58
|
+
return {
|
|
59
|
+
ClassBody(node) {
|
|
60
|
+
for (let index = 1; index < node.body.length; index += 1) {
|
|
61
|
+
const previous = node.body[index - 1];
|
|
62
|
+
const next = node.body[index];
|
|
63
|
+
if (previous === undefined || next === undefined) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (isOverload(previous) || isGetterSetterPair(previous, next)) {
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
const target = getInsertionTarget(previous, getMemberStart(next), sourceCode);
|
|
70
|
+
if (hasBlankLine(previous, target)) {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
context.report({
|
|
74
|
+
fix(fixer) {
|
|
75
|
+
return getBlankLineFix(fixer, sourceCode, previous, target);
|
|
76
|
+
},
|
|
77
|
+
node: next,
|
|
78
|
+
messageId: "blankLine",
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
export default blankLineBetweenClassMembers;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 空でない switch の case の間に空行を 1 行以上確保します。
|
|
3
|
+
*
|
|
4
|
+
* 連続する case はフォールスルーとみなし、対象外にします。
|
|
5
|
+
*/
|
|
6
|
+
declare const blankLineBetweenSwitchCases: import("vite-plus/lint/plugins").Rule;
|
|
7
|
+
export default blankLineBetweenSwitchCases;
|
|
8
|
+
//# sourceMappingURL=blank-line-between-switch-cases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-line-between-switch-cases.d.ts","sourceRoot":"","sources":["../../../src/rules/blank-line-between-switch-cases.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,QAAA,MAAM,2BAA2B,uCAyC/B,CAAC;eAEY,2BAA2B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineRule } from "vite-plus/lint/plugins";
|
|
2
|
+
import { hasBlankLine, getBlankLineFix, getInsertionTarget } from "./blank-line.js";
|
|
3
|
+
/**
|
|
4
|
+
* 空でない switch の case の間に空行を 1 行以上確保します。
|
|
5
|
+
*
|
|
6
|
+
* 連続する case はフォールスルーとみなし、対象外にします。
|
|
7
|
+
*/
|
|
8
|
+
const blankLineBetweenSwitchCases = defineRule({
|
|
9
|
+
meta: {
|
|
10
|
+
docs: {
|
|
11
|
+
description: "Require a blank line between non-empty switch cases.",
|
|
12
|
+
},
|
|
13
|
+
type: "layout",
|
|
14
|
+
fixable: "whitespace",
|
|
15
|
+
messages: {
|
|
16
|
+
blankLine: "Expected a blank line between switch cases.",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
create(context) {
|
|
20
|
+
const sourceCode = context.sourceCode;
|
|
21
|
+
return {
|
|
22
|
+
SwitchStatement(node) {
|
|
23
|
+
for (let index = 1; index < node.cases.length; index += 1) {
|
|
24
|
+
const previous = node.cases[index - 1];
|
|
25
|
+
const next = node.cases[index];
|
|
26
|
+
if (previous === undefined || next === undefined || previous.consequent.length === 0) {
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const target = getInsertionTarget(previous, next, sourceCode);
|
|
30
|
+
if (hasBlankLine(previous, target)) {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
context.report({
|
|
34
|
+
fix(fixer) {
|
|
35
|
+
return getBlankLineFix(fixer, sourceCode, previous, target);
|
|
36
|
+
},
|
|
37
|
+
node: next,
|
|
38
|
+
messageId: "blankLine",
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
export default blankLineBetweenSwitchCases;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Fix, Fixer, ESTree, Comment, SourceCode } from "vite-plus/lint/plugins";
|
|
2
|
+
declare function getNextStatement(node: ESTree.Node): ESTree.Node | null;
|
|
3
|
+
declare function getPreviousStatement(node: ESTree.Node): ESTree.Node | null;
|
|
4
|
+
/**
|
|
5
|
+
* 空行の挿入位置を返します。
|
|
6
|
+
*
|
|
7
|
+
* 次の文に付くコメントがある場合は、そのコメントの前を挿入位置にします。
|
|
8
|
+
* 同じ行の末尾コメントは対象外です。
|
|
9
|
+
*/
|
|
10
|
+
declare function getInsertionTarget(node: ESTree.Node, nextStatement: ESTree.Node, sourceCode: SourceCode): ESTree.Node | Comment;
|
|
11
|
+
declare function hasBlankLine(node: ESTree.Node, target: ESTree.Node | Comment): boolean;
|
|
12
|
+
declare function getBlankLineFix(fixer: Fixer, sourceCode: SourceCode, node: ESTree.Node, target: ESTree.Node | Comment): Fix | null;
|
|
13
|
+
export { hasBlankLine, getBlankLineFix, getNextStatement, getInsertionTarget, getPreviousStatement, };
|
|
14
|
+
//# sourceMappingURL=blank-line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-line.d.ts","sourceRoot":"","sources":["../../../src/rules/blank-line.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA4BtF,iBAAS,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,GAAG,IAAI,CAc/D;AAED,iBAAS,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,GAAG,IAAI,CAcnE;AAED;;;;;GAKG;AACH,iBAAS,kBAAkB,CACzB,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,aAAa,EAAE,MAAM,CAAC,IAAI,EAC1B,UAAU,EAAE,UAAU,GACrB,MAAM,CAAC,IAAI,GAAG,OAAO,CAWvB;AAED,iBAAS,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,GAAG,OAAO,CAE/E;AAED,iBAAS,eAAe,CACtB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,MAAM,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,GAC5B,GAAG,GAAG,IAAI,CAYZ;AAED,OAAO,EACL,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,CAAC"}
|