@html-validate/prettier-config 1.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,3 +17,5 @@ In your `package.json` file:
17
17
  "prettier": "@html-validate/prettier-config"
18
18
  }
19
19
  ```
20
+
21
+ Prettier does not need to be installed separately, this package includes `prettier` and it's binary.
package/package.json CHANGED
@@ -1,69 +1,62 @@
1
1
  {
2
2
  "name": "@html-validate/prettier-config",
3
- "version": "1.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Prettier sharable config used by the various HTML-validate packages",
5
- "homepage": "https://gitlab.com/html-validate/prettier-config#readme",
6
- "author": "David Sveningsson <ext@sidvind.com>",
7
- "license": "MIT",
8
- "main": "index.js",
9
5
  "keywords": [
10
6
  "prettier"
11
7
  ],
12
- "publishConfig": {
13
- "access": "public"
8
+ "homepage": "https://gitlab.com/html-validate/prettier-config#readme",
9
+ "bugs": {
10
+ "url": "https://gitlab.com/html-validate/prettier-config/issues"
14
11
  },
15
12
  "repository": {
16
13
  "type": "git",
17
14
  "url": "https://gitlab.com/html-validate/prettier-config.git"
18
15
  },
19
- "bugs": {
20
- "url": "https://gitlab.com/html-validate/prettier-config/issues"
21
- },
22
- "engines": {
23
- "node": ">= 8.5"
24
- },
25
- "scripts": {
26
- "prettier:check": "prettier . --check",
27
- "prettier:write": "prettier . --write",
28
- "semantic-release": "semantic-release",
29
- "test": "echo \"Error: no test specified\" && exit 1"
16
+ "license": "MIT",
17
+ "author": "David Sveningsson <ext@sidvind.com>",
18
+ "main": "index.js",
19
+ "bin": {
20
+ "prettier": "prettier.js"
30
21
  },
31
22
  "files": [
32
23
  "*.js"
33
24
  ],
34
- "commitlint": {
35
- "extends": [
36
- "@html-validate"
37
- ]
25
+ "scripts": {
26
+ "prepare": "husky install",
27
+ "prettier:check": "prettier --check .",
28
+ "prettier:write": "prettier --write .",
29
+ "test": "echo \"Error: no test specified\" && exit 1"
38
30
  },
39
- "husky": {
40
- "hooks": {
41
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
42
- "pre-commit": "lint-staged"
43
- }
31
+ "commitlint": {
32
+ "extends": "@html-validate"
44
33
  },
45
34
  "lint-staged": {
46
35
  "*.{js,json,md}": "prettier --write"
47
36
  },
48
37
  "prettier": ".",
49
- "renovate": {
50
- "extends": [
51
- "@html-validate"
52
- ]
38
+ "dependencies": {
39
+ "prettier": "2.6.2"
40
+ },
41
+ "devDependencies": {
42
+ "@html-validate/commitlint-config": "2.1.10",
43
+ "@html-validate/semantic-release-config": "3.4.2",
44
+ "husky": "7.0.4",
45
+ "lint-staged": "12.4.1",
46
+ "npm-pkg-lint": "1.11.0"
47
+ },
48
+ "engines": {
49
+ "node": ">= 14.0"
50
+ },
51
+ "publishConfig": {
52
+ "access": "public"
53
53
  },
54
54
  "release": {
55
55
  "extends": "@html-validate/semantic-release-config"
56
56
  },
57
- "peerDependencies": {
58
- "prettier": ">= 1 || >= 2"
59
- },
60
- "devDependencies": {
61
- "@commitlint/cli": "11.0.0",
62
- "@html-validate/commitlint-config": "1.0.3",
63
- "@html-validate/semantic-release-config": "1.0.39",
64
- "husky": "4.3.0",
65
- "lint-staged": "10.4.0",
66
- "prettier": "2.1.2",
67
- "semantic-release": "17.1.2"
57
+ "renovate": {
58
+ "extends": [
59
+ "gitlab>html-validate/renovate-config:bundled"
60
+ ]
68
61
  }
69
62
  }
package/prettier.js ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+
3
+ const path = require("path");
4
+ const { spawn } = require("child_process"); // eslint-disable-line security/detect-child-process
5
+
6
+ const pkgPath = path.dirname(require.resolve("prettier/package.json"));
7
+ const binary = path.join(pkgPath, "bin-prettier.js");
8
+
9
+ spawn("node", [binary, ...process.argv.slice(2)], {
10
+ stdio: "inherit",
11
+ }).on("exit", (code) => {
12
+ /* eslint-disable-next-line no-process-exit */
13
+ process.exit(code);
14
+ });
package/CHANGELOG.md DELETED
@@ -1,23 +0,0 @@
1
- # @html-validate/prettier-config changelog
2
-
3
- # [1.1.0](https://gitlab.com/html-validate/prettier-config/compare/v1.0.1...v1.1.0) (2020-10-03)
4
-
5
- ### Features
6
-
7
- - increase `printWidth` to 100 ([285b4cf](https://gitlab.com/html-validate/prettier-config/commit/285b4cfbe2d6ec87ae54d4c7383fa0940781a09b))
8
-
9
- ## [1.0.1](https://gitlab.com/html-validate/prettier-config/compare/v1.0.0...v1.0.1) (2020-03-29)
10
-
11
- ### Bug Fixes
12
-
13
- - trailingComma defaults to es5 since prettier 2 ([9d33abe](https://gitlab.com/html-validate/prettier-config/commit/9d33abed50cdb4969fe4b3a6f5a98e941efd1607))
14
-
15
- # 1.0.0 (2019-12-25)
16
-
17
- ### Bug Fixes
18
-
19
- - formatting ([96619ae](https://gitlab.com/html-validate/prettier-config/commit/96619ae534481bafd4bfcc7dedcefc26374999d6))
20
-
21
- ### Features
22
-
23
- - initial release refactored from html-validate ([7405428](https://gitlab.com/html-validate/prettier-config/commit/74054285fe0ee0a3526075117213bd23d560b8ec))