mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +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>
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import { Options as ParserOptions } from './parser/index';
|
|
import descriptionTokenizer from './parser/tokenizers/description';
|
|
import nameTokenizer from './parser/tokenizers/name';
|
|
import tagTokenizer from './parser/tokenizers/tag';
|
|
import typeTokenizer from './parser/tokenizers/type';
|
|
import alignTransform from './transforms/align';
|
|
import indentTransform from './transforms/indent';
|
|
import crlfTransform from './transforms/crlf';
|
|
import { flow as flowTransform } from './transforms/index';
|
|
import { rewireSpecs, rewireSource, seedBlock, seedTokens } from './util';
|
|
export * from './primitives';
|
|
export declare function parse(source: string, options?: Partial<ParserOptions>): import("./primitives").Block[];
|
|
export declare const stringify: import("./stringifier/index").Stringifier;
|
|
export { default as inspect } from './stringifier/inspect';
|
|
export declare const transforms: {
|
|
flow: typeof flowTransform;
|
|
align: typeof alignTransform;
|
|
indent: typeof indentTransform;
|
|
crlf: typeof crlfTransform;
|
|
};
|
|
export declare const tokenizers: {
|
|
tag: typeof tagTokenizer;
|
|
type: typeof typeTokenizer;
|
|
name: typeof nameTokenizer;
|
|
description: typeof descriptionTokenizer;
|
|
};
|
|
export declare const util: {
|
|
rewireSpecs: typeof rewireSpecs;
|
|
rewireSource: typeof rewireSource;
|
|
seedBlock: typeof seedBlock;
|
|
seedTokens: typeof seedTokens;
|
|
};
|