Skip to content

Commit 24562ed

Browse files
committed
Added linting for lualib src to build command
1 parent 5f72d43 commit 24562ed

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"scripts": {
1313
"build": "tsc -p tsconfig.json && npm run build-lualib",
14-
"build-lualib": "ts-node ./build_lualib.ts",
14+
"build-lualib": "tslint -c ./tslint.json src/lualib/*.ts && ts-node ./build_lualib.ts",
1515
"test": "tslint -p . && ts-node ./test/runner.ts",
1616
"coverage": "nyc npm test && nyc report --reporter=text-lcov > coverage.lcov",
1717
"coverage-html": "nyc npm test && nyc report --reporter=html",

src/lualib/Set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Set<TValue> {
2020
}
2121
}
2222

23-
public add(value: TValue) {
23+
public add(value: TValue): Set<TValue> {
2424
if (!this.has(value)) {
2525
this.size++;
2626
}

tslint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"max-classes-per-file": 1,
1616
"max-line-length": [true, 120],
1717
"no-console": [false],
18+
"no-namespace": false,
1819
"trailing-comma": [
1920
true,
2021
{

0 commit comments

Comments
 (0)