@vef-framework/dev 1.0.135 → 2.0.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.
Files changed (197) hide show
  1. package/README +15 -0
  2. package/dist/cjs/index.cjs +23 -0
  3. package/dist/cjs/lint/commitlint.cjs +14 -0
  4. package/dist/cjs/lint/eslint.cjs +981 -0
  5. package/dist/cjs/lint/index.cjs +14 -0
  6. package/dist/cjs/lint/stylelint.cjs +92 -0
  7. package/dist/cjs/vite/chunks.cjs +42 -0
  8. package/dist/cjs/vite/config.cjs +83 -0
  9. package/dist/cjs/vite/constants.cjs +30 -0
  10. package/dist/cjs/vite/define.cjs +26 -0
  11. package/dist/cjs/vite/index.cjs +11 -0
  12. package/dist/cjs/vite/plugin-app-config.cjs +38 -0
  13. package/dist/cjs/vite/plugin-auto-enhance/core.cjs +147 -0
  14. package/dist/cjs/vite/plugin-auto-enhance/index.cjs +40 -0
  15. package/dist/cjs/vite/plugin-auto-enhance/plugins/index.cjs +10 -0
  16. package/dist/cjs/vite/plugin-auto-enhance/plugins/operation-column-width.cjs +229 -0
  17. package/dist/cjs/vite/plugin-conventional-config.cjs +91 -0
  18. package/dist/cjs/vite/plugin-eslint.cjs +24 -0
  19. package/dist/cjs/vite/plugin-html.cjs +216 -0
  20. package/dist/cjs/vite/plugin-icons.cjs +22 -0
  21. package/dist/cjs/vite/plugin-injection.cjs +20 -0
  22. package/dist/cjs/vite/plugin-inspect.cjs +15 -0
  23. package/dist/cjs/vite/plugin-react.cjs +80 -0
  24. package/dist/cjs/vite/plugin-router.cjs +49 -0
  25. package/dist/cjs/vite/plugin-stylelint.cjs +24 -0
  26. package/dist/cjs/vite/plugin-svgr.cjs +59 -0
  27. package/dist/cjs/vite/plugin-tsconfig-paths.cjs +14 -0
  28. package/dist/cjs/vite/postcss.cjs +13 -0
  29. package/dist/es/index.js +8 -0
  30. package/dist/es/lint/commitlint.js +10 -0
  31. package/dist/es/lint/eslint.js +958 -0
  32. package/dist/es/lint/index.js +4 -0
  33. package/dist/es/lint/stylelint.js +88 -0
  34. package/dist/es/vite/chunks.js +38 -0
  35. package/dist/es/vite/config.js +79 -0
  36. package/dist/es/vite/constants.js +15 -0
  37. package/dist/es/vite/define.js +22 -0
  38. package/dist/es/vite/index.js +3 -0
  39. package/dist/es/vite/plugin-app-config.js +34 -0
  40. package/dist/es/vite/plugin-auto-enhance/core.js +143 -0
  41. package/dist/es/vite/plugin-auto-enhance/index.js +32 -0
  42. package/dist/es/vite/plugin-auto-enhance/plugins/index.js +2 -0
  43. package/dist/es/vite/plugin-auto-enhance/plugins/operation-column-width.js +225 -0
  44. package/dist/es/vite/plugin-conventional-config.js +87 -0
  45. package/dist/es/vite/plugin-eslint.js +20 -0
  46. package/dist/es/vite/plugin-html.js +212 -0
  47. package/dist/es/vite/plugin-icons.js +17 -0
  48. package/dist/es/vite/plugin-injection.js +16 -0
  49. package/dist/es/vite/plugin-inspect.js +11 -0
  50. package/dist/es/vite/plugin-react.js +76 -0
  51. package/dist/es/vite/plugin-router.js +45 -0
  52. package/dist/es/vite/plugin-stylelint.js +20 -0
  53. package/dist/es/vite/plugin-svgr.js +55 -0
  54. package/dist/es/vite/plugin-tsconfig-paths.js +10 -0
  55. package/dist/es/vite/postcss.js +9 -0
  56. package/dist/types/index.d.ts +2 -0
  57. package/dist/types/lint/commitlint.d.ts +8 -0
  58. package/dist/types/lint/eslint.d.ts +2 -0
  59. package/dist/types/lint/index.d.ts +3 -0
  60. package/dist/types/lint/stylelint.d.ts +7 -0
  61. package/dist/types/vite/chunks.d.ts +10 -0
  62. package/dist/types/vite/config.d.ts +39 -0
  63. package/{types → dist/types/vite}/constants.d.ts +4 -0
  64. package/dist/types/vite/define.d.ts +12 -0
  65. package/dist/types/vite/index.d.ts +3 -0
  66. package/{types → dist/types/vite}/plugin-app-config.d.ts +2 -1
  67. package/dist/types/vite/plugin-auto-enhance/core.d.ts +35 -0
  68. package/dist/types/vite/plugin-auto-enhance/index.d.ts +30 -0
  69. package/dist/types/vite/plugin-auto-enhance/plugins/index.d.ts +1 -0
  70. package/dist/types/vite/plugin-auto-enhance/plugins/operation-column-width.d.ts +14 -0
  71. package/dist/types/vite/plugin-auto-enhance/types.d.ts +83 -0
  72. package/{types → dist/types/vite}/plugin-conventional-config.d.ts +2 -2
  73. package/dist/types/vite/plugin-eslint.d.ts +7 -0
  74. package/{types → dist/types/vite}/plugin-html.d.ts +1 -1
  75. package/dist/types/vite/plugin-icons.d.ts +8 -0
  76. package/{types → dist/types/vite}/plugin-injection.d.ts +1 -1
  77. package/{types → dist/types/vite}/plugin-inspect.d.ts +2 -1
  78. package/dist/types/vite/plugin-react.d.ts +25 -0
  79. package/{types → dist/types/vite}/plugin-router.d.ts +2 -2
  80. package/dist/types/vite/plugin-stylelint.d.ts +7 -0
  81. package/dist/types/vite/plugin-svgr.d.ts +7 -0
  82. package/{types → dist/types/vite}/plugin-tsconfig-paths.d.ts +2 -1
  83. package/dist/types/vite/postcss.d.ts +9 -0
  84. package/package.json +97 -74
  85. package/{tsconfig.app.json → tsconfig.base.json} +13 -9
  86. package/{client.d.ts → types.d.ts} +0 -6
  87. package/README.md +0 -25
  88. package/bin/hoist-patterns.js +0 -1
  89. package/bin/vef.js +0 -18
  90. package/cjs/cli.cjs +0 -5
  91. package/cjs/commitlint-config.cjs +0 -2
  92. package/cjs/config.cjs +0 -2
  93. package/cjs/constants.cjs +0 -2
  94. package/cjs/eslint-config.cjs +0 -2
  95. package/cjs/index.cjs +0 -2
  96. package/cjs/json/monaco.nls.json.cjs +0 -15920
  97. package/cjs/json/monaco.theme.github-light.json.cjs +0 -349
  98. package/cjs/modules.d.cjs +0 -2
  99. package/cjs/plugin-app-config.cjs +0 -2
  100. package/cjs/plugin-conventional-config.cjs +0 -12
  101. package/cjs/plugin-eslint.cjs +0 -2
  102. package/cjs/plugin-html.cjs +0 -17
  103. package/cjs/plugin-icons.cjs +0 -2
  104. package/cjs/plugin-initialization.cjs +0 -135
  105. package/cjs/plugin-injection.cjs +0 -3
  106. package/cjs/plugin-inspect.cjs +0 -2
  107. package/cjs/plugin-monaco-nls.cjs +0 -80
  108. package/cjs/plugin-react-swc.cjs +0 -2
  109. package/cjs/plugin-router.cjs +0 -11
  110. package/cjs/plugin-stylelint.cjs +0 -2
  111. package/cjs/plugin-svgr.cjs +0 -2
  112. package/cjs/plugin-tailwind.cjs +0 -2
  113. package/cjs/plugin-tailwindcss.cjs +0 -3
  114. package/cjs/plugin-tsconfig-paths.cjs +0 -2
  115. package/cjs/plugin-visualizer.cjs +0 -2
  116. package/cjs/plugin-webfont.cjs +0 -2
  117. package/cjs/stylelint-config.cjs +0 -2
  118. package/cjs/tailwind-config.cjs +0 -2
  119. package/cjs/types.cjs +0 -2
  120. package/esm/cli.js +0 -5
  121. package/esm/commitlint-config.js +0 -2
  122. package/esm/config.js +0 -2
  123. package/esm/constants.js +0 -2
  124. package/esm/eslint-config.js +0 -2
  125. package/esm/index.js +0 -2
  126. package/esm/json/monaco.nls.json.js +0 -15920
  127. package/esm/json/monaco.theme.github-light.json.js +0 -349
  128. package/esm/modules.d.js +0 -2
  129. package/esm/plugin-app-config.js +0 -2
  130. package/esm/plugin-conventional-config.js +0 -12
  131. package/esm/plugin-eslint.js +0 -2
  132. package/esm/plugin-html.js +0 -17
  133. package/esm/plugin-icons.js +0 -2
  134. package/esm/plugin-initialization.js +0 -135
  135. package/esm/plugin-injection.js +0 -3
  136. package/esm/plugin-inspect.js +0 -2
  137. package/esm/plugin-monaco-nls.js +0 -80
  138. package/esm/plugin-react-swc.js +0 -2
  139. package/esm/plugin-router.js +0 -11
  140. package/esm/plugin-stylelint.js +0 -2
  141. package/esm/plugin-svgr.js +0 -2
  142. package/esm/plugin-tailwind.js +0 -2
  143. package/esm/plugin-tailwindcss.js +0 -3
  144. package/esm/plugin-tsconfig-paths.js +0 -2
  145. package/esm/plugin-visualizer.js +0 -2
  146. package/esm/plugin-webfont.js +0 -2
  147. package/esm/stylelint-config.js +0 -2
  148. package/esm/tailwind-config.js +0 -2
  149. package/esm/types.js +0 -2
  150. package/template/.vscode/settings.json +0 -6
  151. package/template/_gitignore +0 -35
  152. package/template/_package.json +0 -43
  153. package/template/_tsconfig.json +0 -7
  154. package/template/commitlint.config.js +0 -3
  155. package/template/env/.env +0 -7
  156. package/template/env/.env.development +0 -0
  157. package/template/env/.env.production +0 -0
  158. package/template/env.d.ts +0 -1
  159. package/template/eslint.config.js +0 -3
  160. package/template/index.html +0 -0
  161. package/template/public/favicon.svg +0 -1
  162. package/template/src/main.ts +0 -145
  163. package/template/src/pages/__root.ts +0 -3
  164. package/template/src/pages/_common/access-denied.ts +0 -6
  165. package/template/src/pages/_common/login.ts +0 -8
  166. package/template/src/pages/_layout/index.tsx +0 -35
  167. package/template/src/pages/_layout/route.ts +0 -9
  168. package/template/src/pages/_layout/system/data-dictionary.tsx +0 -14
  169. package/template/src/pages/_layout/system/index.ts +0 -7
  170. package/template/src/pages/_layout/system/tenant.tsx +0 -14
  171. package/template/src/router/index.ts +0 -1
  172. package/template/style.css +0 -2
  173. package/template/stylelint.config.js +0 -3
  174. package/template/tailwind.config.js +0 -3
  175. package/template/tsconfig.app.json +0 -4
  176. package/template/tsconfig.build.json +0 -4
  177. package/template/vef.config.ts +0 -7
  178. package/tsconfig.build.json +0 -26
  179. package/types/cli.d.ts +0 -1
  180. package/types/commitlint-config.d.ts +0 -7
  181. package/types/config.d.ts +0 -38
  182. package/types/eslint-config.d.ts +0 -7
  183. package/types/index.d.ts +0 -5
  184. package/types/plugin-eslint.d.ts +0 -6
  185. package/types/plugin-icons.d.ts +0 -7
  186. package/types/plugin-initialization.d.ts +0 -7
  187. package/types/plugin-monaco-nls.d.ts +0 -15
  188. package/types/plugin-react-swc.d.ts +0 -6
  189. package/types/plugin-stylelint.d.ts +0 -6
  190. package/types/plugin-svgr.d.ts +0 -6
  191. package/types/plugin-tailwind.d.ts +0 -7
  192. package/types/plugin-tailwindcss.d.ts +0 -7
  193. package/types/plugin-visualizer.d.ts +0 -7
  194. package/types/plugin-webfont.d.ts +0 -6
  195. package/types/stylelint-config.d.ts +0 -7
  196. package/types/tailwind-config.d.ts +0 -7
  197. package/types/types.d.ts +0 -15
package/cjs/cli.cjs DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- "use strict";var x=Object.create;var k=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var O=(i,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of q(e))!A.call(i,d)&&d!==a&&k(i,d,{get:()=>e[d],enumerable:!(n=j(e,d))||n.enumerable});return i};var S=(i,e,a)=>(a=i!=null?x(I(i)):{},O(e||!i||!i.__esModule?k(a,"default",{value:i,enumerable:!0}):a,i));var l=require("chalk"),r=require("commander"),c=require("consola"),f=require("execa"),$=require("fs-extra"),t=require("node:path"),p=require("node:process"),P=require("ora"),R=require("prompts"),v=require("vite");const{exists:w,readJsonSync:L,writeFile:y,readJson:b,writeJson:_,copy:T,readFile:M,move:h}=$,o=p.cwd();function C(){const i=t.resolve(void 0,"../package.json");return L(i,{encoding:"utf-8"}).version}const m=C();async function V(){return(await import("../bin/hoist-patterns.js")).default}function E(i,e){return e||(i==="build"?"production":"development")}async function F(i,e,a){const n=t.resolve(o,i||"vef.config.ts");if(!await w(n))throw c.error(`Config file not found: ${n}, it is required for VEF Framework`),new Error(`Config file not found: ${n}`);return(await v.loadConfigFromFile({command:e,mode:a},n))?.config??{}}function g(i,e){c.error(`Error during ${i}:`,e),p.exit(1)}r.program.name("vef").description(l.magenta("VEF Framework CLI")).addHelpText("before",l.blue("VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus.")).addHelpText("before",l.bgGreenBright(`Version: ${m}`)).version(m).option("--mode <mode>","Specify running mode (will override default NODE_ENV)"),r.program.command("dev").description("Start dev server").option("-c, --config <file>","Specify vef config file","vef.config.ts").action(async i=>{try{const e=E("serve",r.program.opts().mode);p.env.NODE_ENV=e,p.env.VEF_FRAMEWORK_VERSION=m;const a=await F(i.config,"serve",e),n=await v.createServer({...a,mode:e,configFile:!1,logLevel:"info"});await n.listen(),n.printUrls(),n.bindCLIShortcuts({print:!0})}catch(e){g("dev server startup",e)}}),r.program.command("build").description("Build for production").option("-c, --config <file>","Specify vef config file","vef.config.ts").action(async i=>{try{const e=E("build",r.program.opts().mode);p.env.NODE_ENV=e,p.env.VEF_FRAMEWORK_VERSION=m;const a=await F(i.config,"build",e);await v.build({...a,mode:e,configFile:!1,logLevel:"info"}),c.success("Build completed successfully!")}catch(e){g("build",e)}}),r.program.command("preview").description("Preview the build").option("-c, --config <file>","Specify vef config file","vef.config.ts").action(async i=>{try{const e=E("build",r.program.opts().mode);p.env.NODE_ENV=e,p.env.VEF_FRAMEWORK_VERSION=m;const a=await F(i.config,"build",e),n=await v.preview({...a,mode:e,configFile:!1,logLevel:"info"});n.printUrls(),n.bindCLIShortcuts({print:!0})}catch(e){g("preview server startup",e)}}),r.program.command("prepare").description("Sets up the project for development mode").action(async()=>{await w(t.resolve(o,".husky"))||((await import("husky")).default(),c.success("Successfully set up husky")),await w(t.resolve(o,".husky/pre-commit"))||(await y(t.resolve(o,".husky/pre-commit"),"pnpm dlx lint-staged"),c.success("Successfully set up pre-commit hook")),await w(t.resolve(o,".husky/commit-msg"))||(await y(t.resolve(o,".husky/commit-msg"),"pnpm dlx commitlint --edit $1"),c.success("Successfully set up commit-msg hook"));const i=await b(t.resolve(o,"package.json"),{encoding:"utf-8"}),{scripts:e}=i;let a=!1;e.prepare||(e.prepare="vef prepare",a=!0),a&&(await _(t.resolve(o,"package.json"),i,{encoding:"utf-8",spaces:2}),c.success("Successfully set up prepare script and lint-staged"))}),r.program.command("install").description("Install the dependencies of the project").action(async()=>{const i=await V();await f.execa({cwd:o,stdio:"inherit"})("pnpm",["install",...i.flatMap(e=>["--public-hoist-pattern",e])])}),r.program.command("update").description("Update the dependencies of the vef framework to latest version").action(async()=>{await f.execa({cwd:o,stdio:"inherit"})("pnpm",["update","@vef-framework/*"])}),r.program.command("init").description("Initialize an empty VEF project").action(async()=>{console.log(l.blue(`Welcome to use the cli tool of VEF Framework
3
- `));const i=await R([{type:"text",name:"appName",message:"What is the name of your app?",validate:s=>typeof s=="string"&&s.trim().length>0?!0:"App name is required"},{type:"text",name:"appTitle",message:"What is the title of your app?",validate:s=>typeof s=="string"&&s.trim().length>0?!0:"App title is required"}]),{appName:e,appTitle:a}=i;await T(t.resolve(void 0,"../template"),t.resolve(o,e)),c.success("Successfully copied template files"),await h(t.resolve(o,e,"_gitignore"),t.resolve(o,e,".gitignore")),await h(t.resolve(o,e,"_tsconfig.json"),t.resolve(o,e,"tsconfig.json")),await h(t.resolve(o,e,"_package.json"),t.resolve(o,e,"package.json"));const n=await b(t.resolve(o,e,"package.json"),{encoding:"utf-8"});n.name=e,await _(t.resolve(o,e,"package.json"),n,{encoding:"utf-8",spaces:2}),c.success("Successfully replaced name and title in package.json");const d=(await M(t.resolve(o,e,"env/.env"),{encoding:"utf-8"})).replace(/APP_NAME=.*$/m,`APP_NAME=${e}`).replace(/APP_TITLE=.*$/m,`APP_TITLE=${a}`);await y(t.resolve(o,e,"env/.env"),d),c.success("Successfully replaced name and title in .env file");const u=P("Initializing git repository...").start();try{await f.execa`git --version`,await f.execa({cwd:t.resolve(o,e)})`git init`,u.succeed("Successfully initialized git repository")}catch(s){u.fail("Failed to initialize git repository"),g("init",s)}u.start("Installing dependencies...");try{const s=await V();await f.execa({cwd:t.resolve(o,e)})("pnpm",["install",...s.flatMap(N=>["--public-hoist-pattern",N])]),u.succeed("Successfully installed dependencies")}catch(s){u.fail("Failed to install dependencies"),g("init",s)}c.success(l.green(`
4
- 🎉🎉🎉 VEF project created successfully !`)),console.log(l.blue(`
5
- ✨ Next steps:`)),console.log(l.cyan(` cd ${e}`)),console.log(l.cyan(" pnpm dev"))}),r.program.parse();
@@ -1,2 +0,0 @@
1
- "use strict";
2
- "use strict";function t(){return{extends:["@commitlint/config-conventional"],formatter:"@commitlint/format"}}exports.defineCommitlintConfig=t;
package/cjs/config.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- "use strict";var g=require("consola"),s=require("fs-extra"),p=require("node:path"),r=require("vite"),n=require("./constants.cjs"),v=require("./plugin-app-config.cjs"),P=require("./plugin-conventional-config.cjs"),_=require("./plugin-eslint.cjs"),q=require("./plugin-html.cjs"),I=require("./plugin-icons.cjs"),f=require("./plugin-initialization.cjs"),E=require("./plugin-injection.cjs"),d=require("./plugin-inspect.cjs"),D=require("./plugin-react-swc.cjs"),T=require("./plugin-router.cjs"),C=require("./plugin-stylelint.cjs"),U=require("./plugin-svgr.cjs"),V=require("./plugin-tailwind.cjs"),b=require("./plugin-tailwindcss.cjs"),B=require("./plugin-tsconfig-paths.cjs"),R=require("./plugin-visualizer.cjs"),S=require("./plugin-webfont.cjs");const{readJson:w}=s;function A({projectDir:e,proxies:a,visualizer:t=!1,routerHistory:u="browser",autoCodeSplitting:l=!0}){return r.defineConfig(async({mode:o})=>{const i=r.loadEnv(o,n.ENV_DIR,n.ENV_BUILD_PREFIX);Object.keys(i).length>0&&(g.info("Loaded environment variables:"),console.table(i));const c=await L(e);return{plugins:[d.createInspectPlugin(),P.createConventionalConfigPlugin({appVersion:c,projectDir:e,basePublicPath:i.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:i.VEF_BUILD_OUTPUT_DIR,serverPort:Number(i.VEF_BUILD_SERVER_PORT),proxies:a}),D.createReactSwcPlugin(),B.createTsconfigPathsPlugin(e),q.createHtmlPlugin(),V.createTailwindPlugin(),b.createTailwindcssPlugin(),E.createInjectionPlugin(),v.createAppConfigPlugin({basePublicPath:i.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:i.VEF_BUILD_OUTPUT_DIR,appName:i.VEF_APP_NAME}),f.createInitializationPlugin(),I.createIconsPlugin(e),U.createSvgrPlugin(),S.createWebfontPlugin(),T.createRouterPlugin(e,u,l),_.createEslintPlugin(),C.createStylelintPlugin(),t?R.createVisualizerPlugin(e):void 0].filter(Boolean)}})}async function L(e){return(await w(p.resolve(e,"package.json"),{encoding:"utf-8"})).version}exports.defineConfig=A;
package/cjs/constants.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- "use strict";const _="public",E="env",R="assets",P="VEF_APP_",D="VEF_BUILD_",I="src",A="dist",S=3833,T="APP",U="pages",F="router";exports.ASSETS_DIR=R,exports.DEFAULT_APP_NAME=T,exports.DEFAULT_OUTPUT_DIR=A,exports.DEFAULT_SERVER_PORT=3833,exports.ENV_APP_PREFIX=P,exports.ENV_BUILD_PREFIX=D,exports.ENV_DIR=E,exports.PAGES_DIR=U,exports.PUBLIC_DIR=_,exports.ROUTER_DIR=F,exports.SRC_DIR=I;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- "use strict";var r=require("@antfu/eslint-config"),e=require("@tanstack/eslint-plugin-router");function o(){return r.antfu({ignores:["**/node_modules","**/dist","**/public"],stylistic:{indent:2,jsx:!0,quotes:"double",semi:!0,overrides:{"style/line-comment-position":["error",{position:"above"}],"style/jsx-self-closing-comp":["error",{component:!0,html:!0}],"style/jsx-newline":["error",{prevent:!0,allowMultilines:!0}],"style/jsx-props-no-multi-spaces":"error","style/jsx-sort-props":["error",{callbacksLast:!0,shorthandFirst:!0,shorthandLast:!1,multiline:"last",ignoreCase:!0,noSortAlphabetically:!1,reservedFirst:["key","ref"]}],"style/newline-per-chained-call":["error",{ignoreChainWithDepth:3}],"style/object-property-newline":"error","style/brace-style":["error","1tbs"],"style/arrow-parens":["error","as-needed"],"style/multiline-comment-style":["error","separate-lines",{checkJSDoc:!1}],"style/implicit-arrow-linebreak":["error","beside"],"style/no-extra-semi":"error","style/array-element-newline":["error",{consistent:!0,multiline:!0,minItems:7}],"style/function-call-argument-newline":["error","consistent"],"style/padding-line-between-statements":["error",{blankLine:"always",prev:"*",next:["block","multiline-block-like","type","interface","enum","function","function-overload"]},{blankLine:"always",prev:["block","multiline-block-like","type","interface","enum","function","function-overload"],next:"*"}],"style/jsx-pascal-case":["error",{allowAllCaps:!1,allowLeadingUnderscore:!1,allowNamespace:!1,ignore:[]}],"style/switch-colon-spacing":["error",{before:!1,after:!0}],"style/object-curly-newline":["error",{ObjectExpression:{multiline:!0,consistent:!0,minProperties:3},ObjectPattern:{multiline:!0,consistent:!0,minProperties:3},ImportDeclaration:{consistent:!0,multiline:!0},ExportDeclaration:{consistent:!0,multiline:!0}}],"style/no-extra-parens":["error","all",{nestedBinaryExpressions:!1,ternaryOperandBinaryExpressions:!1,ignoreJSX:"multi-line"}],"style/quote-props":["error","as-needed"]}},javascript:{overrides:{"no-duplicate-imports":"off","prefer-object-spread":"error","func-style":["error","declaration",{allowArrowFunctions:!0}],curly:["error","all"],"no-useless-escape":"error","no-useless-concat":"error","no-unused-private-class-members":"error","no-unsafe-optional-chaining":"error","no-dupe-else-if":"error","no-eq-null":"error","no-extra-label":"error","no-negated-condition":"error","no-invalid-this":"error","arrow-body-style":["error","as-needed"],"prefer-object-has-own":"error","prefer-numeric-literals":"error","prefer-named-capture-group":"error","prefer-destructuring":"error","object-shorthand":"error","require-atomic-updates":"error","require-await":"error",camelcase:["error",{properties:"always",ignoreGlobals:!0}],"no-promise-executor-return":["error",{allowVoid:!0}],"sort-imports":"off","no-console":"off"}},typescript:{overrides:{"ts/no-unused-expressions":["error",{enforceForJSX:!0}],"ts/no-unused-vars":["error",{args:"after-used",caughtErrors:"all",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0}],"ts/array-type":["error",{default:"array-simple",readonly:"array-simple"}],"ts/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"ts/consistent-type-definitions":["error","interface"],"ts/max-params":["error",{max:5}]}},react:{overrides:{"react-naming-convention/component-name":["error","PascalCase"],"react-naming-convention/filename-extension":["error",{allow:"as-needed",extensions:[".tsx"]}],"react-hooks-extra/no-redundant-custom-hook":"error","react-hooks-extra/no-unnecessary-use-memo":"error","react-hooks-extra/no-unnecessary-use-callback":"error","react-naming-convention/use-state":"error","react-refresh/only-export-components":"error","react-hooks/exhaustive-deps":["error",{additionalHooks:"^use(Deep|Shallow)"}],"react/no-clone-element":"off","react/no-class-component":"error","react/no-children-prop":"off","react/no-children-to-array":"off","react/no-children-for-each":"off","react/no-children-count":"off"}},vue:!1,jsx:!0,regexp:!0,jsonc:!0,yaml:!0,toml:!0,markdown:{overrides:{"markdown/fenced-code-language":"error","markdown/no-duplicate-headings":"error","markdown/no-empty-links":"error"}},test:!0,formatters:{markdown:"prettier",prettierOptions:{singleQuote:!1,semi:!0,tabWidth:2,useTabs:!1,trailingComma:"all",endOfLine:"lf",printWidth:160,proseWrap:"never",arrowParens:"avoid",htmlWhitespaceSensitivity:"strict",bracketSameLine:!0,bracketSpacing:!0,quoteProps:"as-needed",jsxSingleQuote:!1,singleAttributePerLine:!1}}},{rules:{"unicorn/filename-case":["error",{case:"kebabCase",ignore:["README.md"]}],"unicorn/prefer-date-now":"error","unicorn/prefer-string-trim-start-end":"error","unicorn/prefer-string-raw":"error","unicorn/prefer-object-from-entries":"error","unicorn/prefer-default-parameters":"error","unicorn/prefer-array-find":"error","unicorn/prefer-array-flat":"error","unicorn/prefer-array-flat-map":"error","unicorn/prefer-array-index-of":"error","unicorn/prefer-array-some":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/no-array-push-push":"error","unicorn/no-empty-file":"error","unicorn/no-array-for-each":"error","unicorn/no-for-loop":"error","unicorn/no-unnecessary-await":"error","unicorn/no-unnecessary-polyfills":"error","unicorn/no-useless-undefined":"error","unicorn/no-useless-switch-case":"error","unicorn/no-useless-spread":"error","unicorn/no-console-spaces":"error","unicorn/no-unused-properties":"error","unicorn/no-useless-promise-resolve-reject":"error","import/order":"off","import/first":"error","import/export":"error","import/no-named-as-default":"off","import/no-named-default":"off","perfectionist/sort-imports":["error",{type:"natural"}],"perfectionist/sort-exports":["error",{type:"natural"}],"perfectionist/sort-named-imports":["error",{type:"natural",groupKind:"values-first"}],"perfectionist/sort-named-exports":["error",{type:"natural",groupKind:"values-first"}],"eslint-comments/no-unlimited-disable":"off"}},{ignores:["**/*.md","**/*.md/*.{ts,tsx}","**/src/pages/__root.{ts,tsx}"],rules:{"react-naming-convention/filename":["error",{rule:"kebab-case"}]}},...e.configs["flat/recommended"])}exports.defineEslintConfig=o;
package/cjs/index.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- "use strict";var i=require("./commitlint-config.cjs"),n=require("./config.cjs"),e=require("./eslint-config.cjs"),f=require("./stylelint-config.cjs"),t=require("./tailwind-config.cjs");exports.defineCommitlintConfig=i.defineCommitlintConfig,exports.defineConfig=n.defineConfig,exports.defineEslintConfig=e.defineEslintConfig,exports.defineStylelintConfig=f.defineStylelintConfig,exports.defineTailwindConfig=t.defineTailwindConfig;