Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
803 changes: 405 additions & 398 deletions index.ts

Large diffs are not rendered by default.

7,962 changes: 3,971 additions & 3,991 deletions package-lock.json

Large diffs are not rendered by default.

127 changes: 63 additions & 64 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,65 @@
{
"name": "@projectwallace/format-css",
"version": "2.1.2",
"description": "Fast, small, zero-config library to format or minify CSS with basic rules.",
"repository": {
"type": "git",
"url": "git+https://github.com/projectwallace/format-css.git"
},
"homepage": "https://github.com/projectwallace/format-css",
"issues": "https://github.com/projectwallace/format-css/issues",
"license": "MIT",
"author": "Bart Veneman <bart@projectwallace.com>",
"engines": {
"node": ">=18.0.0"
},
"type": "module",
"main": "./dist/format-css.js",
"exports": {
"types": "./dist/index.d.ts",
"default": "./dist/format-css.js"
},
"types": "./dist/index.d.ts",
"scripts": {
"build": "vite build",
"test": "vitest --coverage",
"check": "tsc",
"prettier": "prettier --check index.ts test/**/*.ts",
"lint": "oxlint",
"lint-package": "publint"
},
"devDependencies": {
"@codecov/vite-plugin": "^1.9.1",
"@types/css-tree": "^2.3.11",
"@vitest/coverage-v8": "^4.0.3",
"c8": "^10.1.3",
"oxlint": "^1.24.0",
"prettier": "^3.6.2",
"publint": "^0.3.15",
"typescript": "^5.9.3",
"vite": "^6.2.6",
"vite-plugin-dts": "^4.5.4",
"vitest": "^4.0.3"
},
"dependencies": {
"css-tree": "^3.1.0"
},
"files": [
"dist"
],
"keywords": [
"css",
"stylesheet",
"formatter",
"format",
"print",
"prettifier",
"pretty",
"prettier"
],
"prettier": {
"semi": false,
"useTabs": true,
"printWidth": 140,
"singleQuote": true
}
"name": "@projectwallace/format-css",
"version": "2.1.1",
"description": "Fast, small, zero-config library to format or minify CSS with basic rules.",
"repository": {
"type": "git",
"url": "git+https://github.com/projectwallace/format-css.git"
},
"homepage": "https://github.com/projectwallace/format-css",
"issues": "https://github.com/projectwallace/format-css/issues",
"license": "MIT",
"author": "Bart Veneman <bart@projectwallace.com>",
"engines": {
"node": ">=18.0.0"
},
"type": "module",
"main": "./dist/format-css.js",
"exports": {
"types": "./dist/index.d.ts",
"default": "./dist/format-css.js"
},
"types": "./dist/index.d.ts",
"scripts": {
"build": "vite build",
"test": "vitest --coverage",
"check": "tsc",
"prettier": "prettier --check index.ts test/**/*.ts",
"lint": "oxlint",
"lint-package": "publint"
},
"devDependencies": {
"@codecov/vite-plugin": "^1.9.1",
"@vitest/coverage-v8": "^4.0.3",
"c8": "^10.1.3",
"oxlint": "^1.24.0",
"prettier": "^3.6.2",
"publint": "^0.3.15",
"typescript": "^5.9.3",
"vite": "^6.2.6",
"vite-plugin-dts": "^4.5.4",
"vitest": "^4.0.3"
},
"files": [
"dist"
],
"keywords": [
"css",
"stylesheet",
"formatter",
"format",
"print",
"prettifier",
"pretty",
"prettier"
],
"prettier": {
"semi": false,
"useTabs": true,
"printWidth": 140,
"singleQuote": true
},
"dependencies": {
"@projectwallace/css-parser": "^0.12.2"
}
}
2 changes: 1 addition & 1 deletion test/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test('empty input', () => {

test('handles invalid input', () => {
let actual = format(`;`)
let expected = `;`
let expected = ``
expect(actual).toEqual(expected)
})

Expand Down
Loading