@nokken65/prettier-config 1.2.8 → 1.2.10

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/.prettierrc.json CHANGED
@@ -20,7 +20,8 @@
20
20
  }
21
21
  }
22
22
  ],
23
- "plugins": ["@ianvs/prettier-plugin-sort-imports"],
23
+ "plugins": ["@ianvs/prettier-plugin-sort-imports",
24
+ "prettier-plugin-multiline-arrays"],
24
25
  "importOrder": [
25
26
  "<BUILTIN_MODULES>",
26
27
  "^(react/(.*)$)|^(react$)",
package/package.json CHANGED
@@ -1,21 +1,26 @@
1
1
  {
2
2
  "name": "@nokken65/prettier-config",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "private": false,
5
- "type": "module",
6
- "prettier": "./.prettierrc.json",
7
- "main": "./index.js",
8
- "exports": {
9
- ".": "./index.js",
10
- "./.prettierrc.json": "./.prettierrc.json",
11
- "./.prettierignore": "./.prettierignore"
12
- },
5
+ "main": "prettier.config.js",
6
+ "prettier": "./prettier.json",
7
+ "files": [
8
+ ".prettierignore",
9
+ "prettier.config.js",
10
+ ".prettierrc.json"
11
+ ],
13
12
  "publishConfig": {
14
13
  "access": "public"
15
14
  },
16
- "dependencies": {
15
+ "peerDependencies": {
16
+ "prettier": "3.7.4",
17
+ "@ianvs/prettier-plugin-sort-imports": "4.7.0",
18
+ "prettier-plugin-multiline-arrays": "^4.1.3"
19
+ },
20
+ "devDependencies": {
17
21
  "prettier": "3.7.4",
18
- "@ianvs/prettier-plugin-sort-imports": "4.7.0"
22
+ "@ianvs/prettier-plugin-sort-imports": "4.7.0",
23
+ "prettier-plugin-multiline-arrays": "^4.1.3"
19
24
  },
20
25
  "scripts": {
21
26
  "format": "prettier --write '**/*.{js,jsx,ts,tsx,json}'"
@@ -0,0 +1,7 @@
1
+ import baseConfig from './.prettierrc.json' with { type: 'json' }
2
+
3
+ /** @type {import("prettier").Config} */
4
+ export default {
5
+ ...baseConfig,
6
+ plugins: [require.resolve('@ianvs/prettier-plugin-sort-imports')]
7
+ }
@@ -1,22 +0,0 @@
1
- name: NPM Publish
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- tags:
8
- - 'v*'
9
-
10
- jobs:
11
- publish-npm:
12
- runs-on: ubuntu-latest
13
- environment: npm
14
- steps:
15
- - name: Checkout
16
- uses: actions/checkout@v5
17
-
18
- - name: Publish package
19
- uses: JS-DevTools/npm-publish@v4
20
- with:
21
- registry: https://registry.npmjs.org/
22
- token: ${{ secrets.NPM_TOKEN }}
package/index.js DELETED
@@ -1,11 +0,0 @@
1
- import configJson from './.prettierrc.json' with { type: 'json' }
2
-
3
- /**
4
- * @see https://prettier.io/docs/configuration
5
- * @type {import("prettier").Config}
6
- */
7
- const config = {
8
- ...configJson
9
- }
10
-
11
- export default config