@alexlit/config-prettier 18.3.0 → 18.4.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/index.js +19 -9
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -2,22 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { omit } from 'radash';
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const DEFAULT_PLUGINS = {
|
|
6
6
|
/** @see [prettier-plugin-jsdoc](https://github.com/hosseinmd/prettier-plugin-jsdoc) */
|
|
7
7
|
jsdoc: true,
|
|
8
8
|
|
|
9
9
|
/** @see [prettier-plugin-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson) */
|
|
10
10
|
packagejson: true,
|
|
11
11
|
|
|
12
|
-
/** @see [plugin-php](https://github.com/prettier/plugin-php) */
|
|
13
|
-
php: false,
|
|
14
|
-
|
|
15
12
|
/** @see [plugin-pug](https://github.com/prettier/plugin-pug) */
|
|
16
13
|
pug: true,
|
|
17
14
|
|
|
18
|
-
/** @see [plugin-ruby](https://github.com/prettier/plugin-ruby) */
|
|
19
|
-
ruby: false,
|
|
20
|
-
|
|
21
15
|
/** @see [prettier-plugin-sh](https://github.com/astorije/prettier-plugin-sh) */
|
|
22
16
|
sh: true,
|
|
23
17
|
|
|
@@ -27,17 +21,33 @@ const PLUGINS = {
|
|
|
27
21
|
/** @see [prettier-plugin-sort-json](https://github.com/Gudahtt/prettier-plugin-sort-json) */
|
|
28
22
|
'sort-json': true,
|
|
29
23
|
|
|
24
|
+
/** @see [plugin-xml](https://github.com/prettier/plugin-xml) */
|
|
25
|
+
xml: true,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const OPTIONAL_PLUGINS = {
|
|
29
|
+
/** @see [plugin-php](https://github.com/prettier/plugin-php) */
|
|
30
|
+
php: false,
|
|
31
|
+
|
|
32
|
+
/** @see [plugin-ruby](https://github.com/prettier/plugin-ruby) */
|
|
33
|
+
ruby: false,
|
|
34
|
+
|
|
30
35
|
/** @see [prettier-plugin-sql](https://github.com/un-ts/prettier/tree/master/packages/sql) */
|
|
31
36
|
sql: false,
|
|
32
37
|
|
|
33
38
|
/** @see [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) */
|
|
34
39
|
svelte: false,
|
|
40
|
+
};
|
|
35
41
|
|
|
42
|
+
const CODESTYLE_PLUGINS = {
|
|
36
43
|
/** @see [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) */
|
|
37
44
|
tailwindcss: false,
|
|
45
|
+
};
|
|
38
46
|
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
const PLUGINS = {
|
|
48
|
+
...DEFAULT_PLUGINS,
|
|
49
|
+
...OPTIONAL_PLUGINS,
|
|
50
|
+
...CODESTYLE_PLUGINS,
|
|
41
51
|
};
|
|
42
52
|
|
|
43
53
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-prettier",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "prettier config",
|
|
6
6
|
"keywords": [
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"prettier-plugin-solidity": "^1.3.1",
|
|
46
46
|
"prettier-plugin-sort-json": "^4.0.0",
|
|
47
47
|
"prettier-plugin-sql": "^0.18.0",
|
|
48
|
-
"prettier-plugin-svelte": "^3.2.
|
|
49
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
48
|
+
"prettier-plugin-svelte": "^3.2.3",
|
|
49
|
+
"prettier-plugin-tailwindcss": "^0.6.0",
|
|
50
50
|
"radash": "^12.1.0"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
|
-
"node": ">=18"
|
|
53
|
+
"node": ">=18.18"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|