@foray1010/prettier-config 9.0.0 → 10.0.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/CHANGELOG.md +10 -0
- package/README.md +2 -4
- package/{index.cjs → index.mjs} +2 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/prettier-config@9.0.0...@foray1010/prettier-config@10.0.0) (2023-08-10)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
- **deps:** update prettier to v3
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **deps:** update prettier to v3 ([4724464](https://github.com/foray1010/common-presets/commit/4724464c1c272df3eb686b168d836a9a696c11a2))
|
|
15
|
+
|
|
6
16
|
## [9.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/prettier-config@8.0.1...@foray1010/prettier-config@9.0.0) (2023-03-23)
|
|
7
17
|
|
|
8
18
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
1. `yarn add -DE @foray1010/prettier-config prettier`
|
|
6
6
|
|
|
7
|
-
1. Create an `.prettierrc.
|
|
7
|
+
1. Create an `.prettierrc.mjs` in the project root
|
|
8
8
|
|
|
9
9
|
```js
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
module.exports = require('@foray1010/prettier-config')
|
|
10
|
+
export { default } from '@foray1010/prettier-config'
|
|
13
11
|
```
|
|
14
12
|
|
|
15
13
|
1. Use default prettierignore via npm script
|
package/{index.cjs → index.mjs}
RENAMED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
1
|
/** @type {import('prettier').Config} */
|
|
4
|
-
|
|
5
|
-
pluginSearchDirs: false,
|
|
2
|
+
const config = {
|
|
6
3
|
plugins: ['prettier-plugin-packagejson'],
|
|
7
4
|
|
|
8
5
|
arrowParens: 'always',
|
|
@@ -28,3 +25,4 @@ module.exports = {
|
|
|
28
25
|
},
|
|
29
26
|
],
|
|
30
27
|
}
|
|
28
|
+
export default config
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/prettier-config",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "10.0.0",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/prettier-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"directory": "packages/prettier-config"
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
|
-
"exports": "./index.
|
|
13
|
+
"exports": "./index.mjs",
|
|
14
14
|
"files": [
|
|
15
15
|
"**/*.{cjs,js,json,mjs}",
|
|
16
16
|
"*.md",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"prettier-plugin-packagejson": "^2.4.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/prettier": "
|
|
26
|
+
"@types/prettier": "3.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"prettier": "^
|
|
29
|
+
"prettier": "^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": "^16.14.0 || >=18.12.0"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "53eea83670d83a13b40cf0022f24badccfda681c"
|
|
38
38
|
}
|