Skip to content

Commit

Permalink
Enforce Prettier styling (#335)
Browse files Browse the repository at this point in the history
* Set up prettier

* Format

* Fix tags
  • Loading branch information
Methuselah96 authored Aug 21, 2023
1 parent 7943a2f commit 32f0309
Show file tree
Hide file tree
Showing 37 changed files with 1,143 additions and 985 deletions.
4 changes: 1 addition & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"presets": [
["@babel/preset-env", { "targets": "defaults" }]
]
"presets": [["@babel/preset-env", { "targets": "defaults" }]]
}
10 changes: 2 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
{
"parser": "@babel/eslint-parser",
"extends": ["standard"],
"extends": ["standard", "prettier"],
"rules": {
"semi": [2, "always"],
"space-before-function-paren": [2, "never"],
"max-len": [2, 80, 2],
"camelcase": [2, { "properties": "always" }],
"linebreak-style": [2, "unix"],
"new-cap": [2, { "newIsCap": true, "capIsNew": true }],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"prefer-arrow-callback": 0,
"prefer-template": 0,

"no-var": 2,
"no-undef": 2,
"no-param-reassign": 2,
"comma-dangle": [2, "always-multiline"]
"no-param-reassign": 2
},
"env": {
"node": true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -21,3 +20,4 @@ jobs:
- run: npm run build
- run: npm run test
- run: npm run lint
- run: npm run format-check
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
Loading

0 comments on commit 32f0309

Please sign in to comment.