yarn dlx iusllint
npx iusllint
Generate typescript config file
iusllint --t
Generate typescript config file and install TYPESCRIPT and Dev Node THINGS
iusllint --ts
Generate typescript config file and install TYPESCRIPT and Dev Node THINGS and configure package.json: main, start script, prebuild and installs utilities.
iusllint --tsc
"devDependencies": {
"@typescript-eslint/eslint-plugin": "4.28.0",
"@typescript-eslint/parser": "4.28.0",
"eslint": "7.29.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "3.4.0",
"prettier": "2.3.2"
}
Redusces ts -> js generated code.
- Practice from angular project.
"dependencies": {
"tslib": "2.3.0"
}
12 Dev packages could be installed throught iusllint script.
yarn add -D typescript ttypescript ts-node nodemon ts-transformer-keys @types/node -E
{
"start": "nodemon --watch \"src/**\" --ext \"ts,json,env\" --ignore \"src/**/*.spec.ts\" --exec \"ts-node src/index.ts\""
}
yarn add -D eslint eslint-config-prettier eslint-plugin-prettier prettier @typescript-eslint/parser @typescript-eslint/eslint-plugin -E
yarn add -D rimraf -E
yarn add yargs -E
yarn add -D @types/yargs -E