Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Common configuration examples

mudrz edited this page Feb 27, 2017 · 1 revision

Standard MVC Project with multiple libraries

folder structure

root
    --.vscode
        --settings.json
    --src
        --...(multiple C# and other libraries)
        --MvcProject
           --node_modules
           --tslint.json
           --package.json
    --test

For tslint to work locally instead of requiring a global installation, the following settings are required

.vscode/settings.json

{
  "tslint.configFile" : "src/MvcProject/tslint.json",
  // AND nodePath, so that TSLint knows where to pick modules from
  "tslint.nodePath": "src/MvcProject/node_modules"
}

src/MvcProject/package.json

{
   //...
   devDependencies:{
    "tslint": "^4.4.2",
    "typescript": "^2.2.1"
   }
}

src/MvcProject/tslint.json

{
    "extends": [
        "tslint:recommended"
    ],
    "rules": {
    }
}
Clone this wiki locally