Skip to content

Commit 9ee88a2

Browse files
committed
Fix formatting
1 parent 78b8ca4 commit 9ee88a2

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

packages/tailwindcss-language-server/src/project-locator.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export interface ProjectConfig {
4141
}
4242

4343
export class ProjectLocator {
44-
constructor(private base: string, private settings: Settings) {}
44+
constructor(
45+
private base: string,
46+
private settings: Settings,
47+
) {}
4548

4649
async search(): Promise<ProjectConfig[]> {
4750
// Locate all the Tailwind CSS config files in the project
@@ -149,7 +152,7 @@ export class ProjectLocator {
149152
// Eliminate duplicate selector patterns
150153
selectors = selectors.filter(
151154
({ pattern }, index, documentSelectors) =>
152-
documentSelectors.findIndex(({ pattern: p }) => p === pattern) === index
155+
documentSelectors.findIndex(({ pattern: p }) => p === pattern) === index,
153156
)
154157

155158
return {
@@ -232,7 +235,7 @@ export class ProjectLocator {
232235
entries: [],
233236
packageRoot: null,
234237
content: [],
235-
}))
238+
})),
236239
)
237240
continue
238241
}
@@ -323,7 +326,7 @@ export class ProjectLocator {
323326
function contentSelectorsFromConfig(
324327
entry: ConfigEntry,
325328
features: Feature[],
326-
actualConfig?: any
329+
actualConfig?: any,
327330
): AsyncIterable<DocumentSelector> {
328331
if (entry.type === 'css') {
329332
return contentSelectorsFromCssConfig(entry)
@@ -337,7 +340,7 @@ function contentSelectorsFromConfig(
337340
async function* contentSelectorsFromJsConfig(
338341
entry: ConfigEntry,
339342
features: Feature[],
340-
actualConfig?: any
343+
actualConfig?: any,
341344
): AsyncIterable<DocumentSelector> {
342345
let config = actualConfig ?? require(entry.path)
343346
let files: unknown = config.content?.files ?? config.content
@@ -421,7 +424,11 @@ class FileEntry {
421424
content: string | null
422425
deps: Message[] = []
423426

424-
constructor(public type: 'js' | 'css', public path: string, public configs: ConfigEntry[] = []) {}
427+
constructor(
428+
public type: 'js' | 'css',
429+
public path: string,
430+
public configs: ConfigEntry[] = [],
431+
) {}
425432

426433
async read() {
427434
try {

0 commit comments

Comments
 (0)