14.1.4 • Published 7 months ago

@types/ronilaukkarinen__gulp-stylelint v14.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for @ronilaukkarinen/gulp-stylelint 14.0
// Project: https://github.com/ronilaukkarinen/gulp-stylelint
// Definitions by: Martin Badin <https://github.com/martin-badin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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.

14.1.2

8 months ago

14.1.3

7 months ago

14.1.4

7 months ago

14.1.1

1 year ago

14.1.0

1 year ago

14.0.0

2 years ago