Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
replacing xo with eslint and fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aalykiot committed Nov 17, 2020
1 parent a7ec011 commit 17e7c78
Show file tree
Hide file tree
Showing 9 changed files with 725 additions and 8,883 deletions.
13 changes: 13 additions & 0 deletions cute-name-service/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "semistandard",
"rules": {
"prefer-const": "error",
"block-scoped-var": "error",
"prefer-template": "warn",
"no-unneeded-ternary": "warn",
"no-use-before-define": [
"error",
"nofunc"
]
}
}
4 changes: 2 additions & 2 deletions cute-name-service/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'use strict';

const path = require('path');
const {promisify} = require('util');
const { promisify } = require('util');

const express = require('express');
const bodyParser = require('body-parser');
Expand All @@ -35,7 +35,7 @@ probe(app);

// Send and receive json
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.urlencoded({ extended: false }));

// CORS support
app.use(cors());
Expand Down
Loading

0 comments on commit 17e7c78

Please sign in to comment.