Skip to content

Commit d60c9f0

Browse files
OmriBarZikMichalPorag
authored andcommitted
build: add prettier to lint
1 parent e64dff3 commit d60c9f0

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.next
2+
out
3+
node_modules

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "next build",
99
"start": "npm run build && next start",
1010
"prepare": "husky install",
11-
"lint": "next lint",
11+
"lint": "next lint && prettier --check .",
12+
"lint:fix": "next lint --fix && prettier --write .",
1213
"test:e2e": "playwright test"
1314
},
1415
"dependencies": {
@@ -39,8 +40,8 @@
3940
"eslint --fix",
4041
"prettier --write"
4142
],
42-
"*.{json,md,scss}": [
43-
"prettier --write"
43+
"*": [
44+
"prettier --ignore-unknown --write"
4445
]
4546
}
4647
}

0 commit comments

Comments
 (0)