@nokken65/prettier-config 1.0.9 → 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.
@@ -0,0 +1,21 @@
1
+ node_modules
2
+ dist
3
+ build
4
+ logs
5
+ coverage
6
+ .next
7
+ .turbo
8
+ .github
9
+ .angular
10
+ .svelte-kit
11
+ .vscode
12
+ *.log*
13
+ *.log
14
+ *.lock
15
+ *.sh
16
+ *.svg
17
+ *rc.*
18
+ *.htm
19
+ *.html
20
+ *.md
21
+ .*ignore
@@ -23,16 +23,29 @@
23
23
  "plugins": ["@ianvs/prettier-plugin-sort-imports"],
24
24
  "importOrder": [
25
25
  "<BUILTIN_MODULES>",
26
- "^(react|next(.*))$",
26
+ "^(react/(.*)$)|^(react$)",
27
+ "^(next/(.*)$)|^(next$)",
27
28
  "<THIRD_PARTY_MODULES>",
28
- "<TYPES>",
29
29
  "",
30
30
  "^@/(.*)$",
31
31
  "^~/(.*)$",
32
32
  "",
33
33
  "^[./]",
34
+ "",
35
+ "<TYPES>",
34
36
  "<TYPES>^[.]",
37
+ "",
35
38
  "^(.*)(sass|css|scss)$"
36
39
  ],
37
- "importOrderParserPlugins": ["classProperties", "decorators-legacy", "jsx", "typescript"]
40
+ "importOrderSeparation": true,
41
+ "importOrderSortSpecifiers": true,
42
+ "importOrderBuiltinModulesToTop": true,
43
+ "importOrderParserPlugins": [
44
+ "typescript",
45
+ "jsx",
46
+ "decorators-legacy",
47
+ "classProperties"
48
+ ],
49
+ "importOrderMergeDuplicateImports": true,
50
+ "importOrderCombineTypeAndValueImports": true
38
51
  }
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@nokken65/prettier-config",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
- "type": "module",
6
5
  "description": "prettier config",
7
- "main": "index.js",
6
+ "main": "prettier.config.js",
8
7
  "prettier": "./prettier.json",
9
8
  "files": [
10
9
  ".prettierignore",
11
- "prettier.json"
10
+ "prettier.config.js",
11
+ ".prettierrc.json"
12
12
  ],
13
13
  "scripts": {
14
- "format": "prettier --write '**/*.{js,jsx,ts,tsx,json}'",
15
- "postinstall": "node scripts/postinstall.js"
14
+ "format": "prettier --write '**/*.{js,jsx,ts,tsx,json}'"
16
15
  },
17
16
  "repository": {
18
17
  "type": "git",
@@ -32,8 +31,15 @@
32
31
  "formatter",
33
32
  "code-style"
34
33
  ],
34
+ "peerDependencies": {
35
+ "@ianvs/prettier-plugin-sort-imports": "4.5.1",
36
+ "prettier": "3.6.2"
37
+ },
35
38
  "devDependencies": {
36
39
  "@ianvs/prettier-plugin-sort-imports": "4.5.1",
37
40
  "prettier": "3.6.2"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
38
44
  }
39
45
  }
@@ -0,0 +1,6 @@
1
+ /** @type {import("prettier").Config} */
2
+ const baseConfig = require('./.prettierrc.json')
3
+
4
+ module.exports = {
5
+ ...baseConfig
6
+ }
package/index.js DELETED
@@ -1,10 +0,0 @@
1
- import prettierConfig from './prettier.json' assert { type: 'json' }
2
-
3
- /** @type {import('prettier').Options} */
4
- export default (config = {}) => {
5
- return {
6
- ...prettierConfig,
7
- ...config,
8
- plugins: [require('@ianvs/prettier-plugin-sort-imports')]
9
- }
10
- }