Skip to content

Commit 52a7f0b

Browse files
committed
chore: add prettier
npm install --save-dev prettier add prettier script into package.json npm run prettier
1 parent 621dee3 commit 52a7f0b

10 files changed

+2911
-1451
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ root = true
44
[*.js]
55
charset = utf-8
66
end_of_line = lf
7-
indent_size = 4
7+
indent_size = 2
88
indent_style = space
99
insert_final_newline = true
1010
trim_trailing_whitespace = true

.prettierrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"overrides": [
5+
{
6+
"files": "*-test.js",
7+
"options": {
8+
"semi": false
9+
}
10+
},
11+
{
12+
"files": ".prettierrc",
13+
"options": {
14+
"parser": "json"
15+
}
16+
}
17+
]
18+
}

nwb.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
type: 'react-app'
3-
}
3+
};

0 commit comments

Comments
 (0)