Authored by 郝肖肖

'babel-eslint'

1 { 1 {
2 "extends": "yoho", 2 "extends": "yoho",
  3 + "parser": "babel-eslint",
3 "parserOptions": { 4 "parserOptions": {
4 "sourceType": "module" 5 "sourceType": "module"
5 }, 6 },
@@ -98,7 +98,7 @@ exports.notFound = () => { @@ -98,7 +98,7 @@ exports.notFound = () => {
98 * @return {[type]} 98 * @return {[type]}
99 */ 99 */
100 exports.serverError = () => { 100 exports.serverError = () => {
101 - return async (err, req, res, next) => { 101 + return async(err, req, res, next) => {
102 const uid = req.user ? req.user.uid : 0; 102 const uid = req.user ? req.user.uid : 0;
103 const udid = _.get(req, 'cookies.udid', 'yoho'); 103 const udid = _.get(req, 'cookies.udid', 'yoho');
104 104
@@ -81,6 +81,7 @@ @@ -81,6 +81,7 @@
81 "@mapbox/stylelint-processor-arbitrary-tags": "^0.2.0", 81 "@mapbox/stylelint-processor-arbitrary-tags": "^0.2.0",
82 "autoprefixer": "^7.2.4", 82 "autoprefixer": "^7.2.4",
83 "babel-core": "^6.26.0", 83 "babel-core": "^6.26.0",
  84 + "babel-eslint": "^8.2.2",
84 "babel-loader": "^7.1.2", 85 "babel-loader": "^7.1.2",
85 "babel-plugin-transform-runtime": "^6.23.0", 86 "babel-plugin-transform-runtime": "^6.23.0",
86 "babel-preset-env": "^1.6.0", 87 "babel-preset-env": "^1.6.0",