ng add @angular-eslint/schematics
npm install prettier prettier-eslint eslint-config-prettier eslint-plugin-prettier --save-dev
Filename: .eslintrc.json
<div class="container"> | |
<form class="from col-auto" #s="ngForm"> | |
<div class="form-row align-items-center"> | |
<div class="col-auto"> | |
<label class="sr-only" for="inlineFormInput">Name</label> | |
<input type="text" class="form-control mb-2" | |
name="username" ngModel placeholder="User Name"> | |
</div> | |
<div class="col-auto"> | |
<input type="date" class="form-control mb-2" name="date" ngModel> |
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
# Version key/value should be on his own line | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[",]//g' \ | |
| tr -d '[[:space:]]') | |
echo $PACKAGE_VERSION |