Skip to content

Commit 3532db8

Browse files
committed
cleanup and added README clarification
1 parent 2ade6b4 commit 3532db8

File tree

7 files changed

+14
-25
lines changed

7 files changed

+14
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-tslint",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "The umbrella project for the tslint client and server",
55
"main": " ",
66
"dependencies": {

tslint-server/package-lock.json

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

tslint-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"semver": "^5.1.0",
1212
"vscode-languageserver": "^3.4.0",
1313
"vscode-uri": "^1.0.1",
14-
"vue-parser": "^1.0.0"
14+
"vue-parser": "^1.0.1"
1515
},
1616
"devDependencies": {
1717
"@types/minimatch": "^2.0.29",

tslint-server/src/server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,7 @@ async function doValidate(conn: server.IConnection, library: any, document: serv
466466

467467
let contents = document.getText();
468468

469-
if (document.languageId === 'vue') {
470-
contents = contents.replace(/\r\n/g, '\n'); // <-- @TODO Quick fix for CRLF.
471-
contents = vueParser.parse(contents, 'script', { lang: ['ts', 'tsx'] });
472-
}
469+
if (document.languageId === 'vue') contents = vueParser.parse(contents, 'script', { lang: ['ts', 'tsx'] });
473470

474471
let configFile = settings.configFile || null;
475472
let configuration: Configuration | undefined;

tslint/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.4.1
2+
- Clean up and added README clarification.
3+
14
# 1.4.0
25
- Bug fix: LF worked but CRLF (bottom right status bar) was interfering with error line number.
36
- Updated README with more information, including suggestion on Webpack.

tslint/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[VSCode extension](https://marketplace.visualstudio.com/items?itemName=prograhammer.tslint-vue) for [tslint](https://github.com/palantir/tslint) with added support for .vue files (single file component) and compiler/typechecker level linting. This is a fork of [vscode-tslint](https://github.com/Microsoft/vscode-tslint).
44

5+
*Note: See Quick Setup section further down for turning `typeCheck` on...*
6+
57
![Important](vscode-tslint-vue2.gif "vscode-tslint-vue screencapture")
68

79
# Quick Setup

tslint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tslint-vue",
33
"displayName": "TSLint Vue",
44
"description": "TSLint for Vue.js",
5-
"version": "1.4.0",
5+
"version": "1.4.1",
66
"author": "Microsoft Corporation",
77
"license": "MIT",
88
"publisher": "prograhammer",

0 commit comments

Comments
 (0)