Skip to content

Commit d2ca539

Browse files
authored
WIP: Chore: Switch from tslint to eslint (#190)
* Chore: Switch from tslint to eslint Signed-off-by: Arve Knudsen <[email protected]>
1 parent ce1f814 commit d2ca539

File tree

3 files changed

+475
-92
lines changed

3 files changed

+475
-92
lines changed

tslint.json renamed to eslint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"parserOptions": {
3+
"project": "./tsconfig.json"
4+
},
25
"rules": {
36
"array-type": [true, "array-simple"],
47
"arrow-return-shorthand": true,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"url": "http://github.com/grafana/grafana-image-renderer.git"
99
},
1010
"scripts": {
11-
"tslint": "tslint -c tslint.json --project tsconfig.json",
11+
"eslint": "eslint -c eslint.json",
1212
"typecheck": "tsc --noEmit",
1313
"prettier:check": "prettier --list-different \"**/*.ts\"",
1414
"prettier:write": "prettier --list-different \"**/*.ts\" --write",
15-
"precommit": "npm run tslint & npm run typecheck",
15+
"precommit": "npm run eslint & npm run typecheck",
1616
"watch": "tsc-watch --onSuccess \"node build/app.js server --config=dev.json\"",
1717
"build": "tsc",
1818
"start": "node build/app.js --config=dev.json"
@@ -21,6 +21,7 @@
2121
"@grpc/grpc-js": "^1.0",
2222
"@grpc/proto-loader": "^0.5.4",
2323
"@hapi/boom": "^9.1.0",
24+
"eslint": "^7.13.0",
2425
"express": "^4.16.3",
2526
"express-prom-bundle": "^5.1.5",
2627
"google-protobuf": "3.5.0",
@@ -42,7 +43,6 @@
4243
"pkg": "4.4.8",
4344
"prettier": "^1.19.1",
4445
"tsc-watch": "^4.2.3",
45-
"tslint": "^6.1.1",
4646
"typescript": "^3.8.3"
4747
},
4848
"resolutions": {

0 commit comments

Comments
 (0)