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

@markuplint/ml-config

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/ml-config - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0-alpha.0.36

lib/merge-config.d.ts

61

lib/index.d.ts

@@ -1,58 +0,3 @@

export interface Config {
$schema?: string;
parser?: ParserConfig;
parserOptions?: ParserOptions;
extends?: string | string[];
specs?: string | string[];
rules?: Rules;
nodeRules?: NodeRule[];
childNodeRules?: ChildNodeRule[];
excludeFiles?: string[];
}
export interface ParserConfig {
[extensionPattern: string]: string;
}
export declare type ParserOptions = {
ignoreFrontMatter?: boolean;
};
export declare type Rule = RuleConfig<RuleConfigValue, unknown> | RuleConfigValue;
export interface Rules {
[ruleName: string]: Rule;
}
export declare type RuleConfig<T extends RuleConfigValue, O = void> = {
severity?: Severity;
value?: T;
option?: O;
};
export declare type Severity = 'error' | 'warning' | 'info';
export declare type RuleConfigValue = string | number | boolean | any[] | null;
export interface NodeRule {
tagName?: string;
selector?: string;
categories?: string[];
roles?: string[];
obsolete?: boolean;
rules?: Rules;
}
export interface ChildNodeRule {
tagName?: string;
selector?: string;
inheritance?: boolean;
rules?: Rules;
}
export interface Result {
severity: Severity;
message: string;
line: number;
col: number;
raw: string;
}
export interface VerifiedResult extends Result {
ruleId: string;
}
export interface RuleInfo<T extends RuleConfigValue, O = null> {
disabled: boolean;
severity: Severity;
value: T;
option: O;
}
export * from './merge-config';
export * from './utils';
export * from './types';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./merge-config"), exports);
(0, tslib_1.__exportStar)(require("./utils"), exports);
(0, tslib_1.__exportStar)(require("./types"), exports);
{
"name": "@markuplint/ml-config",
"version": "1.3.0",
"version": "2.0.0-alpha.0.36+6a10aede",
"description": "JSON Schema and TypeScript types of markuplint configure JSON",

@@ -18,3 +18,11 @@ "repository": "git@github.com:markuplint/markuplint.git",

},
"gitHead": "94955520e9fad6a45e8831c47f6b8b342b77efdc"
"devDependencies": {
"@types/mustache": "^4.1.2"
},
"dependencies": {
"deepmerge": "^4.2.2",
"is-plain-object": "^5.0.0",
"mustache": "^4.2.0"
},
"gitHead": "6a10aede7385e2e97d0ba2c272a2e8c08e5429fd"
}
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true
},
"include": ["./src/**/*"],
"exclude": ["node_modules"]
"extends": "../../../tsconfig.json"
}

Sorry, the diff of this file is not supported yet

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