Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/styles/parser/css-parser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import postcss from "postcss"
import * as postcss from "postcss"
import postcssSafeParser from "postcss-safe-parser"
import { CSSSelectorParser } from "./selector/css-selector-parser"
import type { VCSSCommentNode, VCSSNode, VCSSContainerNode } from "../ast"
Expand Down
2 changes: 1 addition & 1 deletion lib/styles/parser/scss-parser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import postcssScss from "postcss-scss"
import type postcss from "postcss"
import type * as postcss from "postcss"
import { CSSParser } from "./css-parser"
import type { VCSSContainerNode, VCSSNode } from "../ast"
import { VCSSInlineComment } from "../ast"
Expand Down
2 changes: 1 addition & 1 deletion lib/styles/parser/stylus-parser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import postcssStyl from "postcss-styl"
import type postcss from "postcss"
import type * as postcss from "postcss"
import { CSSParser } from "./css-parser"
import type { VCSSContainerNode, VCSSNode } from "../ast"
import { VCSSInlineComment } from "../ast"
Expand Down
18 changes: 9 additions & 9 deletions lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type AST from "vue-eslint-parser/ast"
import type postcss from "postcss"
import type * as postcss from "postcss"
import type selectorParser from "postcss-selector-parser"
import type { ScopeManager } from "eslint-scope"
import type { Rule } from "eslint"
Expand Down Expand Up @@ -192,7 +192,7 @@ export interface TokenStore {
): AST.Token[]
}
type HasPostCSSSource = {
source: postcss.NodeSource
source: postcss.Source
}
export type PostCSSNode =
| PostCSSRoot
Expand All @@ -209,36 +209,36 @@ type PostCSSChildNode = (
postcss.ChildNode
export interface PostCSSRoot extends postcss.Root, HasPostCSSSource {
nodes: PostCSSChildNode[]
source: postcss.NodeSource & {
source: postcss.Source & {
input: postcss.Input & {
css: string
}
}
}
export interface PostCSSAtRule extends postcss.AtRule, HasPostCSSSource {
nodes: PostCSSChildNode[]
raws: postcss.AtRuleRaws & {
raws: postcss.AtRule["raws"] & {
params?: {
raw: string
}
}
source: postcss.NodeSource
source: postcss.Source
}
export interface PostCSSRule extends postcss.Rule, HasPostCSSSource {
nodes: PostCSSChildNode[]
raws: postcss.RuleRaws & {
raws: postcss.Rule["raws"] & {
selector?: {
raw: string
}
}
source: postcss.NodeSource
source: postcss.Source
}
export type PostCSSDeclaration = postcss.Declaration & HasPostCSSSource
export interface PostCSSComment extends postcss.Comment, HasPostCSSSource {
raws: postcss.NodeRaws & {
raws: postcss.Comment["raws"] & {
inline?: boolean
}
source: postcss.NodeSource
source: postcss.Source
}
export type PostCSSContainer = PostCSSRoot | PostCSSAtRule | PostCSSRule

Expand Down
Loading