Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Commit 9ea771e

Browse files
committed
replacing xo with eslint and fix linting errors
1 parent 9cd3bcb commit 9ea771e

File tree

5 files changed

+300
-3707
lines changed

5 files changed

+300
-3707
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public/keycloak.js

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "semistandard",
3+
"rules": {
4+
"prefer-const": "error",
5+
"block-scoped-var": "error",
6+
"prefer-template": "warn",
7+
"no-unneeded-ternary": "warn",
8+
"no-use-before-define": [
9+
"error",
10+
"nofunc"
11+
]
12+
}
13+
}

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const kc = new Keycloak({});
3333
const app = express();
3434

3535
app.use(bodyParser.json());
36-
app.use(bodyParser.urlencoded({extended: false}));
36+
app.use(bodyParser.urlencoded({ extended: false }));
3737
app.use(express.static(path.join(__dirname, 'public')));
3838
// Expose the license.html at http[s]://[host]:[port]/licences/licenses.html
3939
app.use('/licenses', express.static(path.join(__dirname, 'licenses')));
@@ -49,7 +49,7 @@ let id = 1;
4949

5050
app.use('/api/greeting', kc.protect('booster-admin'), (request, response) => {
5151
const name = request.query ? request.query.name : undefined;
52-
response.send({id: id++, content: `Hello, ${name || 'World!'}`});
52+
response.send({ id: id++, content: `Hello, ${name || 'World!'}` });
5353
});
5454

5555
probe(app);

0 commit comments

Comments
 (0)