@html-validate/prettier-config 1.0.1 → 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 +2 -0
- package/index.js +1 -0
- package/package.json +35 -39
- package/prettier.js +14 -0
- package/CHANGELOG.md +0 -17
package/README.md
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,66 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/prettier-config",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "2.1.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
|
-
"
|
|
13
|
-
|
|
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
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"prettier
|
|
24
|
-
"prettier:write": "prettier . --write",
|
|
25
|
-
"semantic-release": "semantic-release",
|
|
26
|
-
"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"
|
|
27
21
|
},
|
|
28
22
|
"files": [
|
|
29
23
|
"*.js"
|
|
30
24
|
],
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
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"
|
|
35
30
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
39
|
-
"pre-commit": "lint-staged"
|
|
40
|
-
}
|
|
31
|
+
"commitlint": {
|
|
32
|
+
"extends": "@html-validate"
|
|
41
33
|
},
|
|
42
34
|
"lint-staged": {
|
|
43
35
|
"*.{js,json,md}": "prettier --write"
|
|
44
36
|
},
|
|
45
37
|
"prettier": ".",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"prettier": "2.6.2"
|
|
40
|
+
},
|
|
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"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">= 12.0"
|
|
50
|
+
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
50
53
|
},
|
|
51
54
|
"release": {
|
|
52
55
|
"extends": "@html-validate/semantic-release-config"
|
|
53
56
|
},
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"@commitlint/cli": "8.3.5",
|
|
59
|
-
"@html-validate/commitlint-config": "1.0.2",
|
|
60
|
-
"@html-validate/semantic-release-config": "1.0.13",
|
|
61
|
-
"husky": "4.2.3",
|
|
62
|
-
"lint-staged": "10.0.9",
|
|
63
|
-
"prettier": "2.0.2",
|
|
64
|
-
"semantic-release": "17.0.4"
|
|
57
|
+
"renovate": {
|
|
58
|
+
"extends": [
|
|
59
|
+
"gitlab>html-validate/renovate-config:bundled"
|
|
60
|
+
]
|
|
65
61
|
}
|
|
66
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,17 +0,0 @@
|
|
|
1
|
-
# @html-validate/prettier-config changelog
|
|
2
|
-
|
|
3
|
-
## [1.0.1](https://gitlab.com/html-validate/prettier-config/compare/v1.0.0...v1.0.1) (2020-03-29)
|
|
4
|
-
|
|
5
|
-
### Bug Fixes
|
|
6
|
-
|
|
7
|
-
- trailingComma defaults to es5 since prettier 2 ([9d33abe](https://gitlab.com/html-validate/prettier-config/commit/9d33abed50cdb4969fe4b3a6f5a98e941efd1607))
|
|
8
|
-
|
|
9
|
-
# 1.0.0 (2019-12-25)
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
- formatting ([96619ae](https://gitlab.com/html-validate/prettier-config/commit/96619ae534481bafd4bfcc7dedcefc26374999d6))
|
|
14
|
-
|
|
15
|
-
### Features
|
|
16
|
-
|
|
17
|
-
- initial release refactored from html-validate ([7405428](https://gitlab.com/html-validate/prettier-config/commit/74054285fe0ee0a3526075117213bd23d560b8ec))
|