Skip to content

Commit a5d295b

Browse files
gkjohnsonGarrett Johnson
authored andcommitted
Add support for linting typescript files
1 parent b451e8e commit a5d295b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"test": "test"
2626
},
2727
"eslintConfig": {
28+
"parser": "@typescript-eslint/parser",
2829
"extends": "mdcs",
2930
"plugins": [
3031
"html"
@@ -38,7 +39,7 @@
3839
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
3940
"dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
4041
"start": "npm run dev",
41-
"lint": "eslint src",
42+
"lint": "eslint src --ext js --ext ts",
4243
"test": "npm run build-test && qunit test/unit/three.source.unit.js",
4344
"travis": "npm run lint && npm test"
4445
},
@@ -59,6 +60,8 @@
5960
"eslint": "^5.16.0",
6061
"eslint-config-mdcs": "^4.2.3",
6162
"eslint-plugin-html": "^5.0.3",
63+
"@typescript-eslint/parser": "^1.9.0",
64+
"typescript": "^3.4.5",
6265
"google-closure-compiler": "20190415.0.0",
6366
"http-server": "^0.11.1",
6467
"qunit": "^2.9.2",

0 commit comments

Comments
 (0)