npm.io
14.1.5 • Published 1 year ago

@types/ronilaukkarinen__gulp-stylelint

Licence
MIT
Version
14.1.5
Deps
2
Size
5 kB
Vulns
0
Weekly
0
Stars
51.5K

Installation

npm install --save @types/ronilaukkarinen__gulp-stylelint

Summary

This package contains type definitions for @ronilaukkarinen/gulp-stylelint (https://github.com/ronilaukkarinen/gulp-stylelint).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ronilaukkarinen__gulp-stylelint.

index.d.ts

/// <reference types="node" />

import stylelint = require("stylelint");

interface GulpStylelint {
    (options?: gulpStylelint.Options): NodeJS.ReadWriteStream;
    formatters: Record<string, stylelint.Formatter>;
}

declare namespace gulpStylelint {
    interface Reporter {
        console?: true;
        formatter: string | stylelint.Formatter;
        save?: string;
    }

    interface Options extends Omit<stylelint.LinterOptions, "files" | "formatter"> {
        /**
         * When set to true, the process will end with non-zero error code if any error-level warnings were raised.
         *
         * @default true
         */
        failAfterError?: boolean;

        /**
         * Base directory for lint results written to filesystem.
         */
        reportOutputDir?: string;

        /**
         * List of reporter configuration objects.
         *
         * @default []
         */
        reporters?: Reporter[];

        /**
         * When set to true, the error handler will print an error stack trace.
         *
         * @default true
         */
        debug?: true;
    }
}

declare const gulpStylelint: GulpStylelint;

export = gulpStylelint;

Additional Details

Credits

These definitions were written by Martin Badin.