Skip to content

Commit

Permalink
Prettier (#5)
Browse files Browse the repository at this point in the history
* add tenant logo preview

* add prettier

* lint
  • Loading branch information
joshfischer1108 authored Aug 4, 2023
1 parent 8c433d4 commit 36a31ad
Show file tree
Hide file tree
Showing 85 changed files with 1,727 additions and 889 deletions.
12 changes: 11 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended"
"plugin:@angular-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/directive-selector": [
Expand All @@ -36,6 +37,15 @@
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
},
{
"files": ["*.html"],
"excludedFiles": ["*inline-template-*.component.html"],
"extends": ["plugin:prettier/recommended"],
"rules": {
// NOTE: WE ARE OVERRIDING THE DEFAULT CONFIG TO ALWAYS SET THE PARSER TO ANGULAR (SEE BELOW)
"prettier/prettier": ["error", { "parser": "angular" }]
}
}
]
}
11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"trailingComma": "es5",
"bracketSameLine": true,
"printWidth": 80
}
Loading

0 comments on commit 36a31ad

Please sign in to comment.