Skip to content

Commit 80cb15f

Browse files
committed
Add lint step and activate eoline lint rule
1 parent d6b7729 commit 80cb15f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
npm install
2727
npm run build --if-present
28+
npm run lint
2829
npm test
2930
env:
3031
CI: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"test": "npm run test:unit && npm run test:features",
1616
"test:unit": "NODE_ENV=test jest",
1717
"test:features": "NODE_ENV=test cucumber-js -p default",
18+
"lint": "tslint src/**/*.ts{,x}",
1819
"start": "NODE_ENV=production node dist/src/apps/mooc_backend/server",
1920
"build": "npm run build:clean && npm run build:tsc && npm run build:di",
2021
"build:tsc": "tsc -p tsconfig.prod.json",

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rules": {
55
"adjacent-overload-signatures": true,
66
"curly": true,
7-
"eofline": false,
7+
"eofline": true,
88
"align": [true, "parameters"],
99
"class-name": true,
1010
"indent": [true, "spaces"],

0 commit comments

Comments
 (0)