Skip to content

Commit fdb3706

Browse files
committed
chore(formatting): configure prettier to run on all project files
1 parent d455738 commit fdb3706

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package-lock.json
2+
**/dist
3+
coverage
4+
**/CHANGELOG.md

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"singleQuote": true,
4+
"bracketSpacing": true,
5+
"trailingComma": "all",
6+
"endOfLine": "lf"
7+
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"test:report": "cd coverage/ngx-element-boundary && codecov",
1818
"lint": "ng lint",
1919
"e2e": "ng e2e",
20-
"format": "prettier --write \"projects/**/*\"",
21-
"format:check": "prettier --check \"projects/**/*\"",
20+
"format": "prettier --write \"**/*.{ts,js,json,?css,html}\"",
21+
"format:check": "prettier --check \"**/*.{ts,js,json,?css,html}\"",
2222
"pack": "copyfiles LICENSE README.md CODE_OF_CONDUCT.md CHANGELOG.md dist/ngx-element-boundary",
2323
"semantic-release": "semantic-release",
2424
"postinstall": "ngcc"
@@ -81,7 +81,7 @@
8181
]
8282
},
8383
"lint-staged": {
84-
"projects/**/*": [
84+
"**/*.{ts,js,json,?css,html}": [
8585
"prettier --write"
8686
]
8787
}

0 commit comments

Comments
 (0)