@types/ronilaukkarinen__gulp-stylelint
TypeScript icon, indicating that this package has built-in type declarations

14.1.4 • Public • Published

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 * as stylelint from "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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ronilaukkarinen__gulp-stylelint

Weekly Downloads

42

Version

14.1.4

License

MIT

Unpacked Size

5.26 kB

Total Files

5

Last publish

Collaborators

  • types