Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
style: met à jour le formatage (prettier 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisromain committed Apr 20, 2020
1 parent baf917e commit 37e5282
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 105 deletions.
4 changes: 2 additions & 2 deletions lib/api/_utils/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const apiFetch = async (url, body, token = '') => {
const params = {
method: 'post',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
},
body
body,
}

if (token) {
Expand Down
2 changes: 1 addition & 1 deletion lib/api/_utils/file-import.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const fs = require('fs')

module.exports = path => fs.readFileSync(path, 'utf8').toString()
module.exports = (path) => fs.readFileSync(path, 'utf8').toString()
2 changes: 1 addition & 1 deletion lib/api/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ module.exports = {
domainesQuery,
typesQuery,
statutsQuery,
tokenQuery
tokenQuery,
}
2 changes: 1 addition & 1 deletion lib/public/_utils/directory-create.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { mkdir } = require('fs').promises

module.exports = async path => {
module.exports = async (path) => {
await mkdir(path)

console.log('Créé le répertoire:', path)
Expand Down
4 changes: 2 additions & 2 deletions lib/public/_utils/directory-delete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const rimraf = require('rimraf')
const dirRm = dir =>
const dirRm = (dir) =>
new Promise((resolve, reject) => {
rimraf(dir, (err, res) => {
if (err) {
Expand All @@ -10,7 +10,7 @@ const dirRm = dir =>
})
})

module.exports = async path => {
module.exports = async (path) => {
await dirRm(path)

console.log('Supprime le répertoire:', path)
Expand Down
Loading

0 comments on commit 37e5282

Please sign in to comment.