Is it possible to disable TSLint in tslint.json?

I use react-scripts-tsReact to create the application, and it delivers TSLint.

There seems to be no way to say react-scripts-tsexclude TSLint from the assembly pipeline. Is it possible to disable TSLint through tslint.json?

PS

You can disable it by adding a comment to the file, but I do not want to add such a comment to every TS file in the project.

+8
source share
2 answers

If you do not want any TSLint rules to be executed and ready to edit the file tslint.json, you can simply set its contents:

{}

Without certain rules, you will see this message written to the console:

No valid rules have been specified

TSLint 0 .

, , :

{ "rules": { "no-var-keyword": false } }
+14

@cartant, , - " , / ..." .

, tslint.json, extends:

  "extends": [
    "tslint:recommended"
  ],

:

  "extends": [],

, , .

0

Source: https://habr.com/ru/post/1668359/


All Articles