@2digits/prettier-config 2.6.0 → 2.6.2
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var constants=require('@2digits/constants'),localPkg=require('local-pkg');var e=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(p,n)=>(typeof require<"u"?require:p)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var i={"@2digits/tsconfig":"workspace:*",eslint:"9.
|
|
1
|
+
'use strict';var constants=require('@2digits/constants'),localPkg=require('local-pkg');var e=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(p,n)=>(typeof require<"u"?require:p)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var i={"@2digits/tsconfig":"workspace:*",eslint:"9.17.0",prettier:"3.4.2",tsup:"8.3.5",typescript:"5.7.2"};var l=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,d=i.typescript.replace(l,"");function r(){return localPkg.getPackageInfoSync("typescript")?.version??d}var q={printWidth:100,trailingComma:"all",bracketSameLine:!0,singleQuote:!0,importOrder:["<BUILTIN_MODULES>","","^(react/(.*)$)|^(react$)","^(react-native/(.*)$)|^(react-native$)","","^(next/(.*)$)|^(next$)","","^(expo/(.*)$)|^(expo$)|^(expo-(.*)$)|^(@expo/(.*)$)","","<THIRD_PARTY_MODULES>","","^@2digits/","^@mod/","","^@/","^(@[A-Z](.*))","",".json$","","^[./]"],importOrderTypeScriptVersion:r(),tailwindFunctions:constants.tailwindFunctions,language:"sqlite",keywordCase:"upper",plugins:[e.resolve("prettier-plugin-toml"),e.resolve("@prettier/plugin-xml"),e.resolve("@ianvs/prettier-plugin-sort-imports"),e.resolve("prettier-plugin-jsdoc"),e.resolve("prettier-plugin-sql"),e.resolve("prettier-plugin-embed"),e.resolve("prettier-plugin-tailwindcss")]};module.exports=q;//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/utils.ts","../src/index.ts"],"names":["devDependencies","semverRegex","localTypescriptVersion","getTypescriptVersion","getPackageInfoSync","src_default","tailwindFunctions","__require"],"mappings":"gVAgDE,IAAAA,CAAmB,CAAA,CACjB,mBAAqB,CAAA,aAAA,CACrB,OAAU,QACV,CAAA,QAAA,CAAY,OACZ,CAAA,IAAA,CAAQ,OACR,CAAA,UAAA,CAAc,OAChB,CAAA,CC7CF,IAAMC,CAAAA,CAAc,kDACdC,CAAAA,CAAAA,CAAyBF,CAAgB,CAAA,UAAA,CAAW,QAAQC,CAAa,CAAA,EAAE,CAyB1E,CAAA,SAASE,CAA+B,EAAA,CAG7C,OAFWC,2BAAAA,CAAmB,YAAY,CAAA,EAE/B,OAAWF,EAAAA,CACxB,CCnCA,IAAOG,EAAqB,CAC1B,UAAA,CAAY,GACZ,CAAA,aAAA,CAAe,KACf,CAAA,eAAA,CAAiB,CACjB,CAAA,CAAA,WAAA,CAAa,CAEb,CAAA,CAAA,WAAA,CAAa,CACX,mBAAA,CACA,EACA,CAAA,0BAAA,CACA,yCACA,EACA,CAAA,wBAAA,CACA,EACA,CAAA,qDAAA,CACA,EACA,CAAA,uBAAA,CACA,GACA,YACA,CAAA,QAAA,CACA,EACA,CAAA,KAAA,CACA,eACA,CAAA,EAAA,CACA,SACA,EACA,CAAA,OACF,CACA,CAAA,4BAAA,CAA8BF,CAAqB,EAAA,CAEnD,iBAAAG,CAAAA,2BAAAA,CAEA,QAAU,CAAA,QAAA,CACV,WAAa,CAAA,OAAA,CAEb,OAAS,CAAA,CACPC,EAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,qCAAqC,CACrDA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,uBAAuB,EACvCA,CAAQ,CAAA,OAAA,CAAQ,qBAAqB,CAAA,CACrCA,CAAQ,CAAA,OAAA,CAAQ,uBAAuB,CAAA,CACvCA,CAAQ,CAAA,OAAA,CAAQ,6BAA6B,CAC/C,CACF","file":"index.cjs","sourcesContent":["{\n \"name\": \"@2digits/prettier-config\",\n \"version\": \"2.6.
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/utils.ts","../src/index.ts"],"names":["devDependencies","semverRegex","localTypescriptVersion","getTypescriptVersion","getPackageInfoSync","src_default","tailwindFunctions","__require"],"mappings":"gVAgDE,IAAAA,CAAmB,CAAA,CACjB,mBAAqB,CAAA,aAAA,CACrB,OAAU,QACV,CAAA,QAAA,CAAY,OACZ,CAAA,IAAA,CAAQ,OACR,CAAA,UAAA,CAAc,OAChB,CAAA,CC7CF,IAAMC,CAAAA,CAAc,kDACdC,CAAAA,CAAAA,CAAyBF,CAAgB,CAAA,UAAA,CAAW,QAAQC,CAAa,CAAA,EAAE,CAyB1E,CAAA,SAASE,CAA+B,EAAA,CAG7C,OAFWC,2BAAAA,CAAmB,YAAY,CAAA,EAE/B,OAAWF,EAAAA,CACxB,CCnCA,IAAOG,EAAqB,CAC1B,UAAA,CAAY,GACZ,CAAA,aAAA,CAAe,KACf,CAAA,eAAA,CAAiB,CACjB,CAAA,CAAA,WAAA,CAAa,CAEb,CAAA,CAAA,WAAA,CAAa,CACX,mBAAA,CACA,EACA,CAAA,0BAAA,CACA,yCACA,EACA,CAAA,wBAAA,CACA,EACA,CAAA,qDAAA,CACA,EACA,CAAA,uBAAA,CACA,GACA,YACA,CAAA,QAAA,CACA,EACA,CAAA,KAAA,CACA,eACA,CAAA,EAAA,CACA,SACA,EACA,CAAA,OACF,CACA,CAAA,4BAAA,CAA8BF,CAAqB,EAAA,CAEnD,iBAAAG,CAAAA,2BAAAA,CAEA,QAAU,CAAA,QAAA,CACV,WAAa,CAAA,OAAA,CAEb,OAAS,CAAA,CACPC,EAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,qCAAqC,CACrDA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,uBAAuB,EACvCA,CAAQ,CAAA,OAAA,CAAQ,qBAAqB,CAAA,CACrCA,CAAQ,CAAA,OAAA,CAAQ,uBAAuB,CAAA,CACvCA,CAAQ,CAAA,OAAA,CAAQ,6BAA6B,CAC/C,CACF","file":"index.cjs","sourcesContent":["{\n \"name\": \"@2digits/prettier-config\",\n \"version\": \"2.6.2\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"public\": true,\n \"sideEffects\": false,\n \"exports\": {\n \"./package.json\": \"./package.json\",\n \".\": {\n \"import\": {\n \"types\": \"./dist/index.d.ts\",\n \"default\": \"./dist/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/index.d.cts\",\n \"default\": \"./dist/index.cjs\"\n }\n }\n },\n \"main\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"lint\": \"eslint .\",\n \"types\": \"tsc --noEmit\"\n },\n \"keywords\": [\n \"prettier-config\"\n ],\n \"files\": [\n \"dist\"\n ],\n \"peerDependencies\": {\n \"prettier\": \"3.4.2\"\n },\n \"dependencies\": {\n \"@2digits/constants\": \"workspace:*\",\n \"@ianvs/prettier-plugin-sort-imports\": \"4.4.0\",\n \"@prettier/plugin-xml\": \"3.4.1\",\n \"local-pkg\": \"0.5.1\",\n \"prettier-plugin-embed\": \"0.4.15\",\n \"prettier-plugin-jsdoc\": \"1.3.2\",\n \"prettier-plugin-sql\": \"0.18.1\",\n \"prettier-plugin-tailwindcss\": \"0.6.9\",\n \"prettier-plugin-toml\": \"2.0.1\"\n },\n \"devDependencies\": {\n \"@2digits/tsconfig\": \"workspace:*\",\n \"eslint\": \"9.17.0\",\n \"prettier\": \"3.4.2\",\n \"tsup\": \"8.3.5\",\n \"typescript\": \"5.7.2\"\n }\n}\n","import type { PrettierConfig } from '@ianvs/prettier-plugin-sort-imports';\nimport { getPackageInfoSync } from 'local-pkg';\nimport type { PluginEmbedOptions } from 'prettier-plugin-embed';\nimport type { SqlFormatOptions } from 'prettier-plugin-sql';\nimport type { PluginOptions } from 'prettier-plugin-tailwindcss';\nimport type { PrettierTaploOptions } from 'prettier-plugin-toml';\n\nimport { devDependencies } from '../package.json';\n\nconst semverRegex = /^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$/;\nconst localTypescriptVersion = devDependencies.typescript.replace(semverRegex, '');\n\ntype PrettierConfigWithPlugins = PrettierConfig &\n PluginOptions &\n SqlFormatOptions &\n PrettierTaploOptions &\n PluginEmbedOptions;\n\n/**\n * Define a Prettier configuration with plugins.\n *\n * @template TConfig The Prettier configuration with plugins.\n * @param config The Prettier configuration with plugins.\n * @returns The Prettier configuration with plugins.\n */\nexport function defineConfig<TConfig extends PrettierConfigWithPlugins>(config: TConfig): TConfig {\n return config;\n}\n\n/**\n * Get the version of the locally installed TypeScript.\n *\n * @returns The local TypeScript version, or the version specified in this\n * [package.json](../package.json) file if TypeScript is not installed locally.\n */\nexport function getTypescriptVersion(): string {\n const ts = getPackageInfoSync('typescript');\n\n return ts?.version ?? localTypescriptVersion;\n}\n","import { tailwindFunctions } from '@2digits/constants';\n\nimport { defineConfig, getTypescriptVersion } from './utils';\n\nexport default defineConfig({\n printWidth: 100,\n trailingComma: 'all',\n bracketSameLine: true,\n singleQuote: true,\n\n importOrder: [\n '<BUILTIN_MODULES>',\n '',\n '^(react/(.*)$)|^(react$)',\n '^(react-native/(.*)$)|^(react-native$)',\n '',\n '^(next/(.*)$)|^(next$)',\n '',\n '^(expo/(.*)$)|^(expo$)|^(expo-(.*)$)|^(@expo/(.*)$)',\n '',\n '<THIRD_PARTY_MODULES>',\n '',\n '^@2digits/',\n '^@mod/',\n '',\n '^@/',\n '^(@[A-Z](.*))',\n '',\n '.json$',\n '',\n '^[./]',\n ],\n importOrderTypeScriptVersion: getTypescriptVersion(),\n\n tailwindFunctions,\n\n language: 'sqlite',\n keywordCase: 'upper',\n\n plugins: [\n require.resolve('prettier-plugin-toml'),\n require.resolve('@prettier/plugin-xml'),\n require.resolve('@ianvs/prettier-plugin-sort-imports'),\n require.resolve('prettier-plugin-jsdoc'),\n require.resolve('prettier-plugin-sql'),\n require.resolve('prettier-plugin-embed'),\n require.resolve('prettier-plugin-tailwindcss'),\n ],\n});\n"]}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {tailwindFunctions}from'@2digits/constants';import {getPackageInfoSync}from'local-pkg';var e=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(p,n)=>(typeof require<"u"?require:p)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var i={"@2digits/tsconfig":"workspace:*",eslint:"9.
|
|
1
|
+
import {tailwindFunctions}from'@2digits/constants';import {getPackageInfoSync}from'local-pkg';var e=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(p,n)=>(typeof require<"u"?require:p)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var i={"@2digits/tsconfig":"workspace:*",eslint:"9.17.0",prettier:"3.4.2",tsup:"8.3.5",typescript:"5.7.2"};var l=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,d=i.typescript.replace(l,"");function r(){return getPackageInfoSync("typescript")?.version??d}var q={printWidth:100,trailingComma:"all",bracketSameLine:!0,singleQuote:!0,importOrder:["<BUILTIN_MODULES>","","^(react/(.*)$)|^(react$)","^(react-native/(.*)$)|^(react-native$)","","^(next/(.*)$)|^(next$)","","^(expo/(.*)$)|^(expo$)|^(expo-(.*)$)|^(@expo/(.*)$)","","<THIRD_PARTY_MODULES>","","^@2digits/","^@mod/","","^@/","^(@[A-Z](.*))","",".json$","","^[./]"],importOrderTypeScriptVersion:r(),tailwindFunctions:tailwindFunctions,language:"sqlite",keywordCase:"upper",plugins:[e.resolve("prettier-plugin-toml"),e.resolve("@prettier/plugin-xml"),e.resolve("@ianvs/prettier-plugin-sort-imports"),e.resolve("prettier-plugin-jsdoc"),e.resolve("prettier-plugin-sql"),e.resolve("prettier-plugin-embed"),e.resolve("prettier-plugin-tailwindcss")]};export{q as default};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/utils.ts","../src/index.ts"],"names":["devDependencies","semverRegex","localTypescriptVersion","getTypescriptVersion","getPackageInfoSync","src_default","tailwindFunctions","__require"],"mappings":"uVAgDE,IAAAA,CAAmB,CAAA,CACjB,mBAAqB,CAAA,aAAA,CACrB,OAAU,QACV,CAAA,QAAA,CAAY,OACZ,CAAA,IAAA,CAAQ,OACR,CAAA,UAAA,CAAc,OAChB,CAAA,CC7CF,IAAMC,CAAAA,CAAc,kDACdC,CAAAA,CAAAA,CAAyBF,CAAgB,CAAA,UAAA,CAAW,QAAQC,CAAa,CAAA,EAAE,CAyB1E,CAAA,SAASE,CAA+B,EAAA,CAG7C,OAFWC,kBAAAA,CAAmB,YAAY,CAAA,EAE/B,OAAWF,EAAAA,CACxB,CCnCA,IAAOG,EAAqB,CAC1B,UAAA,CAAY,GACZ,CAAA,aAAA,CAAe,KACf,CAAA,eAAA,CAAiB,CACjB,CAAA,CAAA,WAAA,CAAa,CAEb,CAAA,CAAA,WAAA,CAAa,CACX,mBAAA,CACA,EACA,CAAA,0BAAA,CACA,yCACA,EACA,CAAA,wBAAA,CACA,EACA,CAAA,qDAAA,CACA,EACA,CAAA,uBAAA,CACA,GACA,YACA,CAAA,QAAA,CACA,EACA,CAAA,KAAA,CACA,eACA,CAAA,EAAA,CACA,SACA,EACA,CAAA,OACF,CACA,CAAA,4BAAA,CAA8BF,CAAqB,EAAA,CAEnD,iBAAAG,CAAAA,iBAAAA,CAEA,QAAU,CAAA,QAAA,CACV,WAAa,CAAA,OAAA,CAEb,OAAS,CAAA,CACPC,EAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,qCAAqC,CACrDA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,uBAAuB,EACvCA,CAAQ,CAAA,OAAA,CAAQ,qBAAqB,CAAA,CACrCA,CAAQ,CAAA,OAAA,CAAQ,uBAAuB,CAAA,CACvCA,CAAQ,CAAA,OAAA,CAAQ,6BAA6B,CAC/C,CACF","file":"index.js","sourcesContent":["{\n \"name\": \"@2digits/prettier-config\",\n \"version\": \"2.6.
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/utils.ts","../src/index.ts"],"names":["devDependencies","semverRegex","localTypescriptVersion","getTypescriptVersion","getPackageInfoSync","src_default","tailwindFunctions","__require"],"mappings":"uVAgDE,IAAAA,CAAmB,CAAA,CACjB,mBAAqB,CAAA,aAAA,CACrB,OAAU,QACV,CAAA,QAAA,CAAY,OACZ,CAAA,IAAA,CAAQ,OACR,CAAA,UAAA,CAAc,OAChB,CAAA,CC7CF,IAAMC,CAAAA,CAAc,kDACdC,CAAAA,CAAAA,CAAyBF,CAAgB,CAAA,UAAA,CAAW,QAAQC,CAAa,CAAA,EAAE,CAyB1E,CAAA,SAASE,CAA+B,EAAA,CAG7C,OAFWC,kBAAAA,CAAmB,YAAY,CAAA,EAE/B,OAAWF,EAAAA,CACxB,CCnCA,IAAOG,EAAqB,CAC1B,UAAA,CAAY,GACZ,CAAA,aAAA,CAAe,KACf,CAAA,eAAA,CAAiB,CACjB,CAAA,CAAA,WAAA,CAAa,CAEb,CAAA,CAAA,WAAA,CAAa,CACX,mBAAA,CACA,EACA,CAAA,0BAAA,CACA,yCACA,EACA,CAAA,wBAAA,CACA,EACA,CAAA,qDAAA,CACA,EACA,CAAA,uBAAA,CACA,GACA,YACA,CAAA,QAAA,CACA,EACA,CAAA,KAAA,CACA,eACA,CAAA,EAAA,CACA,SACA,EACA,CAAA,OACF,CACA,CAAA,4BAAA,CAA8BF,CAAqB,EAAA,CAEnD,iBAAAG,CAAAA,iBAAAA,CAEA,QAAU,CAAA,QAAA,CACV,WAAa,CAAA,OAAA,CAEb,OAAS,CAAA,CACPC,EAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,sBAAsB,CACtCA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,qCAAqC,CACrDA,CAAAA,CAAAA,CAAQ,OAAQ,CAAA,uBAAuB,EACvCA,CAAQ,CAAA,OAAA,CAAQ,qBAAqB,CAAA,CACrCA,CAAQ,CAAA,OAAA,CAAQ,uBAAuB,CAAA,CACvCA,CAAQ,CAAA,OAAA,CAAQ,6BAA6B,CAC/C,CACF","file":"index.js","sourcesContent":["{\n \"name\": \"@2digits/prettier-config\",\n \"version\": \"2.6.2\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"public\": true,\n \"sideEffects\": false,\n \"exports\": {\n \"./package.json\": \"./package.json\",\n \".\": {\n \"import\": {\n \"types\": \"./dist/index.d.ts\",\n \"default\": \"./dist/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/index.d.cts\",\n \"default\": \"./dist/index.cjs\"\n }\n }\n },\n \"main\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"lint\": \"eslint .\",\n \"types\": \"tsc --noEmit\"\n },\n \"keywords\": [\n \"prettier-config\"\n ],\n \"files\": [\n \"dist\"\n ],\n \"peerDependencies\": {\n \"prettier\": \"3.4.2\"\n },\n \"dependencies\": {\n \"@2digits/constants\": \"workspace:*\",\n \"@ianvs/prettier-plugin-sort-imports\": \"4.4.0\",\n \"@prettier/plugin-xml\": \"3.4.1\",\n \"local-pkg\": \"0.5.1\",\n \"prettier-plugin-embed\": \"0.4.15\",\n \"prettier-plugin-jsdoc\": \"1.3.2\",\n \"prettier-plugin-sql\": \"0.18.1\",\n \"prettier-plugin-tailwindcss\": \"0.6.9\",\n \"prettier-plugin-toml\": \"2.0.1\"\n },\n \"devDependencies\": {\n \"@2digits/tsconfig\": \"workspace:*\",\n \"eslint\": \"9.17.0\",\n \"prettier\": \"3.4.2\",\n \"tsup\": \"8.3.5\",\n \"typescript\": \"5.7.2\"\n }\n}\n","import type { PrettierConfig } from '@ianvs/prettier-plugin-sort-imports';\nimport { getPackageInfoSync } from 'local-pkg';\nimport type { PluginEmbedOptions } from 'prettier-plugin-embed';\nimport type { SqlFormatOptions } from 'prettier-plugin-sql';\nimport type { PluginOptions } from 'prettier-plugin-tailwindcss';\nimport type { PrettierTaploOptions } from 'prettier-plugin-toml';\n\nimport { devDependencies } from '../package.json';\n\nconst semverRegex = /^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$/;\nconst localTypescriptVersion = devDependencies.typescript.replace(semverRegex, '');\n\ntype PrettierConfigWithPlugins = PrettierConfig &\n PluginOptions &\n SqlFormatOptions &\n PrettierTaploOptions &\n PluginEmbedOptions;\n\n/**\n * Define a Prettier configuration with plugins.\n *\n * @template TConfig The Prettier configuration with plugins.\n * @param config The Prettier configuration with plugins.\n * @returns The Prettier configuration with plugins.\n */\nexport function defineConfig<TConfig extends PrettierConfigWithPlugins>(config: TConfig): TConfig {\n return config;\n}\n\n/**\n * Get the version of the locally installed TypeScript.\n *\n * @returns The local TypeScript version, or the version specified in this\n * [package.json](../package.json) file if TypeScript is not installed locally.\n */\nexport function getTypescriptVersion(): string {\n const ts = getPackageInfoSync('typescript');\n\n return ts?.version ?? localTypescriptVersion;\n}\n","import { tailwindFunctions } from '@2digits/constants';\n\nimport { defineConfig, getTypescriptVersion } from './utils';\n\nexport default defineConfig({\n printWidth: 100,\n trailingComma: 'all',\n bracketSameLine: true,\n singleQuote: true,\n\n importOrder: [\n '<BUILTIN_MODULES>',\n '',\n '^(react/(.*)$)|^(react$)',\n '^(react-native/(.*)$)|^(react-native$)',\n '',\n '^(next/(.*)$)|^(next$)',\n '',\n '^(expo/(.*)$)|^(expo$)|^(expo-(.*)$)|^(@expo/(.*)$)',\n '',\n '<THIRD_PARTY_MODULES>',\n '',\n '^@2digits/',\n '^@mod/',\n '',\n '^@/',\n '^(@[A-Z](.*))',\n '',\n '.json$',\n '',\n '^[./]',\n ],\n importOrderTypeScriptVersion: getTypescriptVersion(),\n\n tailwindFunctions,\n\n language: 'sqlite',\n keywordCase: 'upper',\n\n plugins: [\n require.resolve('prettier-plugin-toml'),\n require.resolve('@prettier/plugin-xml'),\n require.resolve('@ianvs/prettier-plugin-sort-imports'),\n require.resolve('prettier-plugin-jsdoc'),\n require.resolve('prettier-plugin-sql'),\n require.resolve('prettier-plugin-embed'),\n require.resolve('prettier-plugin-tailwindcss'),\n ],\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/prettier-config",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"public": true,
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"prettier": "3.4.
|
|
30
|
+
"prettier": "3.4.2"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ianvs/prettier-plugin-sort-imports": "4.4.0",
|
|
34
34
|
"@prettier/plugin-xml": "3.4.1",
|
|
35
35
|
"local-pkg": "0.5.1",
|
|
36
36
|
"prettier-plugin-embed": "0.4.15",
|
|
37
|
-
"prettier-plugin-jsdoc": "1.3.
|
|
37
|
+
"prettier-plugin-jsdoc": "1.3.2",
|
|
38
38
|
"prettier-plugin-sql": "0.18.1",
|
|
39
39
|
"prettier-plugin-tailwindcss": "0.6.9",
|
|
40
40
|
"prettier-plugin-toml": "2.0.1",
|
|
41
41
|
"@2digits/constants": "0.3.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"eslint": "9.
|
|
45
|
-
"prettier": "3.4.
|
|
44
|
+
"eslint": "9.17.0",
|
|
45
|
+
"prettier": "3.4.2",
|
|
46
46
|
"tsup": "8.3.5",
|
|
47
47
|
"typescript": "5.7.2",
|
|
48
48
|
"@2digits/tsconfig": "0.6.2"
|