@2digits/prettier-config 3.3.0 → 3.3.1

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/dist/index.cjs CHANGED
@@ -8,15 +8,12 @@ const devDependencies = {
8
8
 
9
9
  const semverRegex = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/;
10
10
  const localTypescriptVersion = devDependencies.typescript.replace(semverRegex, "");
11
- function defineConfig(config) {
12
- return config;
13
- }
14
11
  function getTypescriptVersion() {
15
12
  const ts = localPkg.getPackageInfoSync("typescript");
16
13
  return ts?.version ?? localTypescriptVersion;
17
14
  }
18
15
 
19
- const index = defineConfig({
16
+ const index = {
20
17
  printWidth: 120,
21
18
  trailingComma: "all",
22
19
  bracketSameLine: true,
@@ -69,6 +66,6 @@ const index = defineConfig({
69
66
  }
70
67
  }
71
68
  ]
72
- });
69
+ };
73
70
 
74
71
  module.exports = index;
package/dist/index.d.cts CHANGED
@@ -1,24 +1,24 @@
1
1
  declare const _default: {
2
- printWidth: number;
3
- trailingComma: "all";
4
- bracketSameLine: true;
5
- singleQuote: true;
6
- experimentalOperatorPosition: "start";
7
- importOrder: string[];
8
- importOrderTypeScriptVersion: string;
9
- tailwindFunctions: string[];
10
- language: "sqlite";
11
- keywordCase: "upper";
12
- indent: number;
13
- allowedBlankLines: number;
14
- indentEntries: true;
15
- plugins: string[];
16
- overrides: {
17
- files: string[];
18
- options: {
19
- requirePragma: true;
2
+ readonly printWidth: 120;
3
+ readonly trailingComma: "all";
4
+ readonly bracketSameLine: true;
5
+ readonly singleQuote: true;
6
+ readonly experimentalOperatorPosition: "start";
7
+ readonly importOrder: ["<BUILTIN_MODULES>", "", "^(react/(.*)$)|^(react$)", "^(react-native/(.*)$)|^(react-native$)", "", "^(next/(.*)$)|^(next$)", "", "^(expo/(.*)$)|^(expo$)|^(expo-(.*)$)|^(@expo/(.*)$)", "", "<THIRD_PARTY_MODULES>", "", "^@2digits/", "^@mod/", "", "^@/", "^(@[A-Z](.*))", "", ".json$", "", "^[./]"];
8
+ readonly importOrderTypeScriptVersion: string;
9
+ readonly tailwindFunctions: string[];
10
+ readonly language: "sqlite";
11
+ readonly keywordCase: "upper";
12
+ readonly indent: 2;
13
+ readonly allowedBlankLines: 1;
14
+ readonly indentEntries: true;
15
+ readonly plugins: [string, string, string, string, string, string, string, string];
16
+ readonly overrides: [{
17
+ readonly files: ["pnpm-lock.yaml"];
18
+ readonly options: {
19
+ readonly requirePragma: true;
20
20
  };
21
- }[];
21
+ }];
22
22
  };
23
23
 
24
24
  export = _default;
package/dist/index.d.mts CHANGED
@@ -1,24 +1,24 @@
1
1
  declare const _default: {
2
- printWidth: number;
3
- trailingComma: "all";
4
- bracketSameLine: true;
5
- singleQuote: true;
6
- experimentalOperatorPosition: "start";
7
- importOrder: string[];
8
- importOrderTypeScriptVersion: string;
9
- tailwindFunctions: string[];
10
- language: "sqlite";
11
- keywordCase: "upper";
12
- indent: number;
13
- allowedBlankLines: number;
14
- indentEntries: true;
15
- plugins: string[];
16
- overrides: {
17
- files: string[];
18
- options: {
19
- requirePragma: true;
2
+ readonly printWidth: 120;
3
+ readonly trailingComma: "all";
4
+ readonly bracketSameLine: true;
5
+ readonly singleQuote: true;
6
+ readonly experimentalOperatorPosition: "start";
7
+ readonly importOrder: ["<BUILTIN_MODULES>", "", "^(react/(.*)$)|^(react$)", "^(react-native/(.*)$)|^(react-native$)", "", "^(next/(.*)$)|^(next$)", "", "^(expo/(.*)$)|^(expo$)|^(expo-(.*)$)|^(@expo/(.*)$)", "", "<THIRD_PARTY_MODULES>", "", "^@2digits/", "^@mod/", "", "^@/", "^(@[A-Z](.*))", "", ".json$", "", "^[./]"];
8
+ readonly importOrderTypeScriptVersion: string;
9
+ readonly tailwindFunctions: string[];
10
+ readonly language: "sqlite";
11
+ readonly keywordCase: "upper";
12
+ readonly indent: 2;
13
+ readonly allowedBlankLines: 1;
14
+ readonly indentEntries: true;
15
+ readonly plugins: [string, string, string, string, string, string, string, string];
16
+ readonly overrides: [{
17
+ readonly files: ["pnpm-lock.yaml"];
18
+ readonly options: {
19
+ readonly requirePragma: true;
20
20
  };
21
- }[];
21
+ }];
22
22
  };
23
23
 
24
24
  export { _default as default };
package/dist/index.d.ts CHANGED
@@ -1,24 +1,24 @@
1
1
  declare const _default: {
2
- printWidth: number;
3
- trailingComma: "all";
4
- bracketSameLine: true;
5
- singleQuote: true;
6
- experimentalOperatorPosition: "start";
7
- importOrder: string[];
8
- importOrderTypeScriptVersion: string;
9
- tailwindFunctions: string[];
10
- language: "sqlite";
11
- keywordCase: "upper";
12
- indent: number;
13
- allowedBlankLines: number;
14
- indentEntries: true;
15
- plugins: string[];
16
- overrides: {
17
- files: string[];
18
- options: {
19
- requirePragma: true;
2
+ readonly printWidth: 120;
3
+ readonly trailingComma: "all";
4
+ readonly bracketSameLine: true;
5
+ readonly singleQuote: true;
6
+ readonly experimentalOperatorPosition: "start";
7
+ readonly importOrder: ["<BUILTIN_MODULES>", "", "^(react/(.*)$)|^(react$)", "^(react-native/(.*)$)|^(react-native$)", "", "^(next/(.*)$)|^(next$)", "", "^(expo/(.*)$)|^(expo$)|^(expo-(.*)$)|^(@expo/(.*)$)", "", "<THIRD_PARTY_MODULES>", "", "^@2digits/", "^@mod/", "", "^@/", "^(@[A-Z](.*))", "", ".json$", "", "^[./]"];
8
+ readonly importOrderTypeScriptVersion: string;
9
+ readonly tailwindFunctions: string[];
10
+ readonly language: "sqlite";
11
+ readonly keywordCase: "upper";
12
+ readonly indent: 2;
13
+ readonly allowedBlankLines: 1;
14
+ readonly indentEntries: true;
15
+ readonly plugins: [string, string, string, string, string, string, string, string];
16
+ readonly overrides: [{
17
+ readonly files: ["pnpm-lock.yaml"];
18
+ readonly options: {
19
+ readonly requirePragma: true;
20
20
  };
21
- }[];
21
+ }];
22
22
  };
23
23
 
24
24
  export = _default;
package/dist/index.mjs CHANGED
@@ -15,15 +15,12 @@ const devDependencies = {
15
15
 
16
16
  const semverRegex = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/;
17
17
  const localTypescriptVersion = devDependencies.typescript.replace(semverRegex, "");
18
- function defineConfig(config) {
19
- return config;
20
- }
21
18
  function getTypescriptVersion() {
22
19
  const ts = getPackageInfoSync("typescript");
23
20
  return ts?.version ?? localTypescriptVersion;
24
21
  }
25
22
 
26
- const index = defineConfig({
23
+ const index = {
27
24
  printWidth: 120,
28
25
  trailingComma: "all",
29
26
  bracketSameLine: true,
@@ -76,6 +73,6 @@ const index = defineConfig({
76
73
  }
77
74
  }
78
75
  ]
79
- });
76
+ };
80
77
 
81
78
  export { index as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/prettier-config",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/2digits-agency/configs.git",
@@ -37,7 +37,7 @@
37
37
  "local-pkg": "1.1.1",
38
38
  "prettier-plugin-embed": "0.5.0",
39
39
  "prettier-plugin-jsdoc": "1.3.2",
40
- "prettier-plugin-sh": "0.17.2",
40
+ "prettier-plugin-sh": "0.17.4",
41
41
  "prettier-plugin-sql": "0.19.0",
42
42
  "prettier-plugin-tailwindcss": "0.6.11",
43
43
  "prettier-plugin-toml": "2.0.4",