mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
This CL adds the eslint-plugin-jsdoc plugin and enables just one rule, `jsdoc/check-alignment`, which ensures that all the lines in a comment are correctly aligned. For example: ``` /** * foo * bar */ ``` Would fail the check and be corrected to: ``` /** * foo * bar */ ``` DISABLE_THIRD_PARTY_CHECK=deliberate install + use of eslint-plugin-jsdoc node_module Bug: none Change-Id: I969983cd550653654a334ede3409b8c850467245 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4110906 Commit-Queue: Andres Olivares <andoli@chromium.org> Reviewed-by: Andres Olivares <andoli@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
83 lines
2.1 KiB
JavaScript
83 lines
2.1 KiB
JavaScript
"use strict";
|
|
|
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
Object.defineProperty(o, k2, {
|
|
enumerable: true,
|
|
get: function () {
|
|
return m[k];
|
|
}
|
|
});
|
|
} : function (o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
});
|
|
|
|
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
};
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.util = exports.tokenizers = exports.transforms = exports.inspect = exports.stringify = exports.parse = void 0;
|
|
|
|
const index_1 = require("./parser/index.cjs");
|
|
|
|
const description_1 = require("./parser/tokenizers/description.cjs");
|
|
|
|
const name_1 = require("./parser/tokenizers/name.cjs");
|
|
|
|
const tag_1 = require("./parser/tokenizers/tag.cjs");
|
|
|
|
const type_1 = require("./parser/tokenizers/type.cjs");
|
|
|
|
const index_2 = require("./stringifier/index.cjs");
|
|
|
|
const align_1 = require("./transforms/align.cjs");
|
|
|
|
const indent_1 = require("./transforms/indent.cjs");
|
|
|
|
const crlf_1 = require("./transforms/crlf.cjs");
|
|
|
|
const index_3 = require("./transforms/index.cjs");
|
|
|
|
const util_1 = require("./util.cjs");
|
|
|
|
__exportStar(require("./primitives.cjs"), exports);
|
|
|
|
function parse(source, options = {}) {
|
|
return index_1.default(options)(source);
|
|
}
|
|
|
|
exports.parse = parse;
|
|
exports.stringify = index_2.default();
|
|
|
|
var inspect_1 = require("./stringifier/inspect.cjs");
|
|
|
|
Object.defineProperty(exports, "inspect", {
|
|
enumerable: true,
|
|
get: function () {
|
|
return inspect_1.default;
|
|
}
|
|
});
|
|
exports.transforms = {
|
|
flow: index_3.flow,
|
|
align: align_1.default,
|
|
indent: indent_1.default,
|
|
crlf: crlf_1.default
|
|
};
|
|
exports.tokenizers = {
|
|
tag: tag_1.default,
|
|
type: type_1.default,
|
|
name: name_1.default,
|
|
description: description_1.default
|
|
};
|
|
exports.util = {
|
|
rewireSpecs: util_1.rewireSpecs,
|
|
rewireSource: util_1.rewireSource,
|
|
seedBlock: util_1.seedBlock,
|
|
seedTokens: util_1.seedTokens
|
|
};
|
|
//# sourceMappingURL=index.cjs.map
|