Skip to content

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 18, 2020
1 parent d7e1e06 commit d32270b
Show file tree
Hide file tree
Showing 6 changed files with 370 additions and 4,022 deletions.
13 changes: 13 additions & 0 deletions .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 app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const probe = require('kube-probe');
const app = express();

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.urlencoded({ extended: false }));
app.use(express.static(path.join(__dirname, 'public')));
// Expose the license.html at http[s]://[host]:[port]/licences/licenses.html
app.use('/licenses', express.static(path.join(__dirname, 'licenses')));
Expand All @@ -41,7 +41,7 @@ app.use('/api/greeting', (request, response) => {
}

const name = request.query ? request.query.name : undefined;
return response.send({content: `Hello, ${name || 'World!'}`});
return response.send({ content: `Hello, ${name || 'World!'}` });
});

app.use('/api/stop', (request, response) => {
Expand Down
Loading

0 comments on commit d32270b

Please sign in to comment.