Skip to content

Commit cf690c2

Browse files
committed
Fix code style
1 parent 8bdfc73 commit cf690c2

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

lib/nested-declaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { Container } = require('postcss')
22

33
class NestedDeclaration extends Container {
4-
constructor (defaults) {
4+
constructor(defaults) {
55
super(defaults)
66
this.type = 'decl'
77
this.isNested = true

lib/scss-parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ let { Input } = require('postcss')
22

33
let ScssParser = require('./scss-parser')
44

5-
module.exports = function scssParse (scss, opts) {
5+
module.exports = function scssParse(scss, opts) {
66
let input = new Input(scss, opts)
77

88
let parser = new ScssParser(input)

lib/scss-stringifier.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let Stringifier = require('postcss/lib/stringifier')
22

33
class ScssStringifier extends Stringifier {
4-
comment (node) {
4+
comment(node) {
55
let left = this.raw(node, 'left', 'commentLeft')
66
let right = this.raw(node, 'right', 'commentRight')
77

@@ -13,7 +13,7 @@ class ScssStringifier extends Stringifier {
1313
}
1414
}
1515

16-
decl (node, semicolon) {
16+
decl(node, semicolon) {
1717
if (!node.isNested) {
1818
super.decl(node, semicolon)
1919
} else {
@@ -37,7 +37,7 @@ class ScssStringifier extends Stringifier {
3737
}
3838
}
3939

40-
rawValue (node, prop) {
40+
rawValue(node, prop) {
4141
let value = node[prop]
4242
let raw = node.raws[prop]
4343
if (raw && raw.value === value) {

lib/scss-stringify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
let ScssStringifier = require('./scss-stringifier')
22

3-
module.exports = function scssStringify (node, builder) {
3+
module.exports = function scssStringify(node, builder) {
44
let str = new ScssStringifier(builder)
55
str.stringify(node)
66
}

lib/scss-syntax.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as postcss from 'postcss';
1+
import * as postcss from 'postcss'
22

3-
export const parse: postcss.Parser<postcss.Root>;
4-
export const stringify: postcss.Stringifier;
3+
export const parse: postcss.Parser<postcss.Root>
4+
export const stringify: postcss.Stringifier

lib/scss-syntax.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import index from "./scss-syntax.js"
1+
import index from './scss-syntax.js'
22

33
export default index
44

lib/scss-tokenize.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const RE_HEX_ESCAPE = /[\da-f]/i
3333
const RE_NEW_LINE = /[\n\f\r]/g // SCSS PATCH
3434

3535
// SCSS PATCH function name was changed
36-
module.exports = function scssTokenize (input, options = {}) {
36+
module.exports = function scssTokenize(input, options = {}) {
3737
let css = input.css.valueOf()
3838
let ignore = options.ignoreErrors
3939

@@ -47,20 +47,20 @@ module.exports = function scssTokenize (input, options = {}) {
4747

4848
let brackets // SCSS PATCH
4949

50-
function position () {
50+
function position() {
5151
return pos
5252
}
5353

54-
function unclosed (what) {
54+
function unclosed(what) {
5555
throw input.error('Unclosed ' + what, pos)
5656
}
5757

58-
function endOfFile () {
58+
function endOfFile() {
5959
return returned.length === 0 && pos >= length
6060
}
6161

6262
// SCSS PATCH {
63-
function interpolation () {
63+
function interpolation() {
6464
let deep = 1
6565
let stringQuote = false
6666
let stringEscaped = false
@@ -91,7 +91,7 @@ module.exports = function scssTokenize (input, options = {}) {
9191
}
9292
// } SCSS PATCH
9393

94-
function nextToken (opts) {
94+
function nextToken(opts) {
9595
if (returned.length) return returned.pop()
9696
if (pos >= length) return undefined
9797

@@ -322,7 +322,7 @@ module.exports = function scssTokenize (input, options = {}) {
322322
return currentToken
323323
}
324324

325-
function back (token) {
325+
function back(token) {
326326
returned.push(token)
327327
}
328328

0 commit comments

Comments
 (0)