@shahrad/prettier-config 1.0.0 → 1.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 +6 -3
- package/index.d.ts +7 -0
- package/index.js +3 -3
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -27,11 +27,14 @@ pnpm i -D @shahrad/prettier-config
|
|
|
27
27
|
###### `prettier.config.mjs`
|
|
28
28
|
|
|
29
29
|
```javascript
|
|
30
|
-
import
|
|
30
|
+
import DEFAULT_CONFIG from '@shahrad/prettier-config';
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
/** @type {import('prettier').Config} */
|
|
33
|
+
const config = Object.assign(DEFAULT_CONFIG, {
|
|
34
|
+
trailingComma: 'none',
|
|
34
35
|
});
|
|
36
|
+
|
|
37
|
+
export default config;
|
|
35
38
|
```
|
|
36
39
|
|
|
37
40
|
## License
|
package/index.d.ts
ADDED
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** @type {import('prettier').
|
|
2
|
-
const
|
|
1
|
+
/** @type {import('@ianvs/prettier-plugin-sort-imports').PrettierConfig} */
|
|
2
|
+
const DEFAULT_CONFIG = {
|
|
3
3
|
useTabs: false,
|
|
4
4
|
semi: true,
|
|
5
5
|
singleQuote: true,
|
|
@@ -25,4 +25,4 @@ const config = {
|
|
|
25
25
|
],
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export default
|
|
28
|
+
export default DEFAULT_CONFIG;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shahrad/prettier-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "My personal Prettier config",
|
|
6
6
|
"homepage": "https://github.com/shahradelahi/prettier-config#readme",
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
"author": "Shahrad Elahi <shahrad@litehex.com> (https://github.com/shahradelahi)",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "index.js",
|
|
12
|
+
"types": "index.d.ts",
|
|
12
13
|
"files": [
|
|
13
|
-
"index.js"
|
|
14
|
+
"index.js",
|
|
15
|
+
"index.d.ts"
|
|
14
16
|
],
|
|
15
17
|
"scripts": {
|
|
16
18
|
"clean": "git clean -xdf node_modules",
|