@html-validate/prettier-config 2.0.0 → 2.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/prettier-config",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Prettier sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "prettier"
@@ -16,37 +16,34 @@
16
16
  "license": "MIT",
17
17
  "author": "David Sveningsson <ext@sidvind.com>",
18
18
  "main": "index.js",
19
+ "bin": {
20
+ "prettier": "prettier.js"
21
+ },
19
22
  "files": [
20
23
  "*.js"
21
24
  ],
22
25
  "scripts": {
23
- "prepare": "husky install && git config commit.template ./node_modules/@html-validate/commitlint-config/gitmessage",
26
+ "prepare": "husky install",
24
27
  "prettier:check": "prettier --check .",
25
28
  "prettier:write": "prettier --write .",
26
- "semantic-release": "semantic-release",
27
29
  "test": "echo \"Error: no test specified\" && exit 1"
28
30
  },
29
31
  "commitlint": {
30
- "extends": [
31
- "@html-validate"
32
- ]
32
+ "extends": "@html-validate"
33
33
  },
34
34
  "lint-staged": {
35
35
  "*.{js,json,md}": "prettier --write"
36
36
  },
37
37
  "prettier": ".",
38
- "devDependencies": {
39
- "@commitlint/cli": "12.1.4",
40
- "@html-validate/commitlint-config": "1.3.1",
41
- "@html-validate/semantic-release-config": "2.0.0",
42
- "husky": "6.0.0",
43
- "lint-staged": "11.0.0",
44
- "npm-pkg-lint": "1.4.0",
45
- "prettier": "2.3.1",
46
- "semantic-release": "17.4.4"
38
+ "dependencies": {
39
+ "prettier": "2.6.2"
47
40
  },
48
- "peerDependencies": {
49
- "prettier": ">= 1 || >= 2"
41
+ "devDependencies": {
42
+ "@html-validate/commitlint-config": "2.1.9",
43
+ "@html-validate/semantic-release-config": "3.3.0",
44
+ "husky": "7.0.4",
45
+ "lint-staged": "12.3.7",
46
+ "npm-pkg-lint": "1.10.0"
50
47
  },
51
48
  "engines": {
52
49
  "node": ">= 12.0"
@@ -59,7 +56,7 @@
59
56
  },
60
57
  "renovate": {
61
58
  "extends": [
62
- "@html-validate:proxy"
59
+ "gitlab>html-validate/renovate-config:bundled"
63
60
  ]
64
61
  }
65
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,33 +0,0 @@
1
- # @html-validate/prettier-config changelog
2
-
3
- ## [2.0.0](https://gitlab.com/html-validate/prettier-config/compare/v1.1.0...v2.0.0) (2021-06-27)
4
-
5
- ### ⚠ BREAKING CHANGES
6
-
7
- - require NodeJS 12
8
-
9
- ### Features
10
-
11
- - require NodeJS 12 ([113e541](https://gitlab.com/html-validate/prettier-config/commit/113e5419c8f8f7369492e9e190f17f388271cd7f))
12
-
13
- # [1.1.0](https://gitlab.com/html-validate/prettier-config/compare/v1.0.1...v1.1.0) (2020-10-03)
14
-
15
- ### Features
16
-
17
- - increase `printWidth` to 100 ([285b4cf](https://gitlab.com/html-validate/prettier-config/commit/285b4cfbe2d6ec87ae54d4c7383fa0940781a09b))
18
-
19
- ## [1.0.1](https://gitlab.com/html-validate/prettier-config/compare/v1.0.0...v1.0.1) (2020-03-29)
20
-
21
- ### Bug Fixes
22
-
23
- - trailingComma defaults to es5 since prettier 2 ([9d33abe](https://gitlab.com/html-validate/prettier-config/commit/9d33abed50cdb4969fe4b3a6f5a98e941efd1607))
24
-
25
- # 1.0.0 (2019-12-25)
26
-
27
- ### Bug Fixes
28
-
29
- - formatting ([96619ae](https://gitlab.com/html-validate/prettier-config/commit/96619ae534481bafd4bfcc7dedcefc26374999d6))
30
-
31
- ### Features
32
-
33
- - initial release refactored from html-validate ([7405428](https://gitlab.com/html-validate/prettier-config/commit/74054285fe0ee0a3526075117213bd23d560b8ec))