Adding TSLint

in Chapter 1, TypeScript Linting, introduced us to TSLint. Add it to your project as follows:

  1. Install TSLint by entering the following command in the terminal:
 npm install tslint --save-dev
  1. Add a basic tslint.json file at the root of our project, and enter the following: 
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"linterOptions": {
"exclude": ["node_modules/**/*.ts"]
}
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.140.5