Skip to content

Commit d6dc611

Browse files
author
Adam Gruber
committed
Fix lint errors
1 parent e56dc1a commit d6dc611

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/transformVars.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ function getSassValue(sassVar) {
3535
return sassVar.unit ? `${value}${sassVar.unit}` : value;
3636

3737
case 'SassColor': {
38-
const { r, g, b, a } = value;
38+
const {
39+
r, g, b, a,
40+
} = value;
3941
const hasAlpha = a !== 1;
4042
return hasAlpha
4143
? `rgba(${r.toFixed()}, ${g.toFixed()}, ${b.toFixed()}, ${a})`

test/test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ const testfiles = {
1010
empty: path.resolve(__dirname, './sass/test-empty.scss'),
1111
};
1212

13-
const getVars = (file, compileOpts = {}, plugin) =>
14-
sassExtract.renderSync(
15-
Object.assign({}, { file }, compileOpts),
16-
{ plugins: [plugin || path.resolve('../sass-extract-js')] },
17-
).vars;
13+
const getVars = (file, compileOpts = {}, plugin) => sassExtract.renderSync(
14+
Object.assign({}, { file }, compileOpts),
15+
{ plugins: [plugin || path.resolve('../sass-extract-js')] },
16+
).vars;
1817

1918
describe('sass-extract-js', () => {
2019
it('should convert basic SASS vars', () => {

0 commit comments

Comments
 (0)