@alexlit/config-prettier 15.5.4 → 16.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/README.md CHANGED
@@ -10,7 +10,9 @@ npm i @alexlit/config-prettier -D
10
10
 
11
11
  ```js
12
12
  // .prettierrc.js
13
- module.exports = {
14
- ...require('@alexlit/config-prettier'),
13
+ import config from '@alexlit/config-prettier';
14
+
15
+ export default {
16
+ ...config,
15
17
  };
16
18
  ```
package/index.js CHANGED
@@ -1,5 +1,11 @@
1
- /* eslint-disable spellcheck/spell-checker, global-require */
2
- module.exports = {
1
+ /* eslint-disable spellcheck/spell-checker, import/extensions */
2
+ import jsdoc from './plugins/jsdoc.js';
3
+ import pug from './plugins/pug.js';
4
+ import sortJson from './plugins/sort-json.js';
5
+ import svelte from './plugins/svelte.js';
6
+ import xml from './plugins/xml.js';
7
+
8
+ export default {
3
9
  endOfLine: 'lf',
4
10
 
5
11
  plugins: [
@@ -25,10 +31,10 @@ module.exports = {
25
31
  trailingComma: 'all',
26
32
  vueIndentScriptAndStyle: true,
27
33
 
28
- ...require('./plugins/jsdoc'),
29
- ...require('./plugins/pug'),
30
- ...require('./plugins/sort-json'),
31
- ...require('./plugins/svelte'),
32
- // ...require('./plugins/tailwindcss'),
33
- ...require('./plugins/xml'),
34
+ ...jsdoc,
35
+ ...pug,
36
+ ...sortJson,
37
+ ...svelte,
38
+ // ...tailwindcss,
39
+ ...xml,
34
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-prettier",
3
- "version": "15.5.4",
3
+ "version": "16.0.0",
4
4
  "private": false,
5
5
  "description": "prettier config",
6
6
  "keywords": [
@@ -21,6 +21,7 @@
21
21
  "maintainers": [
22
22
  "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
23
  ],
24
+ "type": "module",
24
25
  "main": "index.js",
25
26
  "files": [
26
27
  "README.md",
@@ -36,14 +37,17 @@
36
37
  "@prettier/plugin-pug": "^3.0.0",
37
38
  "@prettier/plugin-ruby": "^4.0.3",
38
39
  "@prettier/plugin-xml": "^3.2.2",
39
- "prettier": "^3.1.0",
40
+ "prettier": "^3.1.1",
40
41
  "prettier-plugin-jsdoc": "^1.1.1",
41
42
  "prettier-plugin-packagejson": "^2.4.7",
42
43
  "prettier-plugin-sh": "^0.13.1",
43
44
  "prettier-plugin-solidity": "^1.2.0",
44
45
  "prettier-plugin-sort-json": "^3.1.0",
45
- "prettier-plugin-sql": "^0.17.0",
46
+ "prettier-plugin-sql": "^0.17.1",
46
47
  "prettier-plugin-svelte": "^3.1.2",
47
48
  "prettier-plugin-tailwindcss": "^0.5.9"
49
+ },
50
+ "engines": {
51
+ "node": ">=18.12.0"
48
52
  }
49
53
  }
package/plugins/jsdoc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @see [prettier-plugin-jsdoc](https://github.com/hosseinmd/prettier-plugin-jsdoc) */
2
- module.exports = {
2
+ export default {
3
3
  jsdocCommentLineStrategy: 'singleLine',
4
4
  jsdocSeparateReturnsFromParam: true,
5
5
  jsdocSeparateTagGroups: true,
package/plugins/pug.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @see [plugin-pug](https://github.com/prettier/plugin-pug) */
2
- module.exports = {
2
+ export default {
3
3
  pugCommentPreserveSpaces: 'trim-all',
4
4
  pugSingleQuote: false,
5
5
  pugSortAttributes: 'asc',
@@ -1,4 +1,4 @@
1
1
  /** @see [prettier-plugin-sort-json]https://github.com/Gudahtt/prettier-plugin-sort-json) */
2
- module.exports = {
2
+ export default {
3
3
  jsonRecursiveSort: true,
4
4
  };
package/plugins/svelte.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @see [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) */
2
- module.exports = {
2
+ export default {
3
3
  svelteAllowShorthand: false,
4
4
  svelteIndentScriptAndStyle: true,
5
5
  svelteSortOrder: 'options-scripts-markup-styles',
@@ -1,4 +1,4 @@
1
1
  /** @see [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) */
2
- module.exports = {
2
+ export default {
3
3
  tailwindFunctions: ['tw'],
4
4
  };
package/plugins/xml.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /** @see [plugin-xml](https://github.com/prettier/plugin-xml) */
2
- module.exports = {
2
+ export default {
3
3
  xmlWhitespaceSensitivity: 'ignore',
4
4
  };