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 - npm Package Compare versions

Comparing version 13.13.2 to 13.13.3

114

stylelint/index.d.ts

@@ -13,19 +13,7 @@ // Type definitions for stylelint 13.13

export type FormatterType =
| "json"
| "string"
| "verbose"
| "compact"
| "unix"
| ((results: LintResult[]) => string);
export type FormatterType = 'json' | 'string' | 'verbose' | 'compact' | 'unix' | ((results: LintResult[]) => string);
export type SyntaxType = "css-in-js"
| "html"
| "less"
| "markdown"
| "sass"
| "scss"
| "sugarss";
export type SyntaxType = 'css-in-js' | 'html' | 'less' | 'markdown' | 'sass' | 'scss' | 'sugarss';
export type Severity = "warning" | "error";
export type Severity = 'warning' | 'error';

@@ -37,3 +25,3 @@ export interface Configuration {

processors: string[];
ignoreFiles: string|string[];
ignoreFiles: string | string[];
defaultSeverity: Severity;

@@ -100,11 +88,13 @@ }

export type ValidateOptionsAssertion = {
actual: any;
possible?: any;
optional?: false | undefined;
} | {
actual?: any;
possible: any;
optional: true;
};
export type ValidateOptionsAssertion =
| {
actual: any;
possible?: any;
optional?: false;
}
| {
actual?: any;
possible: any;
optional: true;
};

@@ -119,64 +109,26 @@ export type RuleMessageValue = string | ((...args: any[]) => string);

node: postcss.Node;
index?: number | undefined;
word?: string | undefined;
line?: number | undefined;
index?: number;
word?: string;
line?: number;
}): void;
function ruleMessages<T extends {[key: string]: RuleMessageValue}>(
ruleName: string,
messages: T): T;
function ruleMessages<T extends { [key: string]: RuleMessageValue }>(ruleName: string, messages: T): T;
function validateOptions(result: postcss.Result, ruleName: string,
...options: ValidateOptionsAssertion[]): boolean;
function validateOptions(result: postcss.Result, ruleName: string, ...options: ValidateOptionsAssertion[]): boolean;
function checkAgainstRule(options: {
ruleName: string;
ruleSettings: any;
root: any;
}, callback: (warning: string) => void): void;
function checkAgainstRule(
options: {
ruleName: string;
ruleSettings: any;
root: any;
},
callback: (warning: string) => void,
): void;
}
export type Plugin = (primaryOption: any, secondaryOptions?: object) =>
(root: postcss.Root, result: postcss.Result) => void|PromiseLike<void>;
export type Plugin = (
primaryOption: any,
secondaryOptions?: object,
) => (root: postcss.Root, result: postcss.Result) => void | PromiseLike<void>;
export function createPlugin(
ruleName: string,
plugin: Plugin
): any;
export interface RuleTesterResult {
expected: number;
actual: number;
description: string;
}
export interface RuleTesterTest {
code: string;
description?: string | undefined;
}
export interface RuleTesterTestRejected extends RuleTesterTest {
line?: number | undefined;
column?: number | undefined;
only?: boolean | undefined;
message?: string | undefined;
}
export interface RuleTesterSchema {
ruleName: string;
syntax?: SyntaxType | undefined;
config?: any;
accept?: RuleTesterTest[] | undefined;
reject?: RuleTesterTestRejected[] | undefined;
}
export interface RuleTesterContext {
comparisonCount: number;
completeAssertionDescription: string;
caseDescription: string;
only?: boolean | undefined;
}
export function createRuleTester(
fn: (result: Promise<RuleTesterResult[]>, context: RuleTesterContext) => void
): (rule: Plugin, schema: RuleTesterSchema) => void;
export function createPlugin(ruleName: string, plugin: Plugin): any;
{
"name": "@types/stylelint",
"version": "13.13.2",
"version": "13.13.3",
"description": "TypeScript definitions for stylelint",

@@ -41,4 +41,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stylelint",

},
"typesPublisherContentHash": "64da1ed8231efa4bfd77ad22138af89bdf24d04fc08a257e68a4a5839fd70571",
"typesPublisherContentHash": "3f08fea5b95c1fadb6c43380617f753635a78b69ecb91c80e7024cf9c5ee76f7",
"typeScriptVersion": "3.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 25 Aug 2021 12:31:24 GMT
* Last updated: Fri, 15 Oct 2021 17:31:18 GMT
* Dependencies: [@types/globby](https://npmjs.com/package/@types/globby), [@types/postcss](https://npmjs.com/package/@types/postcss)

@@ -14,0 +14,0 @@ * Global values: none

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