all data hide
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled

This commit is contained in:
2026-06-25 09:44:52 +07:00
parent 2f289fb09e
commit d26db06f74
20660 changed files with 1815162 additions and 41 deletions
+57
View File
@@ -0,0 +1,57 @@
const require_indent_common = require('../utils/indent-common.js');
//#region lib/rules/script-indent.ts
/**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
var script_indent_default = {
meta: {
type: "layout",
docs: {
description: "enforce consistent indentation in `<script>`",
categories: void 0,
url: "https://eslint.vuejs.org/rules/script-indent.html"
},
fixable: "whitespace",
schema: [{ oneOf: [{
type: "integer",
minimum: 1
}, { enum: ["tab"] }] }, {
type: "object",
properties: {
baseIndent: {
type: "integer",
minimum: 0
},
switchCase: {
type: "integer",
minimum: 0
},
ignores: {
type: "array",
items: { allOf: [
{ type: "string" },
{ not: {
type: "string",
pattern: ":exit$"
} },
{ not: {
type: "string",
pattern: String.raw`^\s*$`
} }
] },
uniqueItems: true,
additionalItems: false
}
},
additionalProperties: false
}]
},
create(context) {
return require_indent_common.defineVisitor(context, context.sourceCode, {});
}
};
//#endregion
exports.default = script_indent_default;