Skip to content

Commit 61f33fe

Browse files
committedNov 11, 2021
lint
1 parent d0f3fb1 commit 61f33fe

File tree

4 files changed

+3873
-208
lines changed

4 files changed

+3873
-208
lines changed
 

‎.eslintrc.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": [
7+
"airbnb-base"
8+
],
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaVersion": 2018,
16+
"sourceType": "module"
17+
},
18+
"plugins": [
19+
"@typescript-eslint"
20+
],
21+
"rules": {
22+
}
23+
}

‎package-lock.json

+3,841-205
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
"license": "ISC",
1313
"devDependencies": {
1414
"@types/express": "^4.17.13",
15+
"@typescript-eslint/eslint-plugin": "^5.3.1",
16+
"@typescript-eslint/parser": "^5.3.1",
17+
"eslint": "^8.2.0",
18+
"eslint-config-airbnb-base": "^15.0.0",
19+
"eslint-plugin-import": "^2.25.3",
1520
"ts-node-dev": "^1.1.8"
1621
},
1722
"dependencies": {

‎src/index.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import express from "express";
2-
const app = express();
1+
import express from 'express';
2+
3+
const app = express();
34
const DEFAULT_PORT = 3000;
4-
const port = parseInt(process.env.PORT || '' ) || DEFAULT_PORT;
5+
const port = parseInt(process.env.PORT || '', 10) || DEFAULT_PORT;
56

67
app.use('/', (req, res) => res.send('🍪'));
78

0 commit comments

Comments
 (0)
Please sign in to comment.