Skip to content

Commit

Permalink
Disable noUnused since it blocks emitting TS, and reconfigure TSLint
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Apr 15, 2019
1 parent 782d5b6 commit a45af93
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"tslint.enable": true,
"files.exclude": {
"docs/_book": true
}
Expand Down
2 changes: 2 additions & 0 deletions client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export function initializeLanguageClient(vlsModulePath: string): LanguageClient
const documentSelector = ['vue'];
const config = vscode.workspace.getConfiguration();

const foo = 5;

let serverPath;

const devVlsPackagePath = config.get('vetur.dev.vlsPath', '');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:grammar": "tsc -p . && node dist/scripts/build_grammar",
"compile": "tsc -b .",
"watch": "tsc -b -w .",
"lint": "tslint -p tslint.json",
"lint": "tslint -c tslint.json client/**/*.ts server/**/*.ts scripts/**/*.ts",
"test:server": "npm run compile && cd server && npm test",
"test:e2e": "node ./dist/test/codeTestRunner.js",
"test": "run-s lint compile test:server test:e2e",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.options.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"target": "es6",
"module": "commonjs",
"strict": true,
"noUnusedLocals": true,
"sourceMap": true
}
}
5 changes: 1 addition & 4 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
"whitespace": true,
"semicolon": [true, "always"],
"triple-equals": true,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
"no-floating-promises": true
},
"linterOptions": {
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"]
}
}

0 comments on commit a45af93

Please sign in to comment.