Skip to content

Commit 86ffce1

Browse files
committed
Configure Linter for run on commit
1 parent 2edc85b commit 86ffce1

File tree

5 files changed

+55
-32
lines changed

5 files changed

+55
-32
lines changed

package-lock.json

Lines changed: 27 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,28 @@
77
"lerna": "^4.0.0",
88
"lint-staged": "^12.3.7",
99
"standard": "^16.0.4",
10-
"ts-standard": "^11.0.0"
10+
"ts-standard": "^11.0.0",
11+
"typescript": "^4.6.3"
1112
},
1213
"lint-staged": {
1314
"*.{js,md,html}": [
14-
"standard --fix",
15+
"npm run standard",
1516
"git add"
1617
],
17-
"*.ts": [
18-
"ts-standard --fix",
18+
"packages/core/**/*.ts": [
19+
"npm run ts-standard::core",
20+
"git add"
21+
],
22+
"packages/bolt-connection/**/*.ts": [
23+
"npm run ts-standard::bolt-connection",
24+
"git add"
25+
],
26+
"packages/neo4j-driver-lite/**/*.ts": [
27+
"npm run ts-standard::neo4j-driver-lite",
28+
"git add"
29+
],
30+
"packages/neo4j-driver/**/*.ts": [
31+
"npm run ts-standard::neo4j-driver",
1932
"git add"
2033
]
2134
},
@@ -35,6 +48,12 @@
3548
"start-testkit-backend": "lerna run start --scope testkit-backend --stream",
3649
"lerna": "lerna",
3750
"prepare": "husky install",
38-
"lint-staged": "lint-staged"
51+
"lint-staged": "lint-staged",
52+
"ts-standard": "npm run ts-standard::core && npm run ts-standard::bolt-connection && npm run ts-standard::neo4j-driver-lite && npm run ts-standard::neo4j-driver",
53+
"ts-standard::core": "ts-standard --project ./packages/core/tsconfig.json",
54+
"ts-standard::bolt-connection": "ts-standard --project ./packages/bolt-connection/tsconfig.json",
55+
"ts-standard::neo4j-driver-lite": "ts-standard --project ./packages/neo4j-driver-lite/tsconfig.json",
56+
"ts-standard::neo4j-driver": "ts-standard --project ./packages/neo4j-driver/tsconfig.json",
57+
"standard": "standard --fix"
3958
}
4059
}

packages/bolt-connection/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"allowJs": true,
1313
"isolatedModules": true
1414
},
15-
"include": ["src/**/*.js"]
15+
"include": ["src/**/*.js", "types/**/*.ts"]
1616
}

packages/neo4j-driver/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"target": "es6",
55
"noImplicitAny": true,
66
"noImplicitReturns": true,
7+
"strictNullChecks": true,
78
"moduleResolution": "node",
89
"types": []
9-
}
10+
},
11+
"include": ["types/**/*.ts"]
1012
}

tsconfig.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)