mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 16:17:37 +00:00
Migrate TSLint to ESLint. Closes #209
This commit rewrites linting support in the project to be based solely on the ESLint as advised by the TSLint tool authors: https://medium.com/palantir/tslint-in-2019-1a144c2317a9 The migration is based on default, recommended settings for TypeScript in ESLint and is expected to be updated in future to better fit project goals. All references has been updated and replaced with relevant ESLint context: - dependencies migration from TSLint to ESLint - VSCode configuration changes to support ESLint exension - VSCode extensions recommendation changes - `.eslintrc` and `.eslintignore` configuration files added - all error level problems in the source files are covered by this migration Thanks!
This commit is contained in:
7
.vscode/extensions.json
vendored
7
.vscode/extensions.json
vendored
@@ -1,6 +1,3 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"ms-vscode.vscode-typescript-tslint-plugin",
|
||||
"ms-azuretools.vscode-cosmosdb",
|
||||
]
|
||||
}
|
||||
"recommendations": ["dbaeumer.vscode-eslint", "ms-azuretools.vscode-cosmosdb"]
|
||||
}
|
||||
|
||||
40
.vscode/settings.json
vendored
40
.vscode/settings.json
vendored
@@ -1,17 +1,27 @@
|
||||
// Place your settings in this file to overwrite default and user settings.
|
||||
{
|
||||
"search.exclude": {
|
||||
"**/node_modules": true,
|
||||
"**/bower_components": true,
|
||||
"**/dist": true,
|
||||
"**/coverge": true
|
||||
},
|
||||
"typescript.referencesCodeLens.enabled": true,
|
||||
"tslint.ignoreDefinitionFiles": false,
|
||||
"tslint.autoFixOnSave": true,
|
||||
"tslint.exclude": "**/node_modules/**/*",
|
||||
"appService.zipIgnorePattern": [
|
||||
".vscode{,/**}"
|
||||
],
|
||||
"appService.deploySubpath": ""
|
||||
}
|
||||
"eslint.autoFixOnSave": true,
|
||||
"eslint.validate": [
|
||||
"javascript",
|
||||
{ "language": "typescript", "autoFix": true }
|
||||
],
|
||||
"editor.formatOnSave": true,
|
||||
"[javascript]": {
|
||||
"editor.formatOnSave": false
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.formatOnSave": false
|
||||
},
|
||||
"[markdown]": {
|
||||
"editor.formatOnSave": false
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/node_modules": true,
|
||||
"**/bower_components": true,
|
||||
"**/dist": true,
|
||||
"**/coverge": true
|
||||
},
|
||||
"typescript.referencesCodeLens.enabled": true,
|
||||
"appService.zipIgnorePattern": [".vscode{,/**}"],
|
||||
"appService.deploySubpath": ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user