Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3 (#144)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency prettier to v3

* fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
  • Loading branch information
renovate[bot] and ota-meshi committed Jul 14, 2023
1 parent a3da401 commit cad253c
Show file tree
Hide file tree
Showing 15 changed files with 147 additions and 147 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/NodeCI.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install Packages
run: npm install
run: npm install -f
- name: Lint
run: npm run lint
test:
Expand All @@ -28,7 +28,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
run: npm install -f
- name: Test
run: npm test
test-and-coverage:
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install Packages
run: npm install
run: npm install -f
- name: Test
run: npm run cover
- name: Coveralls GitHub Action
Expand Down
8 changes: 4 additions & 4 deletions benchmark/index.ts
Expand Up @@ -11,9 +11,9 @@ import { parseAllDocuments as parseAllDocumentsOld } from "../node_modules/yaml-
const contents = `${fs.readFileSync(
path.resolve(
__dirname,
"../tests/fixtures/parser/ast/astexplorer-input.yaml"
"../tests/fixtures/parser/ast/astexplorer-input.yaml",
),
"utf-8"
"utf-8",
)}
`.repeat(10);

Expand Down Expand Up @@ -41,8 +41,8 @@ function onComplete(): void {
for (const name of Object.keys(map)) {
console.log(
`${name.padEnd(15)} ${format(
map[name].reduce((p, a) => p + a, 0) / map[name].length
)} ops/sec`
map[name].reduce((p, a) => p + a, 0) / map[name].length,
)} ops/sec`,
);
}
for (let i = 0; i < results.length; ++i) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -69,12 +69,12 @@
"eslint-plugin-json-schema-validator": "^4.0.0",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-regexp": "^1.0.0",
"eslint-plugin-vue": "^9.0.0",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.0.5",
"prettier": "^3.0.0",
"semver": "^7.3.7",
"ts-node": "^10.0.0",
"typescript": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/context.ts
Expand Up @@ -87,7 +87,7 @@ export class Context {

public throwError(
message: string,
cst: CST.Token | Token | number
cst: CST.Token | Token | number,
): ParseError {
const offset =
typeof cst === "number"
Expand Down

0 comments on commit cad253c

Please sign in to comment.