@wkovacs64/prettier-config 3.0.1 → 3.0.3
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 +5 -3
- package/index.js +18 -1
- package/package.json +13 -16
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This is my personal [Prettier][prettier] configuration.
|
|
4
4
|
|
|
5
|
-
[![npm Version][npm-image]][npm-url]
|
|
5
|
+
[![npm Version][npm-image]][npm-url]
|
|
6
|
+
[![Build Status][ci-image]][ci-url]
|
|
6
7
|
[![semantic-release][semantic-release-image]][semantic-release-url]
|
|
7
8
|
|
|
8
9
|
### Install
|
|
@@ -50,8 +51,9 @@ package.json
|
|
|
50
51
|
https://img.shields.io/npm/v/@wkovacs64/prettier-config.svg?style=flat-square
|
|
51
52
|
[npm-url]: https://www.npmjs.com/package/@wkovacs64/prettier-config
|
|
52
53
|
[ci-image]:
|
|
53
|
-
https://img.shields.io/
|
|
54
|
-
[ci-url]:
|
|
54
|
+
https://img.shields.io/github/workflow/status/wKovacs64/prettier-config/%F0%9F%A4%96%20CI/main?logo=github&style=flat-square
|
|
55
|
+
[ci-url]:
|
|
56
|
+
https://github.com/wKovacs64/prettier-config/actions?query=workflow%3Aci
|
|
55
57
|
[semantic-release-image]:
|
|
56
58
|
https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square
|
|
57
59
|
[semantic-release-url]: https://github.com/semantic-release/semantic-release
|
package/index.js
CHANGED
|
@@ -11,17 +11,34 @@ module.exports = {
|
|
|
11
11
|
insertPragma: false,
|
|
12
12
|
jsxSingleQuote: false,
|
|
13
13
|
printWidth: 80,
|
|
14
|
+
proseWrap: 'preserve',
|
|
14
15
|
quoteProps: 'as-needed',
|
|
15
16
|
rangeEnd: Infinity,
|
|
16
17
|
rangeStart: 0,
|
|
17
18
|
requirePragma: false,
|
|
18
19
|
semi: true,
|
|
20
|
+
singleAttributePerLine: false,
|
|
19
21
|
tabWidth: 2,
|
|
20
22
|
useTabs: false,
|
|
21
23
|
vueIndentScriptAndStyle: false,
|
|
22
24
|
|
|
23
25
|
// customized
|
|
24
|
-
proseWrap: 'always',
|
|
25
26
|
singleQuote: true,
|
|
26
27
|
trailingComma: 'all',
|
|
28
|
+
|
|
29
|
+
// workaround for https://github.com/changesets/changesets/issues/774
|
|
30
|
+
overrides: [
|
|
31
|
+
{
|
|
32
|
+
files: ['*.md', '*.mdx'],
|
|
33
|
+
options: {
|
|
34
|
+
proseWrap: 'always',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
files: ['**/.changeset/*.md', 'CHANGELOG.md'],
|
|
39
|
+
options: {
|
|
40
|
+
proseWrap: 'never',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
27
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wkovacs64/prettier-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "@wKovacs64 Prettier config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"prettier",
|
|
@@ -25,12 +25,13 @@
|
|
|
25
25
|
"url": "https://github.com/wKovacs64/prettier-config/issues"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
28
|
+
"changeset": "changeset",
|
|
29
|
+
"changeset:version": "changeset version && npm install --package-lock-only",
|
|
30
|
+
"changeset:publish": "changeset publish",
|
|
31
|
+
"format": "prettier --cache --write .",
|
|
32
|
+
"lint": "eslint .",
|
|
31
33
|
"husky:install": "husky install",
|
|
32
|
-
"prepare": "npm run --silent husky:install"
|
|
33
|
-
"validate": "npm-run-all --silent --parallel lint"
|
|
34
|
+
"prepare": "npm run --silent husky:install"
|
|
34
35
|
},
|
|
35
36
|
"config": {
|
|
36
37
|
"commitizen": {
|
|
@@ -44,19 +45,15 @@
|
|
|
44
45
|
"engines": {
|
|
45
46
|
"node": ">= 8.9.0"
|
|
46
47
|
},
|
|
47
|
-
"dependencies": {},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"commitizen": "4.2.4",
|
|
49
|
+
"@changesets/changelog-github": "0.4.7",
|
|
50
|
+
"@changesets/cli": "2.25.2",
|
|
52
51
|
"cross-env": "7.0.3",
|
|
53
|
-
"cz-conventional-changelog": "3.3.0",
|
|
54
52
|
"eslint": "7.32.0",
|
|
55
|
-
"eslint-plugin-wkovacs64": "13.
|
|
56
|
-
"husky": "
|
|
57
|
-
"lint-staged": "
|
|
53
|
+
"eslint-plugin-wkovacs64": "13.17.0",
|
|
54
|
+
"husky": "8.0.2",
|
|
55
|
+
"lint-staged": "13.0.3",
|
|
58
56
|
"npm-run-all": "4.1.5",
|
|
59
|
-
"prettier": "2.
|
|
60
|
-
"semantic-release": "19.0.2"
|
|
57
|
+
"prettier": "2.7.1"
|
|
61
58
|
}
|
|
62
59
|
}
|