Lines Matching +full:eslint +full:- +full:scope
4 * SPDX-License-Identifier: BSD-3-Clause
7 /* eslint-env es6 */
12 const yaml = require("js-yaml");
14 const { "trailer-exists": trailerExists } = require("@commitlint/rules").default;
18 * configuration file - `changelog.yaml` - as they decide which section of the changelog commits
19 * with a given type and scope are placed in.
40 const scope = subsection.scope ? [ subsection.scope ] : [];
43 return scope.concat(subscopes);
51 extends: ["@commitlint/config-conventional"],
55 "signed-off-by-exists": trailerExists,
56 "change-id-exists": trailerExists,
61 "header-max-length": [1, "always", 50], /* Warning */
62 "body-max-line-length": [1, "always", 72], /* Warning */
64 "change-id-exists": [1, "always", "Change-Id:"], /* Warning */
65 "signed-off-by-exists": [1, "always", "Signed-off-by:"], /* Warning */
67 "type-case": [2, "always", "lower-case" ], /* Error */
68 "type-enum": [2, "always", types], /* Error */
70 "scope-case": [2, "always", "lower-case"], /* Error */
71 "scope-enum": [1, "always", scopes] /* Warning */