@nokken65/prettier-config 1.2.7 → 1.2.9

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.js ADDED
@@ -0,0 +1,9 @@
1
+ import config from '@nokken65/prettier-config'
2
+
3
+ /**
4
+ * @see https://prettier.io/docs/configuration
5
+ * @type {import("prettier").Config}
6
+ */
7
+ export default {
8
+ ...config
9
+ }
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,23 +1,27 @@
1
1
  {
2
2
  "name": "@nokken65/prettier-config",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "prettier": "./.prettierrc.json",
7
- "main": "./index.js",
8
- "exports": {
9
- ".": "./index.js",
10
- "./.prettierrc.json": "./.prettierrc.json",
11
- "./.prettierignore": "./.prettierignore"
12
- },
7
+ "main": "./.prettierrc.json",
8
+ "files": [
9
+ ".prettierrc.js",
10
+ ".prettierrc.json",
11
+ ".prettierignore"
12
+ ],
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
- "dependencies": {
17
- "@ianvs/prettier-plugin-sort-imports": "4.7.0"
18
- },
19
16
  "peerDependencies": {
20
- "prettier": "3.7.4"
17
+ "prettier": "3.7.4",
18
+ "@ianvs/prettier-plugin-sort-imports": "4.7.0",
19
+ "prettier-plugin-multiline-arrays": "^4.1.3"
20
+ },
21
+ "devDependencies": {
22
+ "prettier": "3.7.4",
23
+ "@ianvs/prettier-plugin-sort-imports": "4.7.0",
24
+ "prettier-plugin-multiline-arrays": "^4.1.3"
21
25
  },
22
26
  "scripts": {
23
27
  "format": "prettier --write '**/*.{js,jsx,ts,tsx,json}'"
@@ -1,30 +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: Install pnpm
19
- uses: pnpm/action-setup@v4
20
- with:
21
- version: 10
22
-
23
- - name: Install dependencies
24
- run: pnpm install
25
-
26
- - name: Publish package
27
- uses: JS-DevTools/npm-publish@v4
28
- with:
29
- registry: https://registry.npmjs.org/
30
- 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