Skip to content

Commit

Permalink
formatting and consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Jul 20, 2023
1 parent 7f74b57 commit c58ee7c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/apply-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const assignLayerNames = require("./assign-layer-names")

module.exports = function applyMedia (bundle, options, state, atRule) {
module.exports = function applyMedia(bundle, options, state, atRule) {
bundle.forEach(stmt => {
if ((!stmt.media.length && !stmt.layer.length) || stmt.type === "charset") {
return
Expand Down
2 changes: 1 addition & 1 deletion lib/apply-raws.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

module.exports = function applyRaws (bundle) {
module.exports = function applyRaws(bundle) {
bundle.forEach((stmt, index) => {
if (index === 0) return

Expand Down
2 changes: 1 addition & 1 deletion lib/apply-styles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

module.exports = function applyStyles (bundle, styles) {
module.exports = function applyStyles(bundle, styles) {
styles.nodes = []

// Strip additional statements.
Expand Down
2 changes: 1 addition & 1 deletion lib/assign-layer-names.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

module.exports = function (layer, node, state, options) {
module.exports = function assignLayerNames(layer, node, state, options) {
layer.forEach((layerPart, i) => {
if (layerPart.trim() === "") {
if (options.nameLayer) {
Expand Down
2 changes: 1 addition & 1 deletion lib/join-layer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

module.exports = function (parentLayer, childLayer) {
module.exports = function joinLayer(parentLayer, childLayer) {
if (!parentLayer.length && childLayer.length) return childLayer
if (parentLayer.length && !childLayer.length) return parentLayer
if (!parentLayer.length && !childLayer.length) return []
Expand Down
2 changes: 1 addition & 1 deletion lib/join-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const startsWithKeywordRegexp = /^(all|not|only|print|screen)/i

module.exports = function (parentMedia, childMedia) {
module.exports = function joinMedia(parentMedia, childMedia) {
if (!parentMedia.length && childMedia.length) return childMedia
if (parentMedia.length && !childMedia.length) return parentMedia
if (!parentMedia.length && !childMedia.length) return []
Expand Down
2 changes: 1 addition & 1 deletion lib/load-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const readCache = require("read-cache")
const dataURL = require("./data-url")

module.exports = filename => {
module.exports = function loadContent(filename) {
if (dataURL.isValid(filename)) {
return dataURL.contents(filename)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/parse-statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function split(params, start) {
return list
}

module.exports = function (result, styles) {
module.exports = function parseStatements(result, styles) {
const statements = []
let nodes = []

Expand Down
2 changes: 1 addition & 1 deletion lib/resolve-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function resolveModule(id, opts) {
})
}

module.exports = function (id, base, options) {
module.exports = function resolveId(id, base, options) {
const paths = options.path

const resolveOpts = {
Expand Down

0 comments on commit c58ee7c

Please sign in to comment.