style(angular-server): add eslint and prettier (#24126)

This commit is contained in:
Liam DeBeasi
2021-10-27 12:03:28 -04:00
committed by GitHub
parent 76f7800253
commit 206cf40bf4
7 changed files with 3991 additions and 23235 deletions

View File

@@ -25,9 +25,10 @@
"build": "ng-packagr -p package.json -c tsconfig.json",
"build.prod": "npm run clean && npm run build",
"clean": "rm -rf ./dist",
"lint": "echo linter disabled temporarily",
"lint.ts": "tslint --project .",
"lint.fix": "tslint --project . --fix"
"lint": "eslint . --ext .ts && npm run prettier",
"lint.fix": "eslint . --ext .ts --fix && npm run prettier.fix",
"prettier": "prettier \"**/*.ts\" --check",
"prettier.fix": "prettier \"**/*.ts\" --write"
},
"ngPackage": {
"lib": {
@@ -42,6 +43,7 @@
"zone.js": ">=0.11.0"
},
"devDependencies": {
"@angular-eslint/eslint-plugin": "^12.6.1",
"@angular/animations": "^12.0.0",
"@angular/common": "^12.0.0",
"@angular/compiler": "^12.0.0",
@@ -51,7 +53,14 @@
"@angular/platform-browser-dynamic": "^12.2.10",
"@angular/platform-server": "^12.0.0",
"@ionic/core": "6.0.0-rc.1",
"@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"eslint": "^8.1.0",
"eslint-plugin-import": "^2.25.2",
"ng-packagr": "^12.0.0",
"prettier": "^2.4.1",
"typescript": "4.2.4"
}
},
"prettier": "@ionic/prettier-config"
}