UNPKG

dclint

Version:

A command-line tool for validating and enforcing best practices in Docker Compose files.

19 lines (18 loc) 686 B
import type { LintContext } from '../linter/linter.types'; import type { Rule, RuleCategory, RuleSeverity, RuleType, RuleMeta, RuleMessage } from './rules.types'; export default class ServicesAlphabeticalOrderRule implements Rule { static readonly name = "services-alphabetical-order"; get name(): string; type: RuleType; category: RuleCategory; severity: RuleSeverity; meta: RuleMeta; fixable: boolean; getMessage({ serviceName, misplacedBefore }: { serviceName: string; misplacedBefore: string; }): string; private static findMisplacedService; check(context: LintContext): RuleMessage[]; fix(content: string): string; }