Home
last modified time | relevance | path

Searched +full:valid +full:- +full:jsdoc (Results 1 – 14 of 14) sorted by relevance

/third_party/node/tools/node_modules/eslint/lib/rules/
Dvalid-jsdoc.js2 * @fileoverview Validates JSDoc comments are syntactically correct
7 //------------------------------------------------------------------------------
9 //------------------------------------------------------------------------------
13 //------------------------------------------------------------------------------
15 //------------------------------------------------------------------------------
22 description: "enforce valid JSDoc comments",
25 url: "https://eslint.org/docs/rules/valid-jsdoc"
75 expected: "Expected JSDoc for '{{name}}' but found '{{jsdocName}}'.",
78 syntaxError: "JSDoc syntax error.",
79 missingBrace: "JSDoc type missing brace.",
[all …]
Dspaced-comment.js2 * @fileoverview Source code for spaced-comments rule
8 const astUtils = require("./utils/ast-utils");
10 //------------------------------------------------------------------------------
12 //------------------------------------------------------------------------------
35 * If markers don't include `"*"`, this adds `"*"` to allow JSDoc comments.
41 // `*` is a marker for JSDoc comments.
42 if (markers.indexOf("*") === -1) {
63 * ["-"] ==> "(?:\s|\-+$)"
64 * ["-", "="] ==> "(?:\s|(?:\-+|=+)$)"
65-", "=", "--=="] ==> "(?:\s|(?:\-+|=+|(?:\-\-==)+)$)" ==> https://jex.im/regulex/#!embed=false&fla…
[all …]
Dindex.js2 …* @fileoverview Collects the built-in rules into a map structure so that they can be imported all …
3 * using the file-system directly.
9 /* eslint sort-keys: ["error", "asc"] */
11 const { LazyLoadingRuleMap } = require("./utils/lazy-loading-rule-map");
15 "accessor-pairs": () => require("./accessor-pairs"),
16 "array-bracket-newline": () => require("./array-bracket-newline"),
17 "array-bracket-spacing": () => require("./array-bracket-spacing"),
18 "array-callback-return": () => require("./array-callback-return"),
19 "array-element-newline": () => require("./array-element-newline"),
20 "arrow-body-style": () => require("./arrow-body-style"),
[all …]
Dmultiline-comment-style.js7 const astUtils = require("./utils/ast-utils");
9 //------------------------------------------------------------------------------
11 //------------------------------------------------------------------------------
21 url: "https://eslint.org/docs/rules/multiline-comment-style"
25 schema: [{ enum: ["starred-block", "separate-lines", "bare-block"] }],
39 const option = context.options[0] || "starred-block";
41 //----------------------------------------------------------------------
43 //----------------------------------------------------------------------
55 * Checks if a comment group is in starred-block form.
67 …return lines.length > 0 && lines.every((line, i) => (i === 0 || i === lines.length - 1 ? /^\s*$/u …
[all …]
Dindent.js11 //------------------------------------------------------------------------------
13 //------------------------------------------------------------------------------
16 const astUtils = require("./utils/ast-utils");
17 const createTree = require("functional-red-black-tree");
19 //------------------------------------------------------------------------------
21 //------------------------------------------------------------------------------
147 if (iterator.valid) {
179 while (iterator.valid && iterator.key < end) {
187 * A helper class to get token-based info related to indentation
191 // eslint-disable-next-line jsdoc/require-description
[all …]
/third_party/node/tools/node_modules/babel-eslint/node_modules/eslint-visitor-keys/lib/
Dindex.js7 const KEYS = require("./visitor-keys.json");
34 //------------------------------------------------------------------------------
36 //------------------------------------------------------------------------------
55 // Disable valid-jsdoc rule because it reports syntax error on the type of @returns.
56 // eslint-disable-next-line valid-jsdoc
/third_party/node/tools/node_modules/eslint/node_modules/eslint-visitor-keys/lib/
Dindex.js7 const KEYS = require("./visitor-keys.json");
34 //------------------------------------------------------------------------------
36 //------------------------------------------------------------------------------
55 // Disable valid-jsdoc rule because it reports syntax error on the type of @returns.
56 // eslint-disable-next-line valid-jsdoc
/third_party/node/deps/npm/node_modules/fast-json-stable-stringify/
D.eslintrc.yml6 block-scoped-var: 2
7 callback-return: 2
8 dot-notation: 2
10 linebreak-style: [2, unix]
11 new-cap: 2
12 no-console: [2, allow: [warn, error]]
13 no-else-return: 2
14 no-eq-null: 2
15 no-fallthrough: 2
16 no-invalid-this: 2
[all …]
/third_party/node/deps/npm/node_modules/har-validator/node_modules/json-schema-traverse/
D.eslintrc.yml6 block-scoped-var: 2
8 curly: [2, multi-or-nest, consistent]
9 dot-location: [2, property]
10 dot-notation: 2
12 linebreak-style: [2, unix]
13 new-cap: 2
14 no-console: [2, allow: [warn, error]]
15 no-else-return: 2
16 no-eq-null: 2
17 no-fallthrough: 2
[all …]
/third_party/node/tools/node_modules/eslint/lib/source-code/
Dsource-code.js7 //------------------------------------------------------------------------------
9 //------------------------------------------------------------------------------
12 { isCommentToken } = require("eslint-utils"),
13 TokenStore = require("./token-store"),
14 astUtils = require("../shared/ast-utils"),
18 //------------------------------------------------------------------------------
20 //------------------------------------------------------------------------------
143 //------------------------------------------------------------------------------
145 //------------------------------------------------------------------------------
225 * The source code split into lines according to ECMA-262 specification.
[all …]
/third_party/node/tools/node_modules/eslint/lib/init/
Dconfig-rule.js8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
14 //------------------------------------------------------------------------------
16 //------------------------------------------------------------------------------
35 * combineArrays([a, [b, c]], [x, y]); // -> [[a, x], [a, y], [b, c, x], [b, c, y]]
58 * Group together valid rule configurations based on object properties
88 //------------------------------------------------------------------------------
90 //------------------------------------------------------------------------------
104 * Object whose keys are rule names and values are arrays of valid ruleConfig items
109 * "comma-dangle": [2, [2, "always"], [2, "always-multiline"], [2, "never"]],
[all …]
Dautoconfig.js8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
13 recConfig = require("../../conf/eslint-recommended"),
14 ConfigOps = require("@eslint/eslintrc/lib/shared/config-ops"),
16 configRule = require("./config-rule");
21 //------------------------------------------------------------------------------
23 //------------------------------------------------------------------------------
28 //------------------------------------------------------------------------------
30 //------------------------------------------------------------------------------
35 * @param {ruleConfig} config A valid configuration for the rule
[all …]
/third_party/node/tools/node_modules/eslint/lib/rules/utils/
Dast-utils.js8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
20 } = require("../../shared/ast-utils");
22 //------------------------------------------------------------------------------
24 //------------------------------------------------------------------------------
40 const DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u;
41 const OCTAL_ESCAPE_PATTERN = /^(?:[^\\]|\\[^0-7]|\\0(?![0-9]))*\\(?:[1-7]|0[0-9])/u;
62 references[index - 1].identifier !== identifier;
107 * - ArrowFunctionExpression
108 * - FunctionDeclaration
[all …]
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
99 return sp.size() >= x.size() && sp.substr(sp.size() - x.size()) == x; in StrEndsWith()
129 // Well-known types (.proto files in the google/protobuf directory) are in GetRootPath()
130 // assumed to come from the 'google-protobuf' npm package. We may want to in GetRootPath()
133 return "google-protobuf/"; in GetRootPath()
158 ReplaceCharacters(&basename, "-", '$'); in ModuleAlias()
170 } else if (!file->package().empty()) { in GetNamespace()
171 return "proto." + file->package(); in GetNamespace()
186 descriptor->full_name(), descriptor->file()->package()); in GetNestedMessageName()
[all …]