@@ -41,7 +41,10 @@ export interface ProjectConfig {
41
41
}
42
42
43
43
export class ProjectLocator {
44
- constructor ( private base : string , private settings : Settings ) { }
44
+ constructor (
45
+ private base : string ,
46
+ private settings : Settings ,
47
+ ) { }
45
48
46
49
async search ( ) : Promise < ProjectConfig [ ] > {
47
50
// Locate all the Tailwind CSS config files in the project
@@ -149,7 +152,7 @@ export class ProjectLocator {
149
152
// Eliminate duplicate selector patterns
150
153
selectors = selectors . filter (
151
154
( { pattern } , index , documentSelectors ) =>
152
- documentSelectors . findIndex ( ( { pattern : p } ) => p === pattern ) === index
155
+ documentSelectors . findIndex ( ( { pattern : p } ) => p === pattern ) === index ,
153
156
)
154
157
155
158
return {
@@ -232,7 +235,7 @@ export class ProjectLocator {
232
235
entries : [ ] ,
233
236
packageRoot : null ,
234
237
content : [ ] ,
235
- } ) )
238
+ } ) ) ,
236
239
)
237
240
continue
238
241
}
@@ -323,7 +326,7 @@ export class ProjectLocator {
323
326
function contentSelectorsFromConfig (
324
327
entry : ConfigEntry ,
325
328
features : Feature [ ] ,
326
- actualConfig ?: any
329
+ actualConfig ?: any ,
327
330
) : AsyncIterable < DocumentSelector > {
328
331
if ( entry . type === 'css' ) {
329
332
return contentSelectorsFromCssConfig ( entry )
@@ -337,7 +340,7 @@ function contentSelectorsFromConfig(
337
340
async function * contentSelectorsFromJsConfig (
338
341
entry : ConfigEntry ,
339
342
features : Feature [ ] ,
340
- actualConfig ?: any
343
+ actualConfig ?: any ,
341
344
) : AsyncIterable < DocumentSelector > {
342
345
let config = actualConfig ?? require ( entry . path )
343
346
let files : unknown = config . content ?. files ?? config . content
@@ -421,7 +424,11 @@ class FileEntry {
421
424
content : string | null
422
425
deps : Message [ ] = [ ]
423
426
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
+ ) { }
425
432
426
433
async read ( ) {
427
434
try {
0 commit comments