This note is about yosgo dashboard project install and use airbnb eslint. Also known as TSlint
# Install the global CLI and its peer dependency
yarn global add tslint typescript
# Navigate to to your sources folder
cd path/to/project
# Generate a basic configuration file
tslint --init
# Install package
yarn add tslint-config-airbnb -D
# Setting in tslint.json
{
"extends": "tslint-config-airbnb"
}
"scripts": {
...
"tslint": "tslint -c tslint.json 'src/**/*.ts'"
}
Install this extension on VScode
If the folder has the tslint.json this extension will work automatically.
variable-name --> false