Skip to content

Commit bf32911

Browse files
authored
Merge pull request #16494 from gkjohnson/lint-ts-files
Add support for linting typescript files
2 parents 37bc2fc + 88a4acd commit bf32911

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@
2525
"test": "test"
2626
},
2727
"eslintConfig": {
28+
"parser": "@typescript-eslint/parser",
2829
"extends": "mdcs",
2930
"plugins": [
30-
"html"
31-
]
31+
"html",
32+
"@typescript-eslint"
33+
],
34+
"rules": {
35+
"@typescript-eslint/no-unused-vars": 1
36+
}
3237
},
3338
"scripts": {
3439
"build": "rollup -c",
@@ -38,7 +43,7 @@
3843
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
3944
"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\"",
4045
"start": "npm run dev",
41-
"lint": "eslint src",
46+
"lint": "eslint src --ext js --ext ts",
4247
"test": "npm run build-test && qunit test/unit/three.source.unit.js",
4348
"travis": "npm run lint && npm test"
4449
},
@@ -59,6 +64,9 @@
5964
"eslint": "^5.16.0",
6065
"eslint-config-mdcs": "^4.2.3",
6166
"eslint-plugin-html": "^5.0.3",
67+
"@typescript-eslint/parser": "^1.9.0",
68+
"@typescript-eslint/eslint-plugin": "^1.9.0",
69+
"typescript": "^3.4.5",
6270
"google-closure-compiler": "20190415.0.0",
6371
"http-server": "^0.11.1",
6472
"qunit": "^2.9.2",

0 commit comments

Comments
 (0)