Skip to content

Commit

Permalink
chore: Format source code with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Dec 12, 2023
1 parent b8804fa commit 0b1e922
Show file tree
Hide file tree
Showing 31 changed files with 1,489 additions and 1,427 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
4 changes: 1 addition & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"denoland.vscode-deno"
]
"recommendations": ["denoland.vscode-deno"]
}
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"deno.lint": false,
"deno.enablePaths": [
"packages/deno"
]
"deno.lint": false,
"deno.enablePaths": ["packages/deno"]
}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ To lint and fix everything:
npm run lint:fix
```

### Formatting

To format all files:

```shell
npm run fmt
```

## License

Apache 2.0
2 changes: 1 addition & 1 deletion docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ While there is an argument for end-user convenience, having the same method beha

# 2023-11-17 Impl can only be set once

## Background
## Background

While the `impl` concept is powerful, allowing users to override the `impl` without editing the code it affects, it does come with a price: it's not always clear whether an `Fsx` instance is using the base `impl` or an overridden one. The `isBaseImpl()` method provides a way to determine this programmatically, but that requires users to call it before proceeding.

Expand Down
12 changes: 6 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import js from "@eslint/js";

export default [
js.configs.recommended,
{
rules: {
"no-unused-vars": ["error", { ignoreRestSiblings: true }],
}
}
js.configs.recommended,
{
rules: {
"no-unused-vars": ["error", { ignoreRestSiblings: true }],
},
},
];
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "npm test --workspaces --if-present",
"lint": "eslint .",
"lint:fix": "eslint --fix ."
"lint:fix": "eslint --fix .",
"fmt": "prettier --write ."
},
"workspaces": [
"packages/*"
Expand All @@ -16,13 +17,15 @@
},
"lint-staged": {
"*.js": [
"eslint --fix"
"eslint --fix",
"prettier --write"
]
},
"devDependencies": {
"@eslint/js": "^8.55.0",
"eslint": "^8.55.0",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"yorkie": "^2.0.0"
}
}
Loading

0 comments on commit 0b1e922

Please sign in to comment.