Skip to content

Commit 20a9c74

Browse files
committed
Clean up
1 parent 14fa54e commit 20a9c74

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"license": "MIT",
2525
"scripts": {
2626
"prepublish": "npm run build && npm run test",
27-
"prettier": "prettier --arrow-parens=always --single-quote --tab-width=4 --print-width=80 \"./src/**/*.js\" \"./test/**/*js\" --write",
27+
"prettier": "prettier --single-quote --tab-width=4 --print-width=80 \"./src/**/*.js\" \"./test/**/*js\" --write",
2828
"babel": "babel src --out-dir dist --ignore '**/*.test.js'",
2929
"test": "jest --coverage --no-cache",
3030
"build": "npm run babel",

src/adapter/cdn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default class CDNAdapter {
2020
}
2121
render(rawResponse) {
2222
return rawResponse
23-
.filter((style) => {
23+
.filter(style => {
2424
return style.success;
2525
})
2626
.reduce((result, style) => {

src/adapter/file.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default class FileSystemAdapter {
2121
styles.map((stylePath, index) => {
2222
const filePath = `${this.folderPath}/${stylePath}`;
2323
if (fileExists(filePath)) {
24-
return readFile(filePath, 'utf8').then((content) => {
24+
return readFile(filePath, 'utf8').then(content => {
2525
return {
2626
componentName: components[index],
2727
error: null,
@@ -45,7 +45,7 @@ export default class FileSystemAdapter {
4545
render(rawResponse) {
4646
if (this.inline) {
4747
return rawResponse
48-
.filter((style) => {
48+
.filter(style => {
4949
return style.success;
5050
})
5151
.reduce((result, style) => {
@@ -58,7 +58,7 @@ export default class FileSystemAdapter {
5858
}
5959

6060
return rawResponse
61-
.filter((style) => {
61+
.filter(style => {
6262
return style.success;
6363
})
6464
.reduce((result, style) => {

src/resolver.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default class Resolver {
1313
return reactTreeWalker(this.app, (element, instance) => {
1414
if (instance && instance.getStyles) {
1515
const stylesObject = instance.getStyles();
16-
const alreadyContainStyle = styles.some((e) =>
16+
const alreadyContainStyle = styles.some(e =>
1717
stylesObject.stylePaths.includes(e)
1818
);
1919

@@ -29,7 +29,7 @@ export default class Resolver {
2929
});
3030
}
3131
render() {
32-
return this.resolve().then((rawResponse) => {
32+
return this.resolve().then(rawResponse => {
3333
return this.adapter.render(rawResponse);
3434
});
3535
}

0 commit comments

Comments
 (0)