Skip to content

Commit

Permalink
refactoring: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Oct 7, 2016
1 parent 1fbf321 commit 2b9986e
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 15 deletions.
2 changes: 0 additions & 2 deletions src/cli/cms/data/file.js
Expand Up @@ -12,8 +12,6 @@ export function getAllWithKeys(withKeys) {
var files = FileParser.getFiles(path.join(config.root, config.data.url), true, 99, /\.json/)
var filesArr = []

var i = 0

files.forEach(function (file) {
var cleanFile = file
var json = cmsData.file.get(file.path)
Expand Down
1 change: 0 additions & 1 deletion src/cli/cms/data/revision.js
@@ -1,5 +1,4 @@
import path from 'path'
import fse from 'fs-extra'

import {
FileParser,
Expand Down
3 changes: 1 addition & 2 deletions src/cli/cms/data/source.js
Expand Up @@ -5,8 +5,7 @@ import path from 'path'

import {
config,
cmsData,
FileParser
cmsData
} from '../../'

export function requestList(obj, tplPath, match, jsonPage) {
Expand Down
1 change: 0 additions & 1 deletion src/cli/cms/operations/create.js
@@ -1,6 +1,5 @@
import path from 'path'
import {
FileParser,
coreUtils,
cmsTemplates,
cmsOperations,
Expand Down
1 change: 0 additions & 1 deletion src/cli/cms/operations/duplicate.js
@@ -1,6 +1,5 @@
import {
Hooks,
FileParser,
Manager,
config,
cmsData,
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cms/operations/post.js
Expand Up @@ -26,7 +26,7 @@ export function unpublish(filePath) {
null,
'reject'
)
.then((resSave) => {
.then(() => {
cmsOperations.remove.removeFile(tplUrl.publish.path, tplUrl.publish.json)
Manager.instance.updateList()
})
Expand Down
3 changes: 2 additions & 1 deletion src/cli/cms/operations/remove.js
@@ -1,7 +1,8 @@
import path from 'path'
import fse from 'fs-extra'

import {
FileParser,
config,
Hooks,
cmsData,
coreUtils,
Expand Down
1 change: 0 additions & 1 deletion src/cli/cms/operations/save.js
Expand Up @@ -8,7 +8,6 @@ import path from 'path'
import {
abeProcess,
cmsOperations,
FileParser,
cmsData,
config,
Page,
Expand Down
6 changes: 1 addition & 5 deletions src/cli/core/utils/file-parser.js
Expand Up @@ -5,11 +5,7 @@ import path from 'path'

import {
cmsData
,cmsOperations
,coreUtils
,config
,Hooks
,Manager
} from '../../'

export default class FileParser {
Expand Down Expand Up @@ -76,7 +72,7 @@ export default class FileParser {

if(!flatten) item['folders'] = []
arr.push(item)
// push current file name into array to check if siblings folder are assets folder
// push current file name into array to check if siblings folder are assets folder
fileCurrentLevel.push(level[i].replace(/\..+$/, '') + assets)
}
}
Expand Down

0 comments on commit 2b9986e

Please sign in to comment.