@eslint/css-tree 3.5.1 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/csstree.esm.js +1 -1
- package/dist/csstree.js +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/lib/data.d.ts +11 -0
- package/lib/index.d.ts +2 -2
- package/package.json +3 -2
package/dist/version.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = "3.5.
|
|
1
|
+
module.exports = "3.5.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "3.5.
|
|
1
|
+
export const version = "3.5.2";
|
package/lib/data.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Type definitions for @eslint/css-tree/definition-syntax-data
|
|
3
|
+
* @author Nicholas C. Zakas
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { SyntaxConfig } from "./index.js";
|
|
7
|
+
|
|
8
|
+
export type DefaultSyntaxConfig = Pick<SyntaxConfig, "atrules" | "types" | "properties">;
|
|
9
|
+
|
|
10
|
+
declare const defaultConfig: DefaultSyntaxConfig;
|
|
11
|
+
export default defaultConfig;
|
package/lib/index.d.ts
CHANGED
|
@@ -522,7 +522,7 @@ export class List<TData> {
|
|
|
522
522
|
|
|
523
523
|
export interface CssNodeCommon {
|
|
524
524
|
type: string;
|
|
525
|
-
loc?: CssLocationRange |
|
|
525
|
+
loc?: CssLocationRange | null;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
export interface AnPlusB extends CssNodeCommon {
|
|
@@ -2705,7 +2705,7 @@ interface StructureDefinition {
|
|
|
2705
2705
|
interface NodeSyntaxConfig<T extends CssNodeCommon = CssNodeCommon> {
|
|
2706
2706
|
name: string;
|
|
2707
2707
|
structure: StructureDefinition;
|
|
2708
|
-
parse(this: ParserContext): T;
|
|
2708
|
+
parse(this: ParserContext, ...args:Array<unknown>): T;
|
|
2709
2709
|
generate(this: ParserContext, node: T): void;
|
|
2710
2710
|
walkContext?: string;
|
|
2711
2711
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint/css-tree",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations",
|
|
5
5
|
"author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
},
|
|
68
68
|
"./definition-syntax-data": {
|
|
69
69
|
"import": "./lib/data.js",
|
|
70
|
-
"require": "./cjs/data.cjs"
|
|
70
|
+
"require": "./cjs/data.cjs",
|
|
71
|
+
"types": "./lib/data.d.ts"
|
|
71
72
|
},
|
|
72
73
|
"./definition-syntax-data-patch": {
|
|
73
74
|
"import": "./lib/data-patch.js",
|