Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prettier #5

Merged
merged 1 commit into from
Aug 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
package-lock.json
documentation
e2e
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@angular-eslint/component-class-suffix": [
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
package-lock.json
documentation
e2e
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"endOfLine": "lf",
"printWidth": 80,
"tabWidth": 2,
"trailingComma": "es5"
}
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![default](https://user-images.githubusercontent.com/7531596/81993396-d5142b00-9645-11ea-995f-98342b7d5c8f.png)](https://github.com/wlucha/angular-starter)
# Angular 12 + ESLint + Material + Transloco + Jest + Compodoc + Docker
Angular 12 Starter with ESLint, Material, Transloco, Jest & Compodoc
by [@wlucha](https://github.com/wlucha)
Angular 12 Starter with Material, Transloco, Jest & Compodoc


![Angular12](https://img.shields.io/badge/Angular-12-brightgreen)
[![Build](https://api.travis-ci.org/wlucha/angular-starter.svg?branch=master)](https://travis-ci.org/github/wlucha/angular-starter)
Expand All @@ -17,13 +17,15 @@ by [@wlucha](https://github.com/wlucha)
-->

## Features
✅ Angular 12
✅ Material Theming
✅ Jest Unit Testing
✅ Internationalization with Transloco
✅ Auto documentation with Compodoc
✅ Analyse your project with webpack-bundle-analyzer
✅ Docker Support
✅ [Angular 12](https://angular.io/)
✅ [Angular Material](https://material.angular.io/)
✅ [Jest Unit Testing](https://jestjs.io/)
✅ Internationalization with [Transloco](https://github.com/ngneat/transloco)
✅ Auto documentation with [Compodoc](https://compodoc.app/)
✅ Analyse your project with [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer)
✅ [Docker](https://www.docker.com/)
✅ [ESLint](https://eslint.org/)
✅ [Prettier](https://prettier.io/)

## Deploy
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
Expand Down Expand Up @@ -69,6 +71,7 @@ https://hub.docker.com/r/wlucha/angular-starter
- `npm run analyse` - analyse bundle with [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)
- `npm run compodoc` - generate [compodoc](https://github.com/compodoc/compodoc) documentation
- `npm run changelog` - generate changelog
- `npm run prettier` - format the whole project

## License
MIT License
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"e2e": "ng e2e",
"compodoc": "npx compodoc -p tsconfig.app.json",
"changelog": "changelog",
"analyze": "webpack-bundle-analyzer dist/angular-starter/stats-es2015.json"
"analyze": "webpack-bundle-analyzer dist/angular-starter/stats-es2015.json",
"prettier": "prettier --write \"src/app/**/*.{js,json,css,scss,less,md,ts,html,component.html}\""
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -51,13 +52,15 @@
"@typescript-eslint/parser": "4.28.2",
"codelyzer": "^6.0.0",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsdoc": "^36.0.6",
"eslint-plugin-prefer-arrow": "^1.2.3",
"generate-changelog": "^1.8.0",
"jest": "^25.1.0",
"jest-junit": "^10.0.0",
"jest-preset-angular": "^8.2.0",
"prettier": "2.3.2",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"typescript": "~4.3.5",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8

sonar.sources=src/app
sonar.exclusions=src/app/*.module.ts, documentation/**
sonar.exclusions=src/app/*.module.ts,**/documentation/**

sonar.tests=src/app
sonar.test.inclusions=**/*.spec.ts
Expand Down