@vef-framework-react/dev 2.1.5 → 2.1.7

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 (32) hide show
  1. package/dist/cjs/_internal/__vite-browser-external.cjs +1 -0
  2. package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -1
  3. package/dist/cjs/lint/commitlint.cjs +1 -1
  4. package/dist/cjs/lint/custom-react-rules.cjs +1 -0
  5. package/dist/cjs/lint/eslint.cjs +1 -1
  6. package/dist/cjs/lint/index.cjs +1 -1
  7. package/dist/cjs/lint/stylelint.cjs +1 -1
  8. package/dist/cjs/vite/chunks.cjs +1 -1
  9. package/dist/cjs/vite/config.cjs +1 -1
  10. package/dist/cjs/vite/constants.cjs +1 -1
  11. package/dist/cjs/vite/define.cjs +3 -3
  12. package/dist/cjs/vite/plugin-app-config.cjs +1 -1
  13. package/dist/cjs/vite/plugin-auto-enhance/plugins/index.cjs +1 -1
  14. package/dist/cjs/vite/plugin-conventional-config.cjs +1 -1
  15. package/dist/cjs/vite/plugin-eslint.cjs +1 -1
  16. package/dist/cjs/vite/plugin-icons.cjs +1 -1
  17. package/dist/cjs/vite/plugin-injection.cjs +1 -1
  18. package/dist/cjs/vite/plugin-inspect.cjs +1 -1
  19. package/dist/cjs/vite/plugin-react.cjs +1 -1
  20. package/dist/cjs/vite/plugin-stylelint.cjs +1 -1
  21. package/dist/cjs/vite/plugin-svgr.cjs +1 -1
  22. package/dist/cjs/vite/plugin-tsconfig-paths.cjs +1 -1
  23. package/dist/cjs/vite/postcss.cjs +1 -1
  24. package/dist/cli/index.js +1 -1
  25. package/dist/es/_internal/__vite-browser-external.js +8 -0
  26. package/dist/es/_internal/_rolldown/runtime.js +31 -0
  27. package/dist/es/lint/custom-react-rules.js +81 -0
  28. package/dist/es/lint/eslint.js +70 -68
  29. package/dist/types/lint/{local-react-plugin.d.ts → custom-react-rules.d.ts} +1 -0
  30. package/package.json +23 -21
  31. package/dist/cjs/lint/local-react-plugin.cjs +0 -1
  32. package/dist/es/lint/local-react-plugin.js +0 -42
@@ -0,0 +1 @@
1
+ const r=require("./_rolldown/runtime.cjs");var t=r.__commonJSMin(((n,e)=>{e.exports={}}));Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t()}});
@@ -1 +1 @@
1
- var o=Object.create,O=Object.defineProperty,b=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,P=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,j=(e,r,_,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(var p=u(r),a=0,c=p.length,t;a<c;a++)t=p[a],!v.call(e,t)&&t!==_&&O(e,t,{get:(l=>r[l]).bind(null,t),enumerable:!(n=b(r,t))||n.enumerable});return e},f=(e,r,_)=>(_=e!=null?o(P(e)):{},j(r||!e||!e.__esModule?O(_,"default",{value:e,enumerable:!0}):_,e));exports.__toESM=f;
1
+ var O=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,i=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,P=(e,r)=>()=>(e&&(r=e(e=0)),r),g=(e,r)=>()=>(r||(e((r={exports:{}}).exports,r),e=null),r.exports),M=(e,r)=>{let t={};for(var o in e)a(t,o,{get:e[o],enumerable:!0});return r||a(t,Symbol.toStringTag,{value:"Module"}),t},u=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(var n=b(r),l=0,v=n.length,_;l<v;l++)_=n[l],!p.call(e,_)&&_!==t&&a(e,_,{get:(c=>r[c]).bind(null,_),enumerable:!(o=s(r,_))||o.enumerable});return e},S=(e,r,t)=>(t=e!=null?O(i(e)):{},u(r||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)),j=e=>p.call(e,"module.exports")?e["module.exports"]:u(a({},"__esModule",{value:!0}),e);exports.__commonJSMin=g;exports.__esmMin=P;exports.__exportAll=M;exports.__toCommonJS=j;exports.__toESM=S;
@@ -1 +1 @@
1
- var n=["@commitlint/config-conventional"],i="@commitlint/format";function t(){return{extends:[...n],formatter:i}}exports.defineCommitlintConfig=t;
1
+ const e=require("../_internal/_rolldown/runtime.cjs");var i=["@commitlint/config-conventional"],n="@commitlint/format";function t(){return{extends:[...i],formatter:n}}exports.defineCommitlintConfig=t;
@@ -0,0 +1 @@
1
+ const x=require("../_internal/_rolldown/runtime.cjs"),a=require("../_internal/.pnpm/index.cjs");function p(){return t=>({JSXAttribute(n){const{value:e}=n;e?.type==="JSXExpressionContainer"&&e.expression?.type==="Literal"&&e.expression.value===!0&&t.report({fix:r=>r.removeRange([n.name.range[1],e.range[1]]),message:"Use shorthand boolean attribute instead of `={true}`.",node:n})}})}function l(){return t=>({JSXElement(n){const e=n.openingElement;if(!e)return;const{name:r}=e;(r.type==="JSXIdentifier"&&r.name==="Fragment"||r.type==="JSXMemberExpression"&&r.object?.name==="React"&&r.property?.name==="Fragment")&&e.attributes.length===0&&t.report({message:"Use shorthand `<>...</>` instead of `<Fragment>...</Fragment>`.",node:n})}})}function u(){return t=>({JSXText(n){if(!n.value.endsWith("$"))return;const{parent:e}=n;if(!e?.children)return;const r=e.children.indexOf(n);e.children[r+1]?.type==="JSXExpressionContainer"&&t.report({message:"Unexpected `$` before JSX expression. Use `{...}` instead of `${...}`.",node:n})}})}var c=a.build().use(p).use(l).use(u).getConfig();function f(t){return t!==null&&typeof t=="object"&&"type"in t&&t.type==="JSXOpeningElement"}var g={create(t){const e=(t.options[0]??{}).ignoreCase??!1;return{JSXOpeningElement(r){if(!f(r))return;const i={};for(const s of r.attributes){if(s.type==="JSXSpreadAttribute")continue;let{name:o}=s.name;if(typeof o=="string"){if(e&&(o=o.toLowerCase()),Object.hasOwn(i,o)){t.report({messageId:"noDuplicateProps",node:s});continue}i[o]=!0}}}}},meta:{docs:{description:"Disallow duplicate properties in JSX."},messages:{noDuplicateProps:"No duplicate props allowed."},schema:[{additionalProperties:!1,properties:{ignoreCase:{type:"boolean"}},type:"object"}],type:"problem"}},m={rules:{"jsx-no-duplicate-props":g}},d={"local-react/jsx-no-duplicate-props":"error"};exports.kitConfig=c;exports.localReactPlugin=m;exports.localReactRules=d;
@@ -1 +1 @@
1
- const e=require("../_internal/_rolldown/runtime.cjs"),S=require("./local-react-plugin.cjs");let s=require("@eslint-community/eslint-plugin-eslint-comments/configs");s=e.__toESM(s);let i=require("@eslint-react/eslint-plugin");i=e.__toESM(i);let a=require("@eslint/js");a=e.__toESM(a);let l=require("@stylistic/eslint-plugin");l=e.__toESM(l);let c=require("@tanstack/eslint-plugin-query");c=e.__toESM(c);let u=require("@tanstack/eslint-plugin-router");u=e.__toESM(u);let p=require("eslint-config-flat-gitignore");p=e.__toESM(p);let f=require("eslint-plugin-antfu");f=e.__toESM(f);let t=require("eslint-plugin-format");t=e.__toESM(t);let m=require("eslint-plugin-import-lite");m=e.__toESM(m);let d=require("eslint-plugin-jsdoc");d=e.__toESM(d);let y=require("eslint-plugin-perfectionist");y=e.__toESM(y);let g=require("eslint-plugin-react-dom");g=e.__toESM(g);let _=require("eslint-plugin-react-hooks");_=e.__toESM(_);let b=require("eslint-plugin-react-naming-convention");b=e.__toESM(b);let w=require("eslint-plugin-react-web-api");w=e.__toESM(w);let v=require("eslint-plugin-regexp");v=e.__toESM(v);let x=require("eslint-plugin-unicorn");x=e.__toESM(x);let h=require("eslint-plugin-unused-imports");h=e.__toESM(h);let R=require("eslint/config"),n=require("typescript-eslint");n=e.__toESM(n);var O={arrowParens:"avoid",bracketSameLine:!1,bracketSpacing:!0,endOfLine:"lf",htmlWhitespaceSensitivity:"strict",jsxSingleQuote:!1,objectWrap:"preserve",printWidth:120,proseWrap:"never",quoteProps:"as-needed",semi:!0,singleAttributePerLine:!1,singleQuote:!1,tabWidth:2,trailingComma:"none",useTabs:!1},L={"accessor-pairs":["error",{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!0}],"block-scoped-var":"error",camelcase:["error",{ignoreGlobals:!0,properties:"always"}],curly:["error","all"],"default-case-last":"error","dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","smart"],"func-style":["error","declaration",{allowArrowFunctions:!0}],"new-cap":["error",{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":"error","no-caller":"error","no-cond-assign":["error","always"],"no-empty":["error",{allowEmptyCatch:!0}],"no-eq-null":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implied-eval":"error","no-invalid-this":"error","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-obj-calls":"error","no-octal-escape":"error","no-promise-executor-return":["error",{allowVoid:!0}],"no-proto":"error","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-properties":["error",{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.defineProperty` instead.",property:"__defineGetter__"},{message:"Use `Object.defineProperty` instead.",property:"__defineSetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-restricted-syntax":["error","TSEnumDeclaration[const=true]","TSExportAssignment",{selector:"JSXAttribute[name.name='ref'][value.type='Literal']",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > Literal",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > TemplateLiteral",message:"Use callback refs or useRef instead of string refs."}],"no-self-compare":"error","no-sequences":"error","no-template-curly-in-string":"error","no-throw-literal":"error","no-undef-init":"error","no-unmodified-loop-condition":"error","no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-unreachable":"error","no-unreachable-loop":"error","no-unused-vars":"off","no-useless-call":"error","no-useless-computed-key":"error","no-useless-concat":"error","no-useless-rename":"error","no-useless-return":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":["error",{initialized:"never"}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{destructuring:"all",ignoreReadBeforeAssign:!0}],"prefer-destructuring":"error","prefer-exponentiation-operator":"error","prefer-named-capture-group":"error","prefer-numeric-literals":"error","prefer-object-has-own":"error","prefer-object-spread":"error","prefer-promise-reject-errors":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],"prefer-template":"error","require-atomic-updates":"error","require-await":"error","symbol-description":"error","unicode-bom":["error","never"],"use-isnan":["error",{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":["error",{requireStringLiterals:!0}],yoda:["error","never"]},M={"@typescript-eslint/array-type":["error",{default:"array-simple",readonly:"array-simple"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/max-params":["error",{max:5}],"@typescript-eslint/method-signature-style":["error","property"],"@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"always"}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-import-type-side-effects":"error","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-this-alias":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-function-type":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unused-expressions":["error",{enforceForJSX:!0}],"@typescript-eslint/no-unused-vars":"off"},P={"import-lite/consistent-type-specifier-style":["error","top-level"],"import-lite/first":"error","import-lite/newline-after-import":["error",{count:1}],"import-lite/no-duplicates":"error","import-lite/no-mutable-exports":"error","import-lite/no-named-default":"error"},A={"unicorn/consistent-empty-array-spread":"error","unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/filename-case":["error",{case:"kebabCase",ignore:["README.md","AGENTS.md","CLAUDE.md"]}],"unicorn/import-style":["error",{checkDynamicImport:!1,extendDefaultStyles:!1}],"unicorn/new-for-builtins":"error","unicorn/no-array-for-each":"error","unicorn/no-array-reduce":"off","unicorn/no-console-spaces":"error","unicorn/no-empty-file":"error","unicorn/no-for-loop":"error","unicorn/no-nested-ternary":"off","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/no-null":"off","unicorn/no-unnecessary-await":"error","unicorn/no-unnecessary-polyfills":"error","unicorn/no-unused-properties":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-spread":"error","unicorn/no-useless-switch-case":"error","unicorn/no-useless-undefined":"error","unicorn/number-literal-case":"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-date-now":"error","unicorn/prefer-default-parameters":"error","unicorn/prefer-dom-node-text-content":"error","unicorn/prefer-event-target":"off","unicorn/prefer-includes":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-object-from-entries":"error","unicorn/prefer-single-call":"error","unicorn/prefer-string-raw":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-string-trim-start-end":"error","unicorn/prefer-type-error":"error","unicorn/prevent-abbreviations":"off","unicorn/require-module-specifiers":"off","unicorn/text-encoding-identifier-case":["error",{withDash:!0}],"unicorn/throw-new-error":"error"},C={"react-dom/no-dangerously-set-innerhtml":"error","react-dom/no-dangerously-set-innerhtml-with-children":"error","react-dom/no-find-dom-node":"error","react-dom/no-flush-sync":"error","react-dom/no-hydrate":"error","react-dom/no-missing-button-type":"error","react-dom/no-missing-iframe-sandbox":"error","react-dom/no-namespace":"error","react-dom/no-render":"error","react-dom/no-render-return-value":"error","react-dom/no-script-url":"error","react-dom/no-string-style-prop":"error","react-dom/no-unknown-property":["error",{ignore:["css"]}],"react-dom/no-unsafe-iframe-sandbox":"error","react-dom/no-unsafe-target-blank":"error","react-dom/no-use-form-state":"error","react-dom/no-void-elements-with-children":"error","@eslint-react/set-state-in-effect":"off","@eslint-react/jsx-key-before-spread":"error","@eslint-react/jsx-no-comment-textnodes":"error","@eslint-react/jsx-shorthand-boolean":"error","react-naming-convention/context-name":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-children-for-each":"off","@eslint-react/no-children-map":"off","@eslint-react/no-children-to-array":"off","@eslint-react/no-class-component":"error","@eslint-react/no-clone-element":"off","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"error","@eslint-react/no-missing-component-display-name":"error","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"error","@eslint-react/no-set-state-in-component-did-update":"error","@eslint-react/no-set-state-in-component-will-update":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/no-unsafe-component-will-mount":"error","@eslint-react/no-unsafe-component-will-receive-props":"error","@eslint-react/no-unsafe-component-will-update":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/no-unused-state":"error","@eslint-react/no-use-context":"error","@eslint-react/unsupported-syntax":"error","@eslint-react/use-state":["error",{enforceAssignment:!1,enforceLazyInitialization:!0,enforceSetterName:!1}],"react-web-api/no-leaked-event-listener":"error","react-web-api/no-leaked-interval":"error","react-web-api/no-leaked-resize-observer":"error","react-web-api/no-leaked-timeout":"error"},D={"react-hooks/exhaustive-deps":["error",{additionalHooks:"^use(Deep|Shallow|Isomorphic)|^useDidUpdate"}]},T={"jsdoc/check-line-alignment":["error","always",{tags:[]}],"jsdoc/multiline-blocks":["error",{noSingleLineBlocks:!0}],"jsdoc/no-blank-blocks":"error","jsdoc/tag-lines":["error","never",{startLines:1}]},U={"antfu/consistent-chaining":"error","antfu/consistent-list-newline":"error","antfu/curly":"error","antfu/if-newline":"error","antfu/indent-unindent":"error","antfu/top-level-function":"error"},F={"unused-imports/no-unused-imports":"error","unused-imports/no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",vars:"all",varsIgnorePattern:"^_"}]},I={"perfectionist/sort-exports":["error",{order:"asc",type:"natural"}],"perfectionist/sort-imports":["error",{groups:["type-import",["type-internal","type-parent","type-sibling","type-index"],"value-builtin","value-external","value-internal",["value-parent","value-sibling","value-index"],["value-side-effect","value-side-effect-style"],"unknown"],newlinesBetween:1,order:"asc",type:"natural"}],"perfectionist/sort-named-exports":["error",{groups:["value-export","type-export"],newlinesBetween:"ignore",order:"asc",type:"natural"}],"perfectionist/sort-named-imports":["error",{groups:["value-import","type-import"],newlinesBetween:"ignore",order:"asc",type:"natural"}],"perfectionist/sort-jsx-props":["error",{type:"natural",order:"asc",ignoreCase:!0,groups:["reserved","shorthand-prop","unknown","multiline-prop","callback"],customGroups:[{groupName:"reserved",elementNamePattern:"^(key|ref)$"},{groupName:"callback",elementNamePattern:"^on.+"}]}]},J={"@stylistic/array-bracket-newline":["error",{multiline:!0}],"@stylistic/array-element-newline":["error","consistent"],"@stylistic/arrow-parens":["error","as-needed"],"@stylistic/curly-newline":["error",{consistent:!0}],"@stylistic/function-paren-newline":["error","multiline-arguments"],"@stylistic/generator-star-spacing":["error",{after:!0,before:!1}],"@stylistic/implicit-arrow-linebreak":["error","beside"],"@stylistic/jsx-max-props-per-line":["error",{maximum:{multi:1,single:5}}],"@stylistic/jsx-newline":["error",{allowMultilines:!0,prevent:!0}],"@stylistic/jsx-self-closing-comp":["error",{component:!0,html:!0}],"@stylistic/line-comment-position":["error",{position:"above"}],"@stylistic/max-statements-per-line":["error",{max:1}],"@stylistic/multiline-comment-style":["error","separate-lines",{checkJSDoc:!1}],"@stylistic/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/no-extra-parens":["error","all",{ignoreJSX:"multi-line",nestedBinaryExpressions:!1,ternaryOperandBinaryExpressions:!1}],"@stylistic/no-extra-semi":"error","@stylistic/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"@stylistic/object-curly-newline":["error",{ExportDeclaration:{consistent:!0,multiline:!0},ImportDeclaration:{consistent:!0,multiline:!0},ObjectExpression:{consistent:!0,minProperties:3,multiline:!0},ObjectPattern:{consistent:!0,minProperties:3,multiline:!0}}],"@stylistic/object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:["block","multiline-block-like","type","interface","enum","function","function-overload"],prev:"*"},{blankLine:"always",next:"*",prev:["block","multiline-block-like","type","interface","enum","function","function-overload"]}],"@stylistic/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/yield-star-spacing":["error",{after:!0,before:!1}]},X={"@eslint-community/eslint-comments/disable-enable-pair":"off","@eslint-community/eslint-comments/no-unlimited-disable":"off"};function r(o,j){const{parser:E,additionalOptions:q={}}=j;return{files:[o],languageOptions:{parser:t.default.parserPlain},plugins:{format:t.default},rules:{"format/prettier":["error",{...O,parser:E,...q}]}}}var N=["**/*.ts","**/*.tsx","**/*.mts","**/*.cts","**/*.js","**/*.jsx","**/*.mjs","**/*.cjs"],W=["**/*.ts","**/*.mts","**/*.cts","**/*.js","**/*.jsx","**/*.mjs","**/*.cjs"],k=["**/router.gen.ts"];function B(...o){return(0,R.defineConfig)((0,p.default)({root:!0,strict:!0}),{files:N,ignores:k,extends:[a.default.configs.recommended,n.default.configs.strict,n.default.configs.stylistic,i.default.configs["recommended-typescript"],_.default.configs.flat.recommended,m.default.configs.recommended,x.default.configs.recommended,s.default.recommended,v.default.configs["flat/recommended"],l.default.configs.customize({blockSpacing:!0,braceStyle:"1tbs",commaDangle:"never",indent:2,jsx:!0,quoteProps:"as-needed",quotes:"double",semi:!0,severity:"error"}),c.default.configs["flat/recommended"],u.default.configs["flat/recommended"]],plugins:{"react-dom":g.default,"react-naming-convention":b.default,"react-web-api":w.default,antfu:f.default,jsdoc:d.default,"local-react":S.localReactPlugin,perfectionist:y.default,"unused-imports":h.default},rules:{...L,...M,...P,...A,...C,...S.localReactRules,...D,...U,...F,...I,...J,...T,...X}},{files:W,ignores:k,rules:{"no-restricted-syntax":["error","TSEnumDeclaration[const=true]","TSExportAssignment",{selector:"JSXAttribute[name.name='ref'][value.type='Literal']",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > Literal",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > TemplateLiteral",message:"Use callback refs or useRef instead of string refs."},"JSXElement","JSXFragment"]}},r("**/*.css",{parser:"css"}),r("**/*.scss",{parser:"scss"}),r("**/*.html",{parser:"html"}),r("**/*.json",{parser:"json"}),r("**/*.jsonc",{parser:"jsonc"}),r("**/*.md",{parser:"markdown",additionalOptions:{embeddedLanguageFormatting:"off",printWidth:320}}),r("**/*.mdx",{parser:"mdx",additionalOptions:{embeddedLanguageFormatting:"off",printWidth:320}}),...o)}exports.defineEslintConfig=B;
1
+ const e=require("../_internal/_rolldown/runtime.cjs"),s=require("./custom-react-rules.cjs");let i=require("@eslint-community/eslint-plugin-eslint-comments/configs");i=e.__toESM(i,1);let a=require("@eslint-react/eslint-plugin");a=e.__toESM(a,1);let l=require("@eslint/js");l=e.__toESM(l,1);let c=require("@stylistic/eslint-plugin");c=e.__toESM(c,1);let u=require("@tanstack/eslint-plugin-query");u=e.__toESM(u,1);let p=require("@tanstack/eslint-plugin-router");p=e.__toESM(p,1);let f=require("eslint-config-flat-gitignore");f=e.__toESM(f,1);let m=require("eslint-plugin-antfu");m=e.__toESM(m,1);let t=require("eslint-plugin-format");t=e.__toESM(t,1);let d=require("eslint-plugin-import-lite");d=e.__toESM(d,1);let y=require("eslint-plugin-jsdoc");y=e.__toESM(y,1);let g=require("eslint-plugin-perfectionist");g=e.__toESM(g,1);let _=require("eslint-plugin-react-dom");_=e.__toESM(_,1);let b=require("eslint-plugin-react-hooks");b=e.__toESM(b,1);let w=require("eslint-plugin-react-jsx");w=e.__toESM(w,1);let v=require("eslint-plugin-react-naming-convention");v=e.__toESM(v,1);let x=require("eslint-plugin-react-web-api");x=e.__toESM(x,1);let S=require("eslint-plugin-regexp");S=e.__toESM(S,1);let h=require("eslint-plugin-unicorn");h=e.__toESM(h,1);let k=require("eslint-plugin-unused-imports");k=e.__toESM(k,1);let O=require("eslint/config"),n=require("typescript-eslint");n=e.__toESM(n,1);var L={arrowParens:"avoid",bracketSameLine:!1,bracketSpacing:!0,endOfLine:"lf",htmlWhitespaceSensitivity:"strict",jsxSingleQuote:!1,objectWrap:"preserve",printWidth:120,proseWrap:"never",quoteProps:"as-needed",semi:!0,singleAttributePerLine:!1,singleQuote:!1,tabWidth:2,trailingComma:"none",useTabs:!1},M={"accessor-pairs":["error",{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!0}],"block-scoped-var":"error",camelcase:["error",{ignoreGlobals:!0,properties:"always"}],curly:["error","all"],"default-case-last":"error","dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","smart"],"func-style":["error","declaration",{allowArrowFunctions:!0}],"new-cap":["error",{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":"error","no-caller":"error","no-cond-assign":["error","always"],"no-empty":["error",{allowEmptyCatch:!0}],"no-eq-null":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implied-eval":"error","no-invalid-this":"error","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-obj-calls":"error","no-octal-escape":"error","no-promise-executor-return":["error",{allowVoid:!0}],"no-proto":"error","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-properties":["error",{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.defineProperty` instead.",property:"__defineGetter__"},{message:"Use `Object.defineProperty` instead.",property:"__defineSetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-restricted-syntax":["error","TSEnumDeclaration[const=true]","TSExportAssignment",{selector:"JSXAttribute[name.name='ref'][value.type='Literal']",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > Literal",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > TemplateLiteral",message:"Use callback refs or useRef instead of string refs."}],"no-self-compare":"error","no-sequences":"error","no-template-curly-in-string":"error","no-throw-literal":"error","no-undef-init":"error","no-unmodified-loop-condition":"error","no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-unreachable":"error","no-unreachable-loop":"error","no-unused-vars":"off","no-useless-call":"error","no-useless-computed-key":"error","no-useless-concat":"error","no-useless-rename":"error","no-useless-return":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":["error",{initialized:"never"}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{destructuring:"all",ignoreReadBeforeAssign:!0}],"prefer-destructuring":"error","prefer-exponentiation-operator":"error","prefer-named-capture-group":"error","prefer-numeric-literals":"error","prefer-object-has-own":"error","prefer-object-spread":"error","prefer-promise-reject-errors":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],"prefer-template":"error","require-atomic-updates":"error","require-await":"error","symbol-description":"error","unicode-bom":["error","never"],"use-isnan":["error",{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":["error",{requireStringLiterals:!0}],yoda:["error","never"]},P={"@typescript-eslint/array-type":["error",{default:"array-simple",readonly:"array-simple"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/max-params":["error",{max:5}],"@typescript-eslint/method-signature-style":["error","property"],"@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"always"}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-import-type-side-effects":"error","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-this-alias":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-function-type":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unused-expressions":["error",{enforceForJSX:!0}],"@typescript-eslint/no-unused-vars":"off"},C={"import-lite/consistent-type-specifier-style":["error","top-level"],"import-lite/first":"error","import-lite/newline-after-import":["error",{count:1}],"import-lite/no-duplicates":"error","import-lite/no-mutable-exports":"error","import-lite/no-named-default":"error"},A={"unicorn/consistent-empty-array-spread":"error","unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/filename-case":["error",{case:"kebabCase",ignore:["README.md","AGENTS.md","CLAUDE.md"]}],"unicorn/import-style":["error",{checkDynamicImport:!1,extendDefaultStyles:!1}],"unicorn/new-for-builtins":"error","unicorn/no-array-for-each":"error","unicorn/no-array-reduce":"off","unicorn/no-console-spaces":"error","unicorn/no-empty-file":"error","unicorn/no-for-loop":"error","unicorn/no-nested-ternary":"off","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/no-null":"off","unicorn/no-unnecessary-await":"error","unicorn/no-unnecessary-polyfills":"error","unicorn/no-unused-properties":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-spread":"error","unicorn/no-useless-switch-case":"error","unicorn/no-useless-undefined":"error","unicorn/number-literal-case":"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-date-now":"error","unicorn/prefer-default-parameters":"error","unicorn/prefer-dom-node-text-content":"error","unicorn/prefer-event-target":"off","unicorn/prefer-includes":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-object-from-entries":"error","unicorn/prefer-single-call":"error","unicorn/prefer-string-raw":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-string-trim-start-end":"error","unicorn/prefer-type-error":"error","unicorn/prevent-abbreviations":"off","unicorn/require-module-specifiers":"off","unicorn/text-encoding-identifier-case":["error",{withDash:!0}],"unicorn/throw-new-error":"error"},D={"react-dom/no-dangerously-set-innerhtml":"error","react-dom/no-dangerously-set-innerhtml-with-children":"error","react-dom/no-find-dom-node":"error","react-dom/no-flush-sync":"error","react-dom/no-hydrate":"error","react-dom/no-missing-button-type":"error","react-dom/no-missing-iframe-sandbox":"error","react-dom/no-render":"error","react-dom/no-render-return-value":"error","react-dom/no-script-url":"error","react-dom/no-string-style-prop":"error","react-dom/no-unknown-property":["error",{ignore:["css"]}],"react-dom/no-unsafe-iframe-sandbox":"error","react-dom/no-unsafe-target-blank":"error","react-dom/no-use-form-state":"error","react-dom/no-void-elements-with-children":"error","@eslint-react/set-state-in-effect":"off","react-jsx/no-key-after-spread":"error","react-jsx/no-comment-textnodes":"error","react-jsx/no-namespace":"error","react-naming-convention/context-name":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-children-for-each":"off","@eslint-react/no-children-map":"off","@eslint-react/no-children-to-array":"off","@eslint-react/no-class-component":"error","@eslint-react/no-clone-element":"off","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"error","@eslint-react/no-missing-component-display-name":"error","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"error","@eslint-react/no-set-state-in-component-did-update":"error","@eslint-react/no-set-state-in-component-will-update":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/no-unsafe-component-will-mount":"error","@eslint-react/no-unsafe-component-will-receive-props":"error","@eslint-react/no-unsafe-component-will-update":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/no-unused-state":"error","@eslint-react/no-use-context":"error","@eslint-react/unsupported-syntax":"error","@eslint-react/use-state":["error",{enforceAssignment:!1,enforceLazyInitialization:!0,enforceSetterName:!1}],"react-web-api/no-leaked-event-listener":"error","react-web-api/no-leaked-interval":"error","react-web-api/no-leaked-resize-observer":"error","react-web-api/no-leaked-timeout":"error"},T={"react-hooks/exhaustive-deps":["error",{additionalHooks:"^use(Deep|Shallow|Isomorphic)|^useDidUpdate"}]},U={"jsdoc/check-line-alignment":["error","always",{tags:[]}],"jsdoc/multiline-blocks":["error",{noSingleLineBlocks:!0}],"jsdoc/no-blank-blocks":"error","jsdoc/tag-lines":["error","never",{startLines:1}]},F={"antfu/consistent-chaining":"error","antfu/consistent-list-newline":"error","antfu/curly":"error","antfu/if-newline":"error","antfu/indent-unindent":"error","antfu/top-level-function":"error"},I={"unused-imports/no-unused-imports":"error","unused-imports/no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",vars:"all",varsIgnorePattern:"^_"}]},J={"perfectionist/sort-exports":["error",{order:"asc",type:"natural"}],"perfectionist/sort-imports":["error",{groups:["type-import",["type-internal","type-parent","type-sibling","type-index"],"value-builtin","value-external","value-internal",["value-parent","value-sibling","value-index"],["value-side-effect","value-side-effect-style"],"unknown"],newlinesBetween:1,order:"asc",type:"natural"}],"perfectionist/sort-named-exports":["error",{groups:["value-export","type-export"],newlinesBetween:"ignore",order:"asc",type:"natural"}],"perfectionist/sort-named-imports":["error",{groups:["value-import","type-import"],newlinesBetween:"ignore",order:"asc",type:"natural"}],"perfectionist/sort-jsx-props":["error",{type:"natural",order:"asc",ignoreCase:!0,groups:["reserved","shorthand-prop","unknown","multiline-prop","callback"],customGroups:[{groupName:"reserved",elementNamePattern:"^(key|ref)$"},{groupName:"callback",elementNamePattern:"^on.+"}]}]},X={"@stylistic/array-bracket-newline":["error",{multiline:!0}],"@stylistic/array-element-newline":["error","consistent"],"@stylistic/arrow-parens":["error","as-needed"],"@stylistic/curly-newline":["error",{consistent:!0}],"@stylistic/function-paren-newline":["error","multiline-arguments"],"@stylistic/generator-star-spacing":["error",{after:!0,before:!1}],"@stylistic/implicit-arrow-linebreak":["error","beside"],"@stylistic/jsx-max-props-per-line":["error",{maximum:{multi:1,single:5}}],"@stylistic/jsx-newline":["error",{allowMultilines:!0,prevent:!0}],"@stylistic/jsx-self-closing-comp":["error",{component:!0,html:!0}],"@stylistic/line-comment-position":["error",{position:"above"}],"@stylistic/max-statements-per-line":["error",{max:1}],"@stylistic/multiline-comment-style":["error","separate-lines",{checkJSDoc:!1}],"@stylistic/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/no-extra-parens":["error","all",{ignoreJSX:"multi-line",nestedBinaryExpressions:!1,ternaryOperandBinaryExpressions:!1}],"@stylistic/no-extra-semi":"error","@stylistic/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"@stylistic/object-curly-newline":["error",{ExportDeclaration:{consistent:!0,multiline:!0},ImportDeclaration:{consistent:!0,multiline:!0},ObjectExpression:{consistent:!0,minProperties:3,multiline:!0},ObjectPattern:{consistent:!0,minProperties:3,multiline:!0}}],"@stylistic/object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:["block","multiline-block-like","type","interface","enum","function","function-overload"],prev:"*"},{blankLine:"always",next:"*",prev:["block","multiline-block-like","type","interface","enum","function","function-overload"]}],"@stylistic/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/yield-star-spacing":["error",{after:!0,before:!1}]},N={"@eslint-community/eslint-comments/disable-enable-pair":"off","@eslint-community/eslint-comments/no-unlimited-disable":"off"};function r(o,E){const{parser:q,additionalOptions:R={}}=E;return{files:[o],languageOptions:{parser:t.default.parserPlain},plugins:{format:t.default},rules:{"format/prettier":["error",{...L,parser:q,...R}]}}}var W=["**/*.ts","**/*.tsx","**/*.mts","**/*.cts","**/*.js","**/*.jsx","**/*.mjs","**/*.cjs"],B=["**/*.ts","**/*.mts","**/*.cts","**/*.js","**/*.jsx","**/*.mjs","**/*.cjs"],j=["**/router.gen.ts"];function G(...o){return(0,O.defineConfig)((0,f.default)({root:!0,strict:!0}),{files:W,ignores:j,extends:[l.default.configs.recommended,n.default.configs.strict,n.default.configs.stylistic,a.default.configs["recommended-typescript"],b.default.configs.flat.recommended,d.default.configs.recommended,h.default.configs.recommended,i.default.recommended,S.default.configs["flat/recommended"],c.default.configs.customize({blockSpacing:!0,braceStyle:"1tbs",commaDangle:"never",indent:2,jsx:!0,quoteProps:"as-needed",quotes:"double",semi:!0,severity:"error"}),u.default.configs["flat/recommended"],p.default.configs["flat/recommended"],s.kitConfig],plugins:{"react-dom":_.default,"react-jsx":w.default,"react-naming-convention":v.default,"react-web-api":x.default,antfu:m.default,jsdoc:y.default,"local-react":s.localReactPlugin,perfectionist:g.default,"unused-imports":k.default},rules:{...M,...P,...C,...A,...D,...s.localReactRules,...T,...F,...I,...J,...X,...U,...N}},{files:B,ignores:j,rules:{"no-restricted-syntax":["error","TSEnumDeclaration[const=true]","TSExportAssignment",{selector:"JSXAttribute[name.name='ref'][value.type='Literal']",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > Literal",message:"Use callback refs or useRef instead of string refs."},{selector:"JSXAttribute[name.name='ref'] > JSXExpressionContainer > TemplateLiteral",message:"Use callback refs or useRef instead of string refs."},"JSXElement","JSXFragment"]}},r("**/*.css",{parser:"css"}),r("**/*.scss",{parser:"scss"}),r("**/*.html",{parser:"html"}),r("**/*.json",{parser:"json"}),r("**/*.jsonc",{parser:"jsonc"}),r("**/*.md",{parser:"markdown",additionalOptions:{embeddedLanguageFormatting:"off",printWidth:320}}),r("**/*.mdx",{parser:"mdx",additionalOptions:{embeddedLanguageFormatting:"off",printWidth:320}}),...o)}exports.defineEslintConfig=G;
@@ -1 +1 @@
1
- const e=require("./commitlint.cjs"),r=require("./eslint.cjs"),i=require("./stylelint.cjs");
1
+ const e=require("../_internal/_rolldown/runtime.cjs"),r=require("./commitlint.cjs"),i=require("./eslint.cjs"),t=require("./stylelint.cjs");
@@ -1 +1 @@
1
- const r=require("../_internal/_rolldown/runtime.cjs");let e=require("stylelint-config-recess-order/groups");e=r.__toESM(e);var o=["px","em","rem","%","vw","vh","fr","deg","rad","grad","turn","ms","s"],l={"order/order":["dollar-variables","at-variables","custom-properties","less-mixins","declarations","at-rules","rules"],"order/properties-order":e.default.map(n=>({...n,emptyLineBefore:"never",noEmptyLineBetween:!0}))},s={"declaration-empty-line-before":"never","declaration-property-value-no-unknown":[!0,{ignoreProperties:{}}]},t={"at-rule-no-unknown":null,"function-no-unknown":null,"scss/at-rule-no-unknown":[!0,{ignoreAtRules:["extend","include"]}],"scss/function-no-unknown":[!0,{ignoreFunctions:[]}]},i={"color-hex-alpha":"never","color-hex-length":"long","color-named":"never"},u={"selector-pseudo-class-no-unknown":[!0,{ignorePseudoClasses:["global"]}]},a={"number-max-precision":null,"unit-allowed-list":o};function c(){return{extends:["stylelint-config-recommended","stylelint-config-standard-scss","@stylistic/stylelint-config"],plugins:["stylelint-order"],rules:{...l,...s,...t,...i,...u,...a}}}exports.defineStylelintConfig=c;
1
+ const r=require("../_internal/_rolldown/runtime.cjs");let e=require("stylelint-config-recess-order/groups");e=r.__toESM(e,1);var o=["px","em","rem","%","vw","vh","fr","deg","rad","grad","turn","ms","s"],l={"order/order":["dollar-variables","at-variables","custom-properties","less-mixins","declarations","at-rules","rules"],"order/properties-order":e.default.map(n=>({...n,emptyLineBefore:"never",noEmptyLineBetween:!0}))},s={"declaration-empty-line-before":"never","declaration-property-value-no-unknown":[!0,{ignoreProperties:{}}]},t={"at-rule-no-unknown":null,"function-no-unknown":null,"scss/at-rule-no-unknown":[!0,{ignoreAtRules:["extend","include"]}],"scss/function-no-unknown":[!0,{ignoreFunctions:[]}]},i={"color-hex-alpha":"never","color-hex-length":"long","color-named":"never"},u={"selector-pseudo-class-no-unknown":[!0,{ignorePseudoClasses:["global"]}]},a={"number-max-precision":null,"unit-allowed-list":o};function c(){return{extends:["stylelint-config-recommended","stylelint-config-standard-scss","@stylistic/stylelint-config"],plugins:["stylelint-order"],rules:{...l,...s,...t,...i,...u,...a}}}exports.defineStylelintConfig=c;
@@ -1 +1 @@
1
- var r=[["node_modules/@vef-framework-react/","vef-framework"],["/packages/","vef-framework"],["node_modules/lucide-react/","lucide-icons"],["node_modules/react/","react"],["node_modules/react-dom/","react"],["node_modules/scheduler/","react"],["node_modules/@tanstack/","tanstack"],["node_modules/pinyin-pro/","pinyin-vendor"],["node_modules/@pinyin-pro/","pinyin-vendor"],["node_modules/echarts/","echarts"]];function d(e){for(const[n,o]of r)if(e.includes(n))return o}function t(){return d}exports.createChunksConfig=t;
1
+ const u=require("../_internal/_rolldown/runtime.cjs");var o=[["node_modules/@vef-framework-react/","vef-framework"],["/packages/","vef-framework"],["node_modules/lucide-react/","lucide-icons"],["node_modules/react/","react"],["node_modules/react-dom/","react"],["node_modules/scheduler/","react"],["node_modules/@tanstack/","tanstack"],["node_modules/pinyin-pro/","pinyin-vendor"],["node_modules/@pinyin-pro/","pinyin-vendor"],["node_modules/echarts/","echarts"]];function d(e){for(const[n,r]of o)if(e.includes(n))return r}function t(){return d}exports.createChunksConfig=t;
@@ -1 +1 @@
1
- const o=require("../_internal/_rolldown/runtime.cjs"),E=require("./constants.cjs"),d=require("./plugin-app-config.cjs"),v=require("./plugin-auto-enhance/plugins/operation-column-width.cjs"),I=require("./plugin-auto-enhance/index.cjs"),V=require("./plugin-conventional-config.cjs"),U=require("./plugin-eslint.cjs"),h=require("./plugin-html.cjs"),A=require("./plugin-icons.cjs"),B=require("./plugin-injection.cjs"),D=require("./plugin-inspect.cjs"),C=require("./plugin-react.cjs"),b=require("./plugin-router.cjs"),m=require("./plugin-stylelint.cjs"),L=require("./plugin-svgr.cjs"),R=require("./plugin-tsconfig-paths.cjs");let F=require("node:path"),i=require("node:process");i=o.__toESM(i);let t=require("consola");t=o.__toESM(t);let u=require("fs-extra");u=o.__toESM(u);let s=require("vite");async function S(n){return(await u.default.readJson((0,F.resolve)(n,"package.json"),{encoding:"utf-8"})).version}function T(n={}){const{resolve:c,plugins:_=[],autoEnhancePlugins:l=[],routerHistory:a="browser",react:g,proxies:p}=n,r=i.default.cwd();return(0,s.defineConfig)(async({mode:q})=>{const e=(0,s.loadEnv)(q,"env",E.ENV_BUILD_PREFIX);Object.keys(e).length>0&&(t.default.info("Loaded environment variables:"),console.table(e));const P=await S(r),f=[..._,D.createInspectPlugin(),V.createConventionalConfigPlugin({appName:e.VEF_APP_NAME,appVersion:P,projectDir:r,basePublicPath:e.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:e.VEF_BUILD_OUTPUT_DIR,serverPort:Number(e.VEF_BUILD_SERVER_PORT),proxies:p}),I.createAutoEnhancePlugin({plugins:[v.operationColumnWidthPlugin,...l]}),b.createRouterPlugin(r,a),C.createReactPlugin(g),h.createHtmlPlugin(),B.createInjectionPlugin(),d.createAppConfigPlugin({basePublicPath:e.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:e.VEF_BUILD_OUTPUT_DIR,appName:e.VEF_APP_NAME}),A.createIconsPlugin(r),L.createSvgrPlugin(),U.createEslintPlugin(),m.createStylelintPlugin()];return{resolve:{...c,...R.createTsconfigPathsResolveConfig()},plugins:f.filter(Boolean)}})}exports.defineViteConfig=T;
1
+ const o=require("../_internal/_rolldown/runtime.cjs"),E=require("./constants.cjs"),d=require("./plugin-app-config.cjs"),v=require("./plugin-auto-enhance/plugins/operation-column-width.cjs"),I=require("./plugin-auto-enhance/index.cjs"),V=require("./plugin-conventional-config.cjs"),U=require("./plugin-eslint.cjs"),h=require("./plugin-html.cjs"),A=require("./plugin-icons.cjs"),B=require("./plugin-injection.cjs"),D=require("./plugin-inspect.cjs"),C=require("./plugin-react.cjs"),b=require("./plugin-router.cjs"),m=require("./plugin-stylelint.cjs"),L=require("./plugin-svgr.cjs"),R=require("./plugin-tsconfig-paths.cjs");let F=require("node:path"),i=require("node:process");i=o.__toESM(i,1);let t=require("consola");t=o.__toESM(t,1);let u=require("fs-extra");u=o.__toESM(u,1);let s=require("vite");async function S(n){return(await u.default.readJson((0,F.resolve)(n,"package.json"),{encoding:"utf-8"})).version}function T(n={}){const{resolve:c,plugins:_=[],autoEnhancePlugins:l=[],routerHistory:a="browser",react:g,proxies:p}=n,r=i.default.cwd();return(0,s.defineConfig)(async({mode:q})=>{const e=(0,s.loadEnv)(q,"env",E.ENV_BUILD_PREFIX);Object.keys(e).length>0&&(t.default.info("Loaded environment variables:"),console.table(e));const P=await S(r),f=[..._,D.createInspectPlugin(),V.createConventionalConfigPlugin({appName:e.VEF_APP_NAME,appVersion:P,projectDir:r,basePublicPath:e.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:e.VEF_BUILD_OUTPUT_DIR,serverPort:Number(e.VEF_BUILD_SERVER_PORT),proxies:p}),I.createAutoEnhancePlugin({plugins:[v.operationColumnWidthPlugin,...l]}),b.createRouterPlugin(r,a),C.createReactPlugin(g),h.createHtmlPlugin(),B.createInjectionPlugin(),d.createAppConfigPlugin({basePublicPath:e.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:e.VEF_BUILD_OUTPUT_DIR,appName:e.VEF_APP_NAME}),A.createIconsPlugin(r),L.createSvgrPlugin(),U.createEslintPlugin(),m.createStylelintPlugin()];return{resolve:{...c,...R.createTsconfigPathsResolveConfig()},plugins:f.filter(Boolean)}})}exports.defineViteConfig=T;
@@ -1 +1 @@
1
- var _="1.0.0",E="public";var R="assets",I="VEF_APP_",P="VEF_BUILD_";var D="dist",A=3833;var U="pages",r="router";exports.ASSETS_DIR=R;exports.DEFAULT_OUTPUT_DIR=D;exports.DEFAULT_SERVER_PORT=A;exports.ENV_APP_PREFIX=I;exports.ENV_BUILD_PREFIX=P;exports.PAGES_DIR=U;exports.PUBLIC_DIR=E;exports.ROUTER_DIR=r;exports.VEF_FRAMEWORK_VERSION=_;
1
+ const F=require("../_internal/_rolldown/runtime.cjs");var _="1.0.0",E="public";var R="assets",I="VEF_APP_",P="VEF_BUILD_";var r="dist",D=3833;var A="pages",U="router";exports.ASSETS_DIR=R;exports.DEFAULT_OUTPUT_DIR=r;exports.DEFAULT_SERVER_PORT=D;exports.ENV_APP_PREFIX=I;exports.ENV_BUILD_PREFIX=P;exports.PAGES_DIR=A;exports.PUBLIC_DIR=E;exports.ROUTER_DIR=U;exports.VEF_FRAMEWORK_VERSION=_;
@@ -1,10 +1,10 @@
1
- const _=require("./constants.cjs");function c(e,n,t){const i=t?`(function () {
1
+ const c=require("../_internal/_rolldown/runtime.cjs"),e=require("./constants.cjs");function i(_,n,t){const r=t?`(function () {
2
2
  const env = import.meta.env;
3
3
  const config = Object.keys(env)
4
- .filter(key => key.startsWith(${JSON.stringify(_.ENV_APP_PREFIX)}))
4
+ .filter(key => key.startsWith(${JSON.stringify(e.ENV_APP_PREFIX)}))
5
5
  .reduce((acc, key) => {
6
6
  acc[key] = env[key];
7
7
  return acc;
8
8
  }, {});
9
9
  return Object.freeze(config);
10
- })()`:`window.__PRODUCTION__VEF_${e??"APP"}__CONF__`;return{__VEF_FRAMEWORK_VERSION__:JSON.stringify(_.VEF_FRAMEWORK_VERSION),__VEF_APP_VERSION__:JSON.stringify(n),__VEF_APP_CONFIG__:i}}exports.defineConstants=c;
10
+ })()`:`window.__PRODUCTION__VEF_${_??"APP"}__CONF__`;return{__VEF_FRAMEWORK_VERSION__:JSON.stringify(e.VEF_FRAMEWORK_VERSION),__VEF_APP_VERSION__:JSON.stringify(n),__VEF_APP_CONFIG__:r}}exports.defineConstants=i;
@@ -1 +1 @@
1
- const r=require("../_internal/_rolldown/runtime.cjs"),a=require("./constants.cjs");let u=require("radashi"),n=require("unplugin-config/vite");n=r.__toESM(n);function o(e){return(0,u.snake)(e).toUpperCase()}function p({basePublicPath:e,outputDir:t,appName:i="APP"}){return(0,n.default)({appName:`VEF_${o(i)}`,baseDir:e,configFile:{generate:!0,fileName:"app.config.js",outputDir:t??"dist"},htmlInjection:{enable:!0,position:"head-prepend",templates:["index.html"]},envVariables:{prefix:a.ENV_APP_PREFIX,files:["env/.env","env/.env.production"]}})}exports.createAppConfigPlugin=p;
1
+ const r=require("../_internal/_rolldown/runtime.cjs"),a=require("./constants.cjs");let u=require("radashi"),n=require("unplugin-config/vite");n=r.__toESM(n,1);function o(e){return(0,u.snake)(e).toUpperCase()}function p({basePublicPath:e,outputDir:t,appName:i="APP"}){return(0,n.default)({appName:`VEF_${o(i)}`,baseDir:e,configFile:{generate:!0,fileName:"app.config.js",outputDir:t??"dist"},htmlInjection:{enable:!0,position:"head-prepend",templates:["index.html"]},envVariables:{prefix:a.ENV_APP_PREFIX,files:["env/.env","env/.env.production"]}})}exports.createAppConfigPlugin=p;
@@ -1 +1 @@
1
- const e=require("./operation-column-width.cjs");
1
+ const e=require("../../../_internal/_rolldown/runtime.cjs"),r=require("./operation-column-width.cjs");
@@ -1 +1 @@
1
- const e=require("./constants.cjs"),p=require("./chunks.cjs"),m=require("./define.cjs"),f=require("./postcss.cjs");function S(s){const r=`VEF Framework v${e.VEF_FRAMEWORK_VERSION}`,n=s?` App version v${s}.`:"",t=new Date().toISOString();return`/*! Powered by ${r}.${n} Built at ${t} */`}function v({appName:s,appVersion:r,basePublicPath:n,projectDir:t,outputDir:i,serverPort:o,proxies:a}){return{name:"vef-framework:conventional-config",config(d,{command:u}){const c=u==="serve",l=i??"dist";return{appType:"spa",root:t,base:n,publicDir:e.PUBLIC_DIR,envDir:"env",envPrefix:[e.ENV_BUILD_PREFIX,e.ENV_APP_PREFIX],define:m.defineConstants(s,r,c),css:{transformer:"postcss",modules:{scopeBehaviour:"local",localsConvention:"camelCaseOnly",exportGlobals:!0,hashPrefix:"vef"},postcss:f.createPostcssConfig(),preprocessorOptions:{scss:{}}},resolve:{dedupe:["react","react-dom"]},optimizeDeps:{},build:{outDir:l,target:"es2024",assetsDir:e.ASSETS_DIR,assetsInlineLimit:10240,reportCompressedSize:!1,chunkSizeWarningLimit:5120,minify:!0,cssCodeSplit:!0,cssMinify:!0,sourcemap:!1,rollupOptions:{input:{main:"index.html"},output:{banner:S(r),chunkFileNames:`${e.ASSETS_DIR}/js/[name]-[hash].js`,entryFileNames:`${e.ASSETS_DIR}/js/[name]-[hash].js`,assetFileNames:`${e.ASSETS_DIR}/[ext]/[name]-[hash].[ext]`,manualChunks:p.createChunksConfig()}}},server:{port:o||3833,strictPort:!0,host:!0,allowedHosts:!0,open:!0,proxy:a}}}}}exports.createConventionalConfigPlugin=v;
1
+ const d=require("../_internal/_rolldown/runtime.cjs"),e=require("./constants.cjs"),p=require("./chunks.cjs"),m=require("./define.cjs"),f=require("./postcss.cjs");function S(r){const s=`VEF Framework v${e.VEF_FRAMEWORK_VERSION}`,n=r?` App version v${r}.`:"",t=new Date().toISOString();return`/*! Powered by ${s}.${n} Built at ${t} */`}function v({appName:r,appVersion:s,basePublicPath:n,projectDir:t,outputDir:i,serverPort:o,proxies:a}){return{name:"vef-framework:conventional-config",config(_,{command:u}){const c=u==="serve",l=i??"dist";return{appType:"spa",root:t,base:n,publicDir:e.PUBLIC_DIR,envDir:"env",envPrefix:[e.ENV_BUILD_PREFIX,e.ENV_APP_PREFIX],define:m.defineConstants(r,s,c),css:{transformer:"postcss",modules:{scopeBehaviour:"local",localsConvention:"camelCaseOnly",exportGlobals:!0,hashPrefix:"vef"},postcss:f.createPostcssConfig(),preprocessorOptions:{scss:{}}},resolve:{dedupe:["react","react-dom"]},optimizeDeps:{},build:{outDir:l,target:"es2024",assetsDir:e.ASSETS_DIR,assetsInlineLimit:10240,reportCompressedSize:!1,chunkSizeWarningLimit:5120,minify:!0,cssCodeSplit:!0,cssMinify:!0,sourcemap:!1,rollupOptions:{input:{main:"index.html"},output:{banner:S(s),chunkFileNames:`${e.ASSETS_DIR}/js/[name]-[hash].js`,entryFileNames:`${e.ASSETS_DIR}/js/[name]-[hash].js`,assetFileNames:`${e.ASSETS_DIR}/[ext]/[name]-[hash].[ext]`,manualChunks:p.createChunksConfig()}}},server:{port:o||3833,strictPort:!0,host:!0,allowedHosts:!0,open:!0,proxy:a}}}}}exports.createConventionalConfigPlugin=v;
@@ -1 +1 @@
1
- const t=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-eslint2");e=t.__toESM(e);var r=["*.{js,ts,json,yaml,md}","src/**/*.{ts,tsx,json,yaml,md}"],i=["node_modules","virtual:","vef:"];function n(){return(0,e.default)({fix:!1,test:!1,dev:!0,build:!1,cache:!0,cacheLocation:"node_modules/.cache/.eslintcache",include:r,exclude:i,emitError:!0,emitWarning:!0,emitWarningAsError:!0})}exports.createEslintPlugin=n;
1
+ const t=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-eslint2");e=t.__toESM(e,1);var r=["*.{js,ts,json,yaml,md}","src/**/*.{ts,tsx,json,yaml,md}"],i=["node_modules","virtual:","vef:"];function n(){return(0,e.default)({fix:!1,test:!1,dev:!0,build:!1,cache:!0,cacheLocation:"node_modules/.cache/.eslintcache",include:r,exclude:i,emitError:!0,emitWarning:!0,emitWarningAsError:!0})}exports.createEslintPlugin=n;
@@ -1 +1 @@
1
- const t=require("../_internal/_rolldown/runtime.cjs");let l=require("node:path"),n=require("node:url"),e=require("unplugin-icons/vite");e=t.__toESM(e);var i=(0,l.dirname)((0,n.fileURLToPath)({}.url));function o(r){return(0,e.default)({autoInstall:!1,compiler:"jsx",jsx:"react",defaultClass:"inline-block",scale:1.2,collectionsNodeResolvePath:[r,(0,l.resolve)(i,"..")]})}exports.createIconsPlugin=o;
1
+ const t=require("../_internal/_rolldown/runtime.cjs");let l=require("node:path"),n=require("node:url"),e=require("unplugin-icons/vite");e=t.__toESM(e,1);var i=(0,l.dirname)((0,n.fileURLToPath)({}.url));function o(r){return(0,e.default)({autoInstall:!1,compiler:"jsx",jsx:"react",defaultClass:"inline-block",scale:1.2,collectionsNodeResolvePath:[r,(0,l.resolve)(i,"..")]})}exports.createIconsPlugin=o;
@@ -1 +1 @@
1
- function n(){return{name:"vef-framework:injection"}}exports.createInjectionPlugin=n;
1
+ const n=require("../_internal/_rolldown/runtime.cjs");function e(){return{name:"vef-framework:injection"}}exports.createInjectionPlugin=e;
@@ -1 +1 @@
1
- const t=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-inspect");e=t.__toESM(e);function r(){return(0,e.default)({dev:!0,build:!1})}exports.createInspectPlugin=r;
1
+ const t=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-inspect");e=t.__toESM(e,1);function r(){return(0,e.default)({dev:!0,build:!1})}exports.createInspectPlugin=r;
@@ -1 +1 @@
1
- const n=require("../_internal/_rolldown/runtime.cjs");let l=require("@rolldown/plugin-babel");l=n.__toESM(l);let u=require("@vitejs/plugin-react");u=n.__toESM(u);let i=require("jotai-babel/preset");i=n.__toESM(i);var a=["@emotion",{sourceMap:!0,autoLabel:"never",cssPropOptimization:!0}];function o(e,r){const t=[];return e&&t.push(a),r&&t.push(...r),t}function s(e){return e?[i.default,(0,u.reactCompilerPreset)()]:[i.default]}function c({useEmotion:e=!1,useCompiler:r=!0,babelPlugins:t}={}){return[(0,u.default)({jsxImportSource:e?"@emotion/react":void 0}),(0,l.default)({plugins:o(e,t),presets:s(r)})]}exports.createReactPlugin=c;
1
+ const n=require("../_internal/_rolldown/runtime.cjs");let l=require("@rolldown/plugin-babel");l=n.__toESM(l,1);let u=require("@vitejs/plugin-react");u=n.__toESM(u,1);let i=require("jotai-babel/preset");i=n.__toESM(i,1);var a=["@emotion",{sourceMap:!0,autoLabel:"never",cssPropOptimization:!0}];function o(e,r){const t=[];return e&&t.push(a),r&&t.push(...r),t}function s(e){return e?[i.default,(0,u.reactCompilerPreset)()]:[i.default]}function c({useEmotion:e=!1,useCompiler:r=!0,babelPlugins:t}={}){return[(0,u.default)({jsxImportSource:e?"@emotion/react":void 0}),(0,l.default)({plugins:o(e,t),presets:s(r)})]}exports.createReactPlugin=c;
@@ -1 +1 @@
1
- const t=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-stylelint");e=t.__toESM(e);var r=["src/**/*.{css,scss}"],i=["node_modules","virtual:","vef:"];function l(){return(0,e.default)({fix:!1,test:!1,dev:!0,build:!1,cache:!0,cacheLocation:"node_modules/.cache/.stylelintcache",include:r,exclude:i,emitError:!0,emitWarning:!0,emitWarningAsError:!0})}exports.createStylelintPlugin=l;
1
+ const t=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-stylelint");e=t.__toESM(e,1);var r=["src/**/*.{css,scss}"],i=["node_modules","virtual:","vef:"];function l(){return(0,e.default)({fix:!1,test:!1,dev:!0,build:!1,cache:!0,cacheLocation:"node_modules/.cache/.stylelintcache",include:r,exclude:i,emitError:!0,emitWarning:!0,emitWarningAsError:!0})}exports.createStylelintPlugin=l;
@@ -1 +1 @@
1
- const r=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-svgr");e=r.__toESM(e);function t(){return(0,e.default)({include:"**/*.svg?react",esbuildOptions:{platform:"browser",minify:!0,jsx:"automatic"},svgrOptions:{plugins:["@svgr/plugin-svgo","@svgr/plugin-jsx"],icon:!1,dimensions:!1,prettier:!0,memo:!0,svgo:!0,ref:!1,typescript:!0,jsxRuntime:"automatic",svgoConfig:{multipass:!0,datauri:"base64",js2svg:{indent:2,pretty:!0},plugins:["preset-default",{name:"prefixIds",params:{prefix:"vef"}},{name:"cleanupIds",params:{force:!0,remove:!0,minify:!0}}]},svgProps:{}}})}exports.createSvgrPlugin=t;
1
+ const r=require("../_internal/_rolldown/runtime.cjs");let e=require("vite-plugin-svgr");e=r.__toESM(e,1);function t(){return(0,e.default)({include:"**/*.svg?react",esbuildOptions:{platform:"browser",minify:!0,jsx:"automatic"},svgrOptions:{plugins:["@svgr/plugin-svgo","@svgr/plugin-jsx"],icon:!1,dimensions:!1,prettier:!0,memo:!0,svgo:!0,ref:!1,typescript:!0,jsxRuntime:"automatic",svgoConfig:{multipass:!0,datauri:"base64",js2svg:{indent:2,pretty:!0},plugins:["preset-default",{name:"prefixIds",params:{prefix:"vef"}},{name:"cleanupIds",params:{force:!0,remove:!0,minify:!0}}]},svgProps:{}}})}exports.createSvgrPlugin=t;
@@ -1 +1 @@
1
- function e(){return{tsconfigPaths:!0}}exports.createTsconfigPathsResolveConfig=e;
1
+ const t=require("../_internal/_rolldown/runtime.cjs");function e(){return{tsconfigPaths:!0}}exports.createTsconfigPathsResolveConfig=e;
@@ -1 +1 @@
1
- function s(){return{map:!1,plugins:[]}}exports.createPostcssConfig=s;
1
+ const r=require("../_internal/_rolldown/runtime.cjs");function e(){return{map:!1,plugins:[]}}exports.createPostcssConfig=e;
package/dist/cli/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/dev v2.1.5 made by Venus | 2026-03-31T12:34:34.335Z */
1
+ /*! @vef-framework-react/dev v2.1.7 made by Venus | 2026-04-24T14:03:16.392Z */
2
2
  import{resolve as o}from"node:path";import y from"node:process";import c from"chalk";import{program as r}from"commander";import a from"consola";import{execa as m}from"execa";import F from"fs-extra";import w from"ora";import j from"prompts";const{copy:I,exists:u,move:g,readFile:T,readJson:h,readJsonSync:_,writeFile:f,writeJson:k}=F,v=y.cwd(),P={preCommit:"pnpm dlx lint-staged",commitMsg:"pnpm dlx commitlint --edit $1"},J={"*.{js,ts,tsx,json,jsonc,md,mdx,html}":"eslint --fix","*.{css,scss}":"stylelint --fix"};function N(){const e=o(import.meta.dirname,"../../package.json");return _(e,{encoding:"utf-8"}).version}function E(e,t){a.error(`Error during ${e}:`,t),y.exit(1)}function p(...e){return o(v,...e)}async function V(){const e=p(".husky"),t=p(".husky/pre-commit"),n=p(".husky/commit-msg"),i=p("package.json");if(!await u(e)){const{default:S}=await import("husky");S(),a.success("Successfully set up husky")}await u(t)||(await f(t,P.preCommit),a.success("Successfully set up pre-commit hook")),await u(n)||(await f(n,P.commitMsg),a.success("Successfully set up commit-msg hook"));const s=await h(i,{encoding:"utf-8"}),{scripts:l}=s;let d=!1;l.prepare||(l.prepare="vef prepare",d=!0),s["lint-staged"]||(s["lint-staged"]={...J},d=!0),d&&(await k(i,s,{encoding:"utf-8",spaces:2}),a.success("Successfully set up prepare script and lint-staged"))}async function b(){await m({cwd:v,stdio:"inherit"})("pnpm",["update","@vef-framework-react/*"])}async function A(){console.log(c.blue(`Welcome to use the cli tool of VEF Framework
3
3
  `));const e=await j([{type:"text",name:"appName",message:"What is the name of your app?",validate:s=>typeof s=="string"&&s.trim().length>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||"App title is required"}]),{appName:t,appTitle:n}=e,i=p(t);await C(i),await $(t,i),await z(t,n,i),await M(i),await L(i),U(t)}async function C(e){const t=o(import.meta.dirname,"../template");await I(t,e),a.success("Successfully copied template files"),await g(o(e,"_gitignore"),o(e,".gitignore")),await g(o(e,"_tsconfig.json"),o(e,"tsconfig.json")),await g(o(e,"_package.json"),o(e,"package.json"))}async function $(e,t){const n=o(t,"package.json"),i=await h(n,{encoding:"utf-8"});i.name=e,await k(n,i,{encoding:"utf-8",spaces:2}),a.success("Successfully replaced name and title in package.json")}async function z(e,t,n){const i=o(n,"env/.env"),l=(await T(i,{encoding:"utf-8"})).replace(/APP_NAME=.*$/m,`APP_NAME=${e}`).replace(/APP_TITLE=.*$/m,`APP_TITLE=${t}`);await f(i,l),a.success("Successfully replaced name and title in .env file")}async function M(e){const t=w("Initializing git repository...").start();try{await m`git --version`,await m({cwd:e})`git init`,t.succeed("Successfully initialized git repository")}catch(n){t.fail("Failed to initialize git repository"),E("init",n)}}async function L(e){const t=w("Installing dependencies...").start();try{await m({cwd:e})("pnpm",["install"]),t.succeed("Successfully installed dependencies")}catch(n){t.fail("Failed to install dependencies"),E("init",n)}}function U(e){a.success(c.green(`
4
4
  VEF project created successfully!`)),console.log(c.blue(`
@@ -0,0 +1,8 @@
1
+ import { __commonJSMin as e } from "./_rolldown/runtime.js";
2
+ var o = /* @__PURE__ */ e(((t, r) => {
3
+ r.exports = {};
4
+ })), p = o();
5
+ export {
6
+ p as default,
7
+ o as require___vite_browser_external
8
+ };
@@ -0,0 +1,31 @@
1
+ var f = Object.create, u = Object.defineProperty, v = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, g = Object.getPrototypeOf, i = Object.prototype.hasOwnProperty, O = (e, r) => () => (e && (r = e(e = 0)), r), b = (e, r) => () => (r || (e((r = { exports: {} }).exports, r), e = null), r.exports), P = (e, r) => {
2
+ let t = {};
3
+ for (var o in e)
4
+ u(t, o, {
5
+ get: e[o],
6
+ enumerable: !0
7
+ });
8
+ return r || u(t, Symbol.toStringTag, { value: "Module" }), t;
9
+ }, p = (e, r, t, o) => {
10
+ if (r && typeof r == "object" || typeof r == "function")
11
+ for (var l = c(r), a = 0, _ = l.length, n; a < _; a++)
12
+ n = l[a], !i.call(e, n) && n !== t && u(e, n, {
13
+ get: ((s) => r[s]).bind(null, n),
14
+ enumerable: !(o = v(r, n)) || o.enumerable
15
+ });
16
+ return e;
17
+ }, d = (e, r, t) => (t = e != null ? f(g(e)) : {}, p(r || !e || !e.__esModule ? u(t, "default", {
18
+ value: e,
19
+ enumerable: !0
20
+ }) : t, e)), y = (e) => i.call(e, "module.exports") ? e["module.exports"] : p(u({}, "__esModule", { value: !0 }), e), q = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (r, t) => (typeof require < "u" ? require : r)[t] }) : e)(function(e) {
21
+ if (typeof require < "u") return require.apply(this, arguments);
22
+ throw Error('Calling `require` for "' + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
23
+ });
24
+ export {
25
+ b as __commonJSMin,
26
+ O as __esmMin,
27
+ P as __exportAll,
28
+ q as __require,
29
+ y as __toCommonJS,
30
+ d as __toESM
31
+ };
@@ -0,0 +1,81 @@
1
+ import { build as a } from "../_internal/.pnpm/index.js";
2
+ function p() {
3
+ return (t) => ({ JSXAttribute(n) {
4
+ const { value: e } = n;
5
+ e?.type === "JSXExpressionContainer" && e.expression?.type === "Literal" && e.expression.value === !0 && t.report({
6
+ fix: (r) => r.removeRange([n.name.range[1], e.range[1]]),
7
+ message: "Use shorthand boolean attribute instead of `={true}`.",
8
+ node: n
9
+ });
10
+ } });
11
+ }
12
+ function l() {
13
+ return (t) => ({ JSXElement(n) {
14
+ const e = n.openingElement;
15
+ if (!e)
16
+ return;
17
+ const { name: r } = e;
18
+ (r.type === "JSXIdentifier" && r.name === "Fragment" || r.type === "JSXMemberExpression" && r.object?.name === "React" && r.property?.name === "Fragment") && e.attributes.length === 0 && t.report({
19
+ message: "Use shorthand `<>...</>` instead of `<Fragment>...</Fragment>`.",
20
+ node: n
21
+ });
22
+ } });
23
+ }
24
+ function u() {
25
+ return (t) => ({ JSXText(n) {
26
+ if (!n.value.endsWith("$"))
27
+ return;
28
+ const { parent: e } = n;
29
+ if (!e?.children)
30
+ return;
31
+ const r = e.children.indexOf(n);
32
+ e.children[r + 1]?.type === "JSXExpressionContainer" && t.report({
33
+ message: "Unexpected `$` before JSX expression. Use `{...}` instead of `${...}`.",
34
+ node: n
35
+ });
36
+ } });
37
+ }
38
+ var m = a().use(p).use(l).use(u).getConfig();
39
+ function c(t) {
40
+ return t !== null && typeof t == "object" && "type" in t && t.type === "JSXOpeningElement";
41
+ }
42
+ var f = {
43
+ create(t) {
44
+ const e = (t.options[0] ?? {}).ignoreCase ?? !1;
45
+ return { JSXOpeningElement(r) {
46
+ if (!c(r))
47
+ return;
48
+ const i = {};
49
+ for (const s of r.attributes) {
50
+ if (s.type === "JSXSpreadAttribute")
51
+ continue;
52
+ let { name: o } = s.name;
53
+ if (typeof o == "string") {
54
+ if (e && (o = o.toLowerCase()), Object.hasOwn(i, o)) {
55
+ t.report({
56
+ messageId: "noDuplicateProps",
57
+ node: s
58
+ });
59
+ continue;
60
+ }
61
+ i[o] = !0;
62
+ }
63
+ }
64
+ } };
65
+ },
66
+ meta: {
67
+ docs: { description: "Disallow duplicate properties in JSX." },
68
+ messages: { noDuplicateProps: "No duplicate props allowed." },
69
+ schema: [{
70
+ additionalProperties: !1,
71
+ properties: { ignoreCase: { type: "boolean" } },
72
+ type: "object"
73
+ }],
74
+ type: "problem"
75
+ }
76
+ }, d = { rules: { "jsx-no-duplicate-props": f } }, x = { "local-react/jsx-no-duplicate-props": "error" };
77
+ export {
78
+ m as kitConfig,
79
+ d as localReactPlugin,
80
+ x as localReactRules
81
+ };
@@ -1,26 +1,27 @@
1
- import { localReactPlugin as l, localReactRules as c } from "./local-react-plugin.js";
2
- import p from "@eslint-community/eslint-plugin-eslint-comments/configs";
3
- import u from "@eslint-react/eslint-plugin";
4
- import m from "@eslint/js";
5
- import f from "@stylistic/eslint-plugin";
6
- import d from "@tanstack/eslint-plugin-query";
7
- import y from "@tanstack/eslint-plugin-router";
8
- import g from "eslint-config-flat-gitignore";
9
- import b from "eslint-plugin-antfu";
1
+ import { kitConfig as l, localReactPlugin as c, localReactRules as p } from "./custom-react-rules.js";
2
+ import u from "@eslint-community/eslint-plugin-eslint-comments/configs";
3
+ import m from "@eslint-react/eslint-plugin";
4
+ import f from "@eslint/js";
5
+ import d from "@stylistic/eslint-plugin";
6
+ import y from "@tanstack/eslint-plugin-query";
7
+ import g from "@tanstack/eslint-plugin-router";
8
+ import b from "eslint-config-flat-gitignore";
9
+ import w from "eslint-plugin-antfu";
10
10
  import o from "eslint-plugin-format";
11
- import w from "eslint-plugin-import-lite";
12
- import v from "eslint-plugin-jsdoc";
13
- import x from "eslint-plugin-perfectionist";
14
- import h from "eslint-plugin-react-dom";
15
- import k from "eslint-plugin-react-hooks";
16
- import j from "eslint-plugin-react-naming-convention";
17
- import S from "eslint-plugin-react-web-api";
18
- import R from "eslint-plugin-regexp";
19
- import _ from "eslint-plugin-unicorn";
20
- import E from "eslint-plugin-unused-imports";
21
- import { defineConfig as O } from "eslint/config";
11
+ import v from "eslint-plugin-import-lite";
12
+ import x from "eslint-plugin-jsdoc";
13
+ import h from "eslint-plugin-perfectionist";
14
+ import k from "eslint-plugin-react-dom";
15
+ import j from "eslint-plugin-react-hooks";
16
+ import S from "eslint-plugin-react-jsx";
17
+ import R from "eslint-plugin-react-naming-convention";
18
+ import _ from "eslint-plugin-react-web-api";
19
+ import E from "eslint-plugin-regexp";
20
+ import O from "eslint-plugin-unicorn";
21
+ import L from "eslint-plugin-unused-imports";
22
+ import { defineConfig as P } from "eslint/config";
22
23
  import t from "typescript-eslint";
23
- var L = {
24
+ var A = {
24
25
  arrowParens: "avoid",
25
26
  bracketSameLine: !1,
26
27
  bracketSpacing: !0,
@@ -37,7 +38,7 @@ var L = {
37
38
  tabWidth: 2,
38
39
  trailingComma: "none",
39
40
  useTabs: !1
40
- }, P = {
41
+ }, C = {
41
42
  "accessor-pairs": ["error", {
42
43
  enforceForClassMembers: !0,
43
44
  setWithoutGet: !0
@@ -194,7 +195,7 @@ var L = {
194
195
  }],
195
196
  "valid-typeof": ["error", { requireStringLiterals: !0 }],
196
197
  yoda: ["error", "never"]
197
- }, A = {
198
+ }, D = {
198
199
  "@typescript-eslint/array-type": ["error", {
199
200
  default: "array-simple",
200
201
  readonly: "array-simple"
@@ -220,14 +221,14 @@ var L = {
220
221
  "@typescript-eslint/no-unsafe-return": "off",
221
222
  "@typescript-eslint/no-unused-expressions": ["error", { enforceForJSX: !0 }],
222
223
  "@typescript-eslint/no-unused-vars": "off"
223
- }, C = {
224
+ }, I = {
224
225
  "import-lite/consistent-type-specifier-style": ["error", "top-level"],
225
226
  "import-lite/first": "error",
226
227
  "import-lite/newline-after-import": ["error", { count: 1 }],
227
228
  "import-lite/no-duplicates": "error",
228
229
  "import-lite/no-mutable-exports": "error",
229
230
  "import-lite/no-named-default": "error"
230
- }, D = {
231
+ }, T = {
231
232
  "unicorn/consistent-empty-array-spread": "error",
232
233
  "unicorn/error-message": "error",
233
234
  "unicorn/escape-case": "error",
@@ -284,7 +285,7 @@ var L = {
284
285
  "unicorn/require-module-specifiers": "off",
285
286
  "unicorn/text-encoding-identifier-case": ["error", { withDash: !0 }],
286
287
  "unicorn/throw-new-error": "error"
287
- }, I = {
288
+ }, U = {
288
289
  "react-dom/no-dangerously-set-innerhtml": "error",
289
290
  "react-dom/no-dangerously-set-innerhtml-with-children": "error",
290
291
  "react-dom/no-find-dom-node": "error",
@@ -292,7 +293,6 @@ var L = {
292
293
  "react-dom/no-hydrate": "error",
293
294
  "react-dom/no-missing-button-type": "error",
294
295
  "react-dom/no-missing-iframe-sandbox": "error",
295
- "react-dom/no-namespace": "error",
296
296
  "react-dom/no-render": "error",
297
297
  "react-dom/no-render-return-value": "error",
298
298
  "react-dom/no-script-url": "error",
@@ -303,9 +303,9 @@ var L = {
303
303
  "react-dom/no-use-form-state": "error",
304
304
  "react-dom/no-void-elements-with-children": "error",
305
305
  "@eslint-react/set-state-in-effect": "off",
306
- "@eslint-react/jsx-key-before-spread": "error",
307
- "@eslint-react/jsx-no-comment-textnodes": "error",
308
- "@eslint-react/jsx-shorthand-boolean": "error",
306
+ "react-jsx/no-key-after-spread": "error",
307
+ "react-jsx/no-comment-textnodes": "error",
308
+ "react-jsx/no-namespace": "error",
309
309
  "react-naming-convention/context-name": "error",
310
310
  "@eslint-react/no-access-state-in-setstate": "error",
311
311
  "@eslint-react/no-array-index-key": "error",
@@ -350,7 +350,7 @@ var L = {
350
350
  "react-web-api/no-leaked-interval": "error",
351
351
  "react-web-api/no-leaked-resize-observer": "error",
352
352
  "react-web-api/no-leaked-timeout": "error"
353
- }, T = { "react-hooks/exhaustive-deps": ["error", { additionalHooks: "^use(Deep|Shallow|Isomorphic)|^useDidUpdate" }] }, U = {
353
+ }, F = { "react-hooks/exhaustive-deps": ["error", { additionalHooks: "^use(Deep|Shallow|Isomorphic)|^useDidUpdate" }] }, J = {
354
354
  "jsdoc/check-line-alignment": [
355
355
  "error",
356
356
  "always",
@@ -363,14 +363,14 @@ var L = {
363
363
  "never",
364
364
  { startLines: 1 }
365
365
  ]
366
- }, F = {
366
+ }, X = {
367
367
  "antfu/consistent-chaining": "error",
368
368
  "antfu/consistent-list-newline": "error",
369
369
  "antfu/curly": "error",
370
370
  "antfu/if-newline": "error",
371
371
  "antfu/indent-unindent": "error",
372
372
  "antfu/top-level-function": "error"
373
- }, J = {
373
+ }, q = {
374
374
  "unused-imports/no-unused-imports": "error",
375
375
  "unused-imports/no-unused-vars": ["error", {
376
376
  args: "after-used",
@@ -378,7 +378,7 @@ var L = {
378
378
  vars: "all",
379
379
  varsIgnorePattern: "^_"
380
380
  }]
381
- }, X = {
381
+ }, N = {
382
382
  "perfectionist/sort-exports": ["error", {
383
383
  order: "asc",
384
384
  type: "natural"
@@ -438,7 +438,7 @@ var L = {
438
438
  elementNamePattern: "^on.+"
439
439
  }]
440
440
  }]
441
- }, q = {
441
+ }, W = {
442
442
  "@stylistic/array-bracket-newline": ["error", { multiline: !0 }],
443
443
  "@stylistic/array-element-newline": ["error", "consistent"],
444
444
  "@stylistic/arrow-parens": ["error", "as-needed"],
@@ -542,7 +542,7 @@ var L = {
542
542
  after: !0,
543
543
  before: !1
544
544
  }]
545
- }, N = {
545
+ }, B = {
546
546
  "@eslint-community/eslint-comments/disable-enable-pair": "off",
547
547
  "@eslint-community/eslint-comments/no-unlimited-disable": "off"
548
548
  };
@@ -553,13 +553,13 @@ function e(r, s) {
553
553
  languageOptions: { parser: o.parserPlain },
554
554
  plugins: { format: o },
555
555
  rules: { "format/prettier": ["error", {
556
- ...L,
556
+ ...A,
557
557
  parser: i,
558
558
  ...a
559
559
  }] }
560
560
  };
561
561
  }
562
- var W = [
562
+ var G = [
563
563
  "**/*.ts",
564
564
  "**/*.tsx",
565
565
  "**/*.mts",
@@ -568,7 +568,7 @@ var W = [
568
568
  "**/*.jsx",
569
569
  "**/*.mjs",
570
570
  "**/*.cjs"
571
- ], B = [
571
+ ], z = [
572
572
  "**/*.ts",
573
573
  "**/*.mts",
574
574
  "**/*.cts",
@@ -577,24 +577,24 @@ var W = [
577
577
  "**/*.mjs",
578
578
  "**/*.cjs"
579
579
  ], n = ["**/router.gen.ts"];
580
- function me(...r) {
581
- return O(g({
580
+ function ye(...r) {
581
+ return P(b({
582
582
  root: !0,
583
583
  strict: !0
584
584
  }), {
585
- files: W,
585
+ files: G,
586
586
  ignores: n,
587
587
  extends: [
588
- m.configs.recommended,
588
+ f.configs.recommended,
589
589
  t.configs.strict,
590
590
  t.configs.stylistic,
591
- u.configs["recommended-typescript"],
592
- k.configs.flat.recommended,
593
- w.configs.recommended,
594
- _.configs.recommended,
595
- p.recommended,
596
- R.configs["flat/recommended"],
597
- f.configs.customize({
591
+ m.configs["recommended-typescript"],
592
+ j.configs.flat.recommended,
593
+ v.configs.recommended,
594
+ O.configs.recommended,
595
+ u.recommended,
596
+ E.configs["flat/recommended"],
597
+ d.configs.customize({
598
598
  blockSpacing: !0,
599
599
  braceStyle: "1tbs",
600
600
  commaDangle: "never",
@@ -605,36 +605,38 @@ function me(...r) {
605
605
  semi: !0,
606
606
  severity: "error"
607
607
  }),
608
- d.configs["flat/recommended"],
609
- y.configs["flat/recommended"]
608
+ y.configs["flat/recommended"],
609
+ g.configs["flat/recommended"],
610
+ l
610
611
  ],
611
612
  plugins: {
612
- "react-dom": h,
613
- "react-naming-convention": j,
614
- "react-web-api": S,
615
- antfu: b,
616
- jsdoc: v,
617
- "local-react": l,
618
- perfectionist: x,
619
- "unused-imports": E
613
+ "react-dom": k,
614
+ "react-jsx": S,
615
+ "react-naming-convention": R,
616
+ "react-web-api": _,
617
+ antfu: w,
618
+ jsdoc: x,
619
+ "local-react": c,
620
+ perfectionist: h,
621
+ "unused-imports": L
620
622
  },
621
623
  rules: {
622
- ...P,
623
- ...A,
624
624
  ...C,
625
625
  ...D,
626
626
  ...I,
627
- ...c,
628
627
  ...T,
628
+ ...U,
629
+ ...p,
629
630
  ...F,
630
- ...J,
631
631
  ...X,
632
632
  ...q,
633
- ...U,
634
- ...N
633
+ ...N,
634
+ ...W,
635
+ ...J,
636
+ ...B
635
637
  }
636
638
  }, {
637
- files: B,
639
+ files: z,
638
640
  ignores: n,
639
641
  rules: { "no-restricted-syntax": [
640
642
  "error",
@@ -670,5 +672,5 @@ function me(...r) {
670
672
  }), ...r);
671
673
  }
672
674
  export {
673
- me as defineEslintConfig
675
+ ye as defineEslintConfig
674
676
  };
@@ -1,4 +1,5 @@
1
1
  import { Linter, Rule } from 'eslint';
2
+ export declare const kitConfig: Linter.Config;
2
3
  export declare const localReactPlugin: {
3
4
  rules: {
4
5
  "jsx-no-duplicate-props": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vef-framework-react/dev",
3
3
  "type": "module",
4
- "version": "2.1.5",
4
+ "version": "2.1.7",
5
5
  "private": false,
6
6
  "description": "Dev tools for VEF framework",
7
7
  "author": {
@@ -68,30 +68,30 @@
68
68
  "@commitlint/config-conventional": "^20.5.0",
69
69
  "@emotion/babel-plugin": "^11.13.5",
70
70
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
71
- "@eslint-react/eslint-plugin": "^3.0.0",
71
+ "@eslint-react/eslint-plugin": "^4.2.3",
72
72
  "@eslint/js": "^10.0.1",
73
- "@rolldown/plugin-babel": "^0.2.2",
73
+ "@rolldown/plugin-babel": "^0.2.3",
74
74
  "@stylistic/eslint-plugin": "^5.10.0",
75
75
  "@svgr/plugin-svgo": "^8.1.0",
76
- "@tanstack/eslint-plugin-query": "^5.96.0",
76
+ "@tanstack/eslint-plugin-query": "^5.100.1",
77
77
  "@tanstack/eslint-plugin-router": "^1.161.6",
78
- "@tanstack/router-plugin": "^1.167.12",
79
- "@typescript-eslint/utils": "^8.58.0",
78
+ "@tanstack/router-plugin": "^1.167.23",
79
+ "@typescript-eslint/utils": "^8.59.0",
80
80
  "@vitejs/plugin-react": "^6.0.1",
81
81
  "babel-plugin-react-compiler": "1.0.0",
82
82
  "chalk": "^5.6.2",
83
83
  "commander": "^14.0.3",
84
84
  "consola": "^3.4.2",
85
- "dotenv": "^17.3.1",
85
+ "dotenv": "^17.4.2",
86
86
  "eslint-config-flat-gitignore": "^2.3.0",
87
87
  "eslint-plugin-antfu": "^3.2.2",
88
88
  "eslint-plugin-format": "^2.0.1",
89
89
  "eslint-plugin-import-lite": "^0.6.0",
90
- "eslint-plugin-perfectionist": "^5.7.0",
91
- "eslint-plugin-react-dom": "^3.0.0",
92
- "eslint-plugin-react-hooks": "7.0.1",
93
- "eslint-plugin-react-naming-convention": "^3.0.0",
94
- "eslint-plugin-react-web-api": "^3.0.0",
90
+ "eslint-plugin-perfectionist": "^5.9.0",
91
+ "eslint-plugin-react-dom": "^4.2.3",
92
+ "eslint-plugin-react-hooks": "7.1.1",
93
+ "eslint-plugin-react-naming-convention": "^4.2.3",
94
+ "eslint-plugin-react-web-api": "^4.2.3",
95
95
  "eslint-plugin-regexp": "^3.1.0",
96
96
  "eslint-plugin-unicorn": "^64.0.0",
97
97
  "eslint-plugin-unused-imports": "^4.4.1",
@@ -99,37 +99,39 @@
99
99
  "fs-extra": "^11.3.4",
100
100
  "html-minifier-terser": "^7.2.0",
101
101
  "jotai-babel": "^0.1.0",
102
- "ora": "^9.3.0",
102
+ "ora": "^9.4.0",
103
103
  "prompts": "^2.4.2",
104
104
  "radashi": "^12.7.2",
105
105
  "recast": "^0.23.11",
106
- "sass-embedded": "^1.98.0",
107
- "typescript-eslint": "^8.58.0",
106
+ "sass-embedded": "^1.99.0",
107
+ "typescript-eslint": "^8.59.0",
108
108
  "unplugin-config": "^0.1.5",
109
109
  "unplugin-icons": "^23.0.1",
110
110
  "vite-plugin-eslint2": "^5.1.0",
111
111
  "vite-plugin-inspect": "^11.3.3",
112
112
  "vite-plugin-stylelint": "^6.1.0",
113
- "vite-plugin-svgr": "^5.0.0"
113
+ "vite-plugin-svgr": "^5.2.0"
114
114
  },
115
115
  "devDependencies": {
116
116
  "@commitlint/cli": "^20.5.0",
117
117
  "@commitlint/types": "^20.5.0",
118
+ "@eslint-react/kit": "^4.2.3",
118
119
  "@stylistic/stylelint-config": "^5.0.0",
119
120
  "@types/html-minifier-terser": "^7.0.2",
120
121
  "@types/prompts": "^2.4.9",
121
- "eslint": "^10.1.0",
122
- "eslint-plugin-jsdoc": "^62.8.1",
122
+ "eslint": "^10.2.1",
123
+ "eslint-plugin-jsdoc": "^62.9.0",
124
+ "eslint-plugin-react-jsx": "^4.2.3",
123
125
  "husky": "^9.1.7",
124
126
  "lint-staged": "^16.4.0",
125
- "stylelint": "^17.6.0",
127
+ "stylelint": "^17.9.0",
126
128
  "stylelint-config-recess-order": "^7.7.0",
127
129
  "stylelint-config-recommended": "^18.0.0",
128
130
  "stylelint-config-standard-scss": "^17.0.0",
129
131
  "stylelint-order": "^8.1.1",
130
132
  "tsup": "^8.5.1",
131
- "type-fest": "^5.5.0",
132
- "vite": "^8.0.3"
133
+ "type-fest": "^5.6.0",
134
+ "vite": "^8.0.10"
133
135
  },
134
136
  "scripts": {
135
137
  "clean": "rimraf dist",
@@ -1 +0,0 @@
1
- function i(e){return e!==null&&typeof e=="object"&&"type"in e&&e.type==="JSXOpeningElement"}var s={create(e){const r=(e.options[0]??{}).ignoreCase??!1;return{JSXOpeningElement(a){if(!i(a))return;const n={};for(const o of a.attributes){if(o.type==="JSXSpreadAttribute")continue;let{name:t}=o.name;if(typeof t=="string"){if(r&&(t=t.toLowerCase()),Object.hasOwn(n,t)){e.report({messageId:"noDuplicateProps",node:o});continue}n[t]=!0}}}}},meta:{docs:{description:"Disallow duplicate properties in JSX."},messages:{noDuplicateProps:"No duplicate props allowed."},schema:[{additionalProperties:!1,properties:{ignoreCase:{type:"boolean"}},type:"object"}],type:"problem"}},l={rules:{"jsx-no-duplicate-props":s}},p={"local-react/jsx-no-duplicate-props":"error"};exports.localReactPlugin=l;exports.localReactRules=p;
@@ -1,42 +0,0 @@
1
- function a(e) {
2
- return e !== null && typeof e == "object" && "type" in e && e.type === "JSXOpeningElement";
3
- }
4
- var p = {
5
- create(e) {
6
- const i = (e.options[0] ?? {}).ignoreCase ?? !1;
7
- return { JSXOpeningElement(r) {
8
- if (!a(r))
9
- return;
10
- const n = {};
11
- for (const o of r.attributes) {
12
- if (o.type === "JSXSpreadAttribute")
13
- continue;
14
- let { name: t } = o.name;
15
- if (typeof t == "string") {
16
- if (i && (t = t.toLowerCase()), Object.hasOwn(n, t)) {
17
- e.report({
18
- messageId: "noDuplicateProps",
19
- node: o
20
- });
21
- continue;
22
- }
23
- n[t] = !0;
24
- }
25
- }
26
- } };
27
- },
28
- meta: {
29
- docs: { description: "Disallow duplicate properties in JSX." },
30
- messages: { noDuplicateProps: "No duplicate props allowed." },
31
- schema: [{
32
- additionalProperties: !1,
33
- properties: { ignoreCase: { type: "boolean" } },
34
- type: "object"
35
- }],
36
- type: "problem"
37
- }
38
- }, l = { rules: { "jsx-no-duplicate-props": p } }, c = { "local-react/jsx-no-duplicate-props": "error" };
39
- export {
40
- l as localReactPlugin,
41
- c as localReactRules
42
- };