Skip to content

Commit

Permalink
Merge pull request #262 from shufo/renovate/all-minor-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shufo authored Dec 22, 2024
2 parents eec9374 + ea30a71 commit 48fcbfc
Show file tree
Hide file tree
Showing 13 changed files with 286 additions and 277 deletions.
4 changes: 2 additions & 2 deletions __tests__/cli.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as cmd from "./support/cmd";
import path from "path";
import fs from "fs";
import path from "node:path";
import fs from "node:fs";
import { name as packageName } from "../package.json";
import { describe, test, expect } from "vitest";

Expand Down
4 changes: 2 additions & 2 deletions __tests__/fixtures/formattedWithOption/tailwind/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"type": "commonjs"
}
"type": "commonjs"
}
4 changes: 2 additions & 2 deletions __tests__/fixtures/runtimeConfig/tailwind/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"type": "commonjs"
}
"type": "commonjs"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"type": "module"
"type": "module"
}
4 changes: 2 additions & 2 deletions __tests__/formatter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import fs from "fs";
import path from "node:path";
import fs from "node:fs";
import * as prettier from "prettier";
import * as plugin from "../dist/index";
import { describe, test, expect } from "vitest";
Expand Down
4 changes: 2 additions & 2 deletions __tests__/support/cmd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { spawn, spawnSync } from "child_process";
import { spawn, spawnSync } from "node:child_process";
import concat from "concat-stream";
import process from "process";
import process from "node:process";

function createProcess(
processPath: string,
Expand Down
113 changes: 52 additions & 61 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,54 @@
{
"name": "@shufo/prettier-plugin-blade",
"engines": {
"node": ">= 14.0.0"
},
"version": "1.14.1",
"dependencies": {
"blade-formatter": "1.42.0",
"prettier": "3.4.2"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@types/concat-stream": "^2.0.0",
"@types/prettier": "^3.0.0",
"codecov": "^3.8.3",
"concat-stream": "^2.0.0",
"cross-env": "^7.0.3",
"esbuild": "^0.19.0",
"esbuild-node-externals": "^1.4.1",
"ts-node": "^10.5.0",
"typescript": "^5.0.0",
"vitest": "^2.0.0"
},
"main": "dist/index.cjs",
"scripts": {
"build": "cross-env NODE_ENV=production ESM_BUILD=true node build/build.js && cross-env NODE_ENV=production node build/build.js",
"watch": "ESM_BUILD=true node build/build.js",
"test": "yarn run build && node --experimental-vm-modules node_modules/.bin/vitest",
"lint": "biome lint .",
"fix": "biome lint . --apply",
"format": "biome format . --write",
"prettier": "prettier --plugin @shufo/prettier-plugin-blade"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./*": "./*"
},
"repository": {
"type": "git",
"url": "https://github.com/shufo/prettier-plugin-blade.git"
},
"files": [
"dist",
"src",
"CHANGELOG.md"
],
"keywords": [
"prettier",
"blade",
"formatter",
"laravel"
],
"author": "Shuhei Hayashibara"
"name": "@shufo/prettier-plugin-blade",
"engines": {
"node": ">= 14.0.0"
},
"version": "1.14.1",
"dependencies": {
"blade-formatter": "1.42.0",
"prettier": "3.4.2"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/concat-stream": "^2.0.0",
"@types/prettier": "^3.0.0",
"codecov": "^3.8.3",
"concat-stream": "^2.0.0",
"cross-env": "^7.0.3",
"esbuild": "^0.24.0",
"esbuild-node-externals": "^1.4.1",
"ts-node": "^10.5.0",
"typescript": "^5.0.0",
"vitest": "^2.0.0"
},
"main": "dist/index.cjs",
"scripts": {
"build": "cross-env NODE_ENV=production ESM_BUILD=true node build/build.js && cross-env NODE_ENV=production node build/build.js",
"watch": "ESM_BUILD=true node build/build.js",
"test": "yarn run build && node --experimental-vm-modules node_modules/.bin/vitest",
"lint": "biome lint .",
"fix": "biome lint . --apply",
"format": "biome format . --write",
"prettier": "prettier --plugin @shufo/prettier-plugin-blade"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./*": "./*"
},
"repository": {
"type": "git",
"url": "https://github.com/shufo/prettier-plugin-blade.git"
},
"files": ["dist", "src", "CHANGELOG.md"],
"keywords": ["prettier", "blade", "formatter", "laravel"],
"author": "Shuhei Hayashibara"
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Parser, Printer, SupportLanguage } from "prettier";
import type { Parser, Printer, SupportLanguage } from "prettier";
import { defaultOptions, options } from "./options";
import { parse } from "./parser";
import { print } from "./printer";
Expand Down
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ export const options = {
* @since 1.0.0
*/
export function parsePhpVersion(version: string): number {
return parseFloat(version);
return Number.parseFloat(version);
}
10 changes: 5 additions & 5 deletions src/parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Parser, ParserOptions, resolveConfigFile } from "prettier";
import { FormatterOption } from "blade-formatter";
import { type Parser, type ParserOptions, resolveConfigFile } from "prettier";
import type { FormatterOption } from "blade-formatter";
import { Formatter } from "blade-formatter";
import path from "path";
import path from "node:path";
import { parsePhpVersion } from "./options";

/**
Expand All @@ -24,8 +24,8 @@ export const parse = async (
wrapAttributes: opts.singleAttributePerLine
? "force-expand-multiline"
: opts.bracketSameLine
? "force-aligned"
: opts.wrapAttributes,
? "force-aligned"
: opts.wrapAttributes,
wrapAttributesMinAttrs: opts.wrapAttributesMinAttrs,
endWithNewline: opts.endWithNewline,
useTabs: opts.useTabs,
Expand Down
2 changes: 1 addition & 1 deletion src/printer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AstPath, Doc } from "prettier";
import type { AstPath, Doc } from "prettier";

/**
* Returns a `Doc` representation of the given AST `path`.
Expand Down
58 changes: 29 additions & 29 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"compilerOptions": {
"allowJs": true,
"target": "ES6",
"module": "nodenext",
"lib": ["esnext"],
"baseUrl": "./",
"declaration": true,
"declarationDir": "./types",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"types": ["node", "@types/jest"],
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true
},
"ts-node": {
"compilerOptions": {
"module": "CommonJS"
}
},
"ts-jest": {
"compilerOptions": {
"module": "CommonJS"
}
},
"exclude": ["node_modules"],
"include": ["src/**/*", "node_modules/@types", "__tests__/**/*"]
"compilerOptions": {
"allowJs": true,
"target": "ES6",
"module": "nodenext",
"lib": ["esnext"],
"baseUrl": "./",
"declaration": true,
"declarationDir": "./types",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"types": ["node", "@types/jest"],
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true
},
"ts-node": {
"compilerOptions": {
"module": "CommonJS"
}
},
"ts-jest": {
"compilerOptions": {
"module": "CommonJS"
}
},
"exclude": ["node_modules"],
"include": ["src/**/*", "node_modules/@types", "__tests__/**/*"]
}
Loading

0 comments on commit 48fcbfc

Please sign in to comment.