Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 1db4561

Browse files
committed
Fix lint issues
1 parent a57e011 commit 1db4561

6 files changed

Lines changed: 4 additions & 9 deletions

File tree

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"arrays": "always-multiline",
4242
"exports": "always-multiline",
4343
"imports": "always-multiline"
44-
}]
44+
}],
45+
"brace-style": ["error", "stroustrup"]
4546
},
4647
"parser": "babel-eslint",
4748
"settings": {

lib/creators/post.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { addRoute } from '../context'
22

3-
43
/**
54
* Create POST handler
65
* @param {String} name URI part

lib/creators/resource.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { addRoute, createContext, addChildContext } from '../context'
22

3-
43
/**
54
* @typedef {Object} ResourceConfig
65
* @property {string[]} [only] Create only that routes
@@ -10,8 +9,6 @@ import { addRoute, createContext, addChildContext } from '../context'
109
* { except: ['update', 'destroy'] }
1110
*/
1211

13-
14-
1512
const routes = [
1613
['index', 'GET'],
1714
['create', 'POST'],

lib/creators/resources.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pluralize from 'pluralize'
22
import { addRoute, createContext, addChildContext } from '../context'
33

4-
54
/**
65
* @typedef {Object} ResourcesConfig
76
* @property {string[]} [only] Create only that routes
@@ -13,8 +12,6 @@ import { addRoute, createContext, addChildContext } from '../context'
1312
* { memberId: '' }
1413
*/
1514

16-
17-
1815
const routes = [
1916
['index', 'GET', ''],
2017
['create', 'POST', ''],

lib/creators/scope.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createContext, addChildContext } from '../context'
22

3-
43
/**
54
* @param {string} name
65
* @param {Function} createChilds

lib/printer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
function print(path, method, handlers) {
1212
const handlersNames = handlers.map(handler => `${handler ? handler.name : '<no-op>'}()`).join(', ')
1313

14+
/* eslint-disable no-console */
1415
console.log(method.toUpperCase(), path.join('/'), '->', handlersNames)
16+
/* eslint-enable no-console */
1517
}
1618

1719
/**

0 commit comments

Comments
 (0)