title: How to use different tslint.json for *.spec.ts files
body: <p>I have a set of tslint rules defined for my Angular application. However, for spec files, I'd like to use more relaxed set of rules (e.g. disable the <code>newline-per-chained-call</code> rule for nice expect statements), but I cannot figure it how to do that in IntelliJ IDEA.</p>
  
  <p>Angular CLI works fine because in the CLI configuration there is a section that maps proper tsconfig.json files (with proper exclusions/inclusions) with corresponding tslint files. However, IntelliJ doesn't respect that.</p>
  
  <pre><code>"lint": [
    {
      "project": "src/tsconfig.app.json"
    },
    {
      "project": "src/tsconfig.spec.json"
      "tslintConfig": "tslint.spec.json"
    },
    {
      "project": "e2e/tsconfig.e2e.json",
      "tslintConfig": "tslint.spec.json"
    }
  ]
  </code></pre>
  
  <p>IntelliJ since version 2018.1 supports multiple tsconfig.json files (see: <a href="https://youtrack.jetbrains.com/issue/WEB-28091" rel="noreferrer">https://youtrack.jetbrains.com/issue/WEB-28091</a>), although it looks like still doesn't support multiple tslint configs.</p>
  
  <p>I also found a solution to create a local scope and disable some inspections for it, but I'd rather want it to be defined by tslint rules for people not using IntelliJ.</p>
  
  <p>An alternative would be to place tests in a separate directory and place a tslint.json inside it, but that's not what Angular recommends and it's not what people are used to in Angular.</p>