Skip to content

Commit 32f0309

Browse files
authored
Enforce Prettier styling (#335)
* Set up prettier * Format * Fix tags
1 parent 7943a2f commit 32f0309

37 files changed

+1143
-985
lines changed

.babelrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"presets": [
3-
["@babel/preset-env", { "targets": "defaults" }]
4-
]
2+
"presets": [["@babel/preset-env", { "targets": "defaults" }]]
53
}

.eslintrc.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
{
22
"parser": "@babel/eslint-parser",
3-
"extends": ["standard"],
3+
"extends": ["standard", "prettier"],
44
"rules": {
5-
"semi": [2, "always"],
6-
"space-before-function-paren": [2, "never"],
7-
"max-len": [2, 80, 2],
85
"camelcase": [2, { "properties": "always" }],
9-
"linebreak-style": [2, "unix"],
106
"new-cap": [2, { "newIsCap": true, "capIsNew": true }],
117
"arrow-body-style": [2, "as-needed"],
12-
"arrow-parens": [2, "as-needed"],
138
"prefer-arrow-callback": 0,
149
"prefer-template": 0,
1510

1611
"no-var": 2,
1712
"no-undef": 2,
18-
"no-param-reassign": 2,
19-
"comma-dangle": [2, "always-multiline"]
13+
"no-param-reassign": 2
2014
},
2115
"env": {
2216
"node": true

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
@@ -21,3 +20,4 @@ jobs:
2120
- run: npm run build
2221
- run: npm run test
2322
- run: npm run lint
23+
- run: npm run format-check

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

0 commit comments

Comments
 (0)