npm.io
6.1.4 • Published 2 years ago

@types/gulp-lesshint

Licence
MIT
Version
6.1.4
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/gulp-lesshint

Summary

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

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-lesshint.

index.d.ts

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

import { Transform } from "stream";

declare namespace gulpLesshint {
    interface Options {
        configPath?: string;
        maxWarnings?: number;
    }

    interface LessHintFile {
        lesshint: {
            success: boolean;
            resultCount: number;
            results: {
                column: number;
                file: string;
                fullPath: string;
                line: number;
                linter: string;
                message: string;
                severity: string;
            };
        };
        [key: string]: any;
    }

    interface Plugin {
        (options?: Options): {
            on(event: "data", listener: (file: LessHintFile) => void): Transform;
        } & Transform;
        reporter(reporter?: string): Transform;
        failOnError(): Transform;
        failOnWarning(): Transform;
    }
}

declare const lesshintPlugin: gulpLesshint.Plugin;

export = lesshintPlugin;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Martin Badin.