@madgex/prettier-config-madgex 1.1.2 → 2.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 +4 -0
- package/README.md +7 -13
- package/index.js +1 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
# [2.0.0](https://github.com/wiley/madgex-eslint-config-madgex/compare/@madgex/prettier-config-madgex@1.2.1...@madgex/prettier-config-madgex@2.0.0) (2024-04-18)
|
|
7
|
+
|
|
8
|
+
-fix: trailingComma:"all"
|
|
9
|
+
|
|
6
10
|
## <small>1.1.2 (2020-10-21)</small>
|
|
7
11
|
|
|
8
12
|
- fix: revert printWidth ([479d57c](https://thegits/scm/int/eslint-config-madgex/commits/479d57c))
|
package/README.md
CHANGED
|
@@ -12,18 +12,12 @@ npm install @madgex/prettier-config-madgex -save-dev
|
|
|
12
12
|
|
|
13
13
|
Add in your `package.json`:
|
|
14
14
|
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
If you want overwrite some properties, you need import the file in a `.prettierrc.js` file and export the modifications:
|
|
23
|
-
|
|
24
|
-
```javascript
|
|
25
|
-
module.exports = {
|
|
26
|
-
...require('@madgex/prettier-config-madgex'),
|
|
27
|
-
semi: false,
|
|
15
|
+
```js
|
|
16
|
+
// .prettierrc.js
|
|
17
|
+
import configMadgex from '@madgex/prettier-config-madgex';
|
|
18
|
+
export default {
|
|
19
|
+
...configMadgex,
|
|
20
|
+
// if absolutely necessary, add overrides
|
|
21
|
+
// semi: false,
|
|
28
22
|
};
|
|
29
23
|
```
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@madgex/prettier-config-madgex",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Prettier rules related to Madgex projects",
|
|
5
|
+
"type": "commonjs",
|
|
5
6
|
"main": "index.js",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"build": "echo 'build is not required' || exit 0",
|
|
@@ -16,9 +17,7 @@
|
|
|
16
17
|
"author": "James Wragg <james.wragg@madgex.com> (https://madgex.com/)",
|
|
17
18
|
"license": "MIT",
|
|
18
19
|
"peerDependencies": {
|
|
19
|
-
"
|
|
20
|
-
"eslint-plugin-prettier": "^3.1.4",
|
|
21
|
-
"prettier": "^2.1.2"
|
|
20
|
+
"prettier": ">=3"
|
|
22
21
|
},
|
|
23
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "2bbdb8be7d056e210ce28579c116e05d2f9362c8"
|
|
24
23
|
}
|