Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/stylelint

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/stylelint

TypeScript definitions for stylelint

  • 7.11.3
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/stylelint

Summary

This package contains type definitions for stylelint (https://github.com/stylelint/stylelint).

Details

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

index.d.ts

// Type definitions for stylelint 7.11
// Project: https://github.com/stylelint/stylelint
// Definitions by: Alan Agius <https://github.com/alan-agius4>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export type FormatterType = "json" | "string" | "verbose";

export type SyntaxType = "scss" | "sass" | "less" | "sugarss";

export interface LinterOptions {
    code?: string | undefined;
    codeFilename?: string | undefined;
    config?: JSON | undefined;
    configBasedir?: string | undefined;
    configFile?: string | undefined;
    configOverrides?: JSON | undefined;
    cache?: boolean | undefined;
    cacheLocation?: string | undefined;
    files?: string | string[] | undefined;
    fix?: boolean | undefined;
    formatter?: FormatterType | undefined;
    ignoreDisables?: boolean | undefined;
    reportNeedlessDisables?: boolean | undefined;
    ignorePath?: boolean | undefined;
    syntax?: SyntaxType | undefined;
    customSyntax?: string | undefined;
}

export interface LinterResult {
    errored: boolean;
    output: string;
    postcssResults: any[];
    results: LintResult[];
}

export interface LintResult {
    source: string;
    errored: boolean | undefined;
    ignored: boolean | undefined;
    warnings: string[];
    deprecations: string[];
    invalidOptionWarnings: any[];
}

export namespace formatters {
    function json(results: LintResult[]): string;
    function string(results: LintResult[]): string;
    function verbose(results: LintResult[]): string;
}

export function lint(options?: LinterOptions): Promise<LinterResult>;

Additional Details

  • Last updated: Fri, 02 Jul 2021 22:33:07 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Alan Agius.

FAQs

Package last updated on 02 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc