Skip to content

Commit 79a2bb3

Browse files
David Hemphilladamwathan
authored andcommitted
Reformat files
1 parent c404c55 commit 79a2bb3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+174
-167
lines changed

__tests__/defineClass.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ it('does not modify the case of selector names', () => {
1616

1717
it('does not modify the case of property names', () => {
1818
let output = defineClass('smooth', {
19-
'-webkit-font-smoothing': 'antialiased'
19+
'-webkit-font-smoothing': 'antialiased',
2020
})
2121
expect(c(output.toString())).toEqual(
2222
`.smooth { -webkit-font-smoothing: antialiased }`

__tests__/defineClasses.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import defineClasses from '../src/util/defineClasses'
77
it('it generates a set of helper classes from a config', () => {
88
let output = defineClasses({
99
flex: {
10-
display: 'flex'
10+
display: 'flex',
1111
},
1212
'inline-flex': {
13-
display: 'inline-flex'
14-
}
13+
display: 'inline-flex',
14+
},
1515
})
1616
expect(output).toBeInstanceOf(Array)
1717
expect(c(output[0].toString())).toEqual(`.flex { display: flex }`)

src/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function buildDistFile(filename) {
1414
.process(css, {
1515
from: `./css/${filename}.css`,
1616
to: `./dist/${filename}.css`,
17-
map: { inline: false }
17+
map: { inline: false },
1818
})
1919
.then(result => {
2020
fs.writeFileSync(`./dist/${filename}.css`, result.css)
@@ -41,7 +41,7 @@ console.info('Building Tailwind!')
4141
Promise.all([
4242
buildDistFile('preflight'),
4343
buildDistFile('utilities'),
44-
buildDistFile('tailwind')
44+
buildDistFile('tailwind'),
4545
]).then(() => {
4646
console.log('Finished Building Tailwind!')
4747
})

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ program
5656
.action((filename = 'tailwind.js') => {
5757
let destination = path.resolve(filename)
5858

59-
if (! path.extname(filename).includes('.js')) {
59+
if (!path.extname(filename).includes('.js')) {
6060
destination += '.js'
6161
}
6262

@@ -100,7 +100,7 @@ program
100100

101101
program
102102
.command('*', null, {
103-
noHelp: true
103+
noHelp: true,
104104
})
105105
.action(() => {
106106
program.help()

src/generators/backgroundColors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function({ backgroundColors }) {
66
return hoverable(
77
_.map(backgroundColors, (color, className) => {
88
return defineClass(`bg-${className}`, {
9-
'background-color': color
9+
'background-color': color,
1010
})
1111
})
1212
)

src/generators/backgroundPositions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export default function() {
1010
'bg-right': { 'background-position': 'right' },
1111
'bg-right-bottom': { 'background-position': 'right bottom' },
1212
'bg-right-top': { 'background-position': 'right top' },
13-
'bg-top': { 'background-position': 'top' }
13+
'bg-top': { 'background-position': 'top' },
1414
})
1515
}

src/generators/backgroundSize.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import defineClasses from '../util/defineClasses'
33
export default function() {
44
return defineClasses({
55
'bg-cover': {
6-
'background-size': 'cover'
6+
'background-size': 'cover',
77
},
88
'bg-contain': {
9-
'background-size': 'contain'
10-
}
9+
'background-size': 'contain',
10+
},
1111
})
1212
}

src/generators/borderColors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function({ borderColors }) {
66
return hoverable(
77
_.map(_.omit(borderColors, 'default'), (color, className) => {
88
return defineClass(`border-${className}`, {
9-
'border-color': color
9+
'border-color': color,
1010
})
1111
})
1212
)

src/generators/borderStyles.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import defineClasses from '../util/defineClasses'
33
export default function() {
44
return defineClasses({
55
'border-dashed': {
6-
'border-style': 'dashed'
6+
'border-style': 'dashed',
77
},
88
'border-dotted': {
9-
'border-style': 'dotted'
9+
'border-style': 'dotted',
1010
},
1111
'border-none': {
12-
'border-style': 'none'
13-
}
12+
'border-style': 'none',
13+
},
1414
})
1515
}

src/generators/borderStylesReset.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import defineClasses from '../util/defineClasses'
33
export default function() {
44
return defineClasses({
55
'border-dashed': {
6-
'border-width': '0'
6+
'border-width': '0',
77
},
88
'border-dotted': {
9-
'border-width': '0'
10-
}
9+
'border-width': '0',
10+
},
1111
})
1212
}

0 commit comments

Comments
 (0)