@devup-ui/eslint-plugin 1.0.14 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- var{defineProperty:g,getOwnPropertyNames:R,getOwnPropertyDescriptor:N}=Object,L=Object.prototype.hasOwnProperty;var d=new WeakMap,U=(t)=>{var s=d.get(t),r;if(s)return s;if(s=g({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function")R(t).map((e)=>!L.call(s,e)&&g(s,e,{get:()=>t[e],enumerable:!(r=N(t,e))||r.enumerable}));return d.set(t,s),s};var h=(t,s)=>{for(var r in s)g(t,r,{get:s[r],enumerable:!0,configurable:!0,set:(e)=>s[r]=()=>e})};var M={};h(M,{rules:()=>v,default:()=>B,configs:()=>I});module.exports=U(M);var v={};h(v,{styleOrderRange:()=>x,noUselessTailingNulls:()=>T,noUselessResponsive:()=>S,noDuplicateValue:()=>y,cssUtilsLiteralOnly:()=>f});var m=require("@typescript-eslint/utils");var n=require("@typescript-eslint/utils"),C={css:"css",globalCss:"globalCss",keyframes:"keyframes",Box:"Box",Button:"Button",Text:"Text",Image:"Image",Flex:"Flex",Grid:"Grid",Center:"Center",VStack:"VStack",Input:"Input"};class p{imports;importObject;constructor(){this.imports={},this.importObject=new Set}addImportByDeclaration(t){if(t.source.value!=="@devup-ui/react")return;for(let s of t.specifiers)switch(s.type){case n.AST_NODE_TYPES.ImportSpecifier:this.addImport(s.local.name,s.imported.type===n.AST_NODE_TYPES.Literal?s.imported.value:s.imported.name);break;case n.AST_NODE_TYPES.ImportDefaultSpecifier:this.importObject.add(s.local.name);break;case n.AST_NODE_TYPES.ImportNamespaceSpecifier:this.importObject.add(s.local.name);break}}addImport(t,s){this.imports[t]=s}checkContextType(t){switch(t.type){case n.AST_NODE_TYPES.JSXOpeningElement:{if(this.checkDevupUIComponent(t.name))return"COMPONENT";break}case n.AST_NODE_TYPES.CallExpression:{if(this.checkDevupUIUtil(t))return"UTIL";break}}}checkDevupUIUtil(t){return t.callee.type===n.AST_NODE_TYPES.Identifier&&t.callee.name in this.imports||t.callee.type===n.AST_NODE_TYPES.MemberExpression&&t.callee.object.type===n.AST_NODE_TYPES.Identifier&&this.importObject.has(t.callee.object.name)&&t.callee.property.type===n.AST_NODE_TYPES.Identifier&&t.callee.property.name in C}checkDevupUIComponent(t){return t.type===n.AST_NODE_TYPES.JSXIdentifier&&t.name in this.imports||t.type===n.AST_NODE_TYPES.JSXMemberExpression&&t.object.type===n.AST_NODE_TYPES.JSXIdentifier&&this.importObject.has(t.object.name)&&t.property.name in C}}var D=m.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`),f=D({name:"css-utils-literal-only",defaultOptions:[],meta:{schema:[],messages:{cssUtilsLiteralOnly:"CSS utils should only be used with literal values."},type:"problem",docs:{description:"CSS utils should only be used with literal values."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===m.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Identifier(e){if(!r||e.name==="undefined")return;let l=t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length);for(let o of l)switch(o.type){case m.AST_NODE_TYPES.Property:if([...l,e].indexOf(o.key)!==-1)return;break;case m.AST_NODE_TYPES.ConditionalExpression:if([...l,e].indexOf(o.test)!==-1)return;break;case m.AST_NODE_TYPES.MemberExpression:if([...l,e].indexOf(o.property)!==-1)return;break;case m.AST_NODE_TYPES.CallExpression:if([...l,e].indexOf(o.callee)!==-1)return;break}t.report({node:e,messageId:"cssUtilsLiteralOnly"})}}}});var u=require("@typescript-eslint/utils");var J=u.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function O(t){if(t.type===u.AST_NODE_TYPES.Literal)return t.value?.toString();return t.quasis[0].value.raw}function X(t,s){for(let r=0;r<t.elements.length;r++){let e=t.elements[r];if(e?.type===u.AST_NODE_TYPES.Literal||e?.type===u.AST_NODE_TYPES.TemplateLiteral){if(r===0)continue;let l=O(e);if(l===void 0)continue;let o=t.elements[r-1];if((o?.type===u.AST_NODE_TYPES.Literal||o?.type===u.AST_NODE_TYPES.TemplateLiteral)&&l===O(o))s.report({node:t,messageId:"duplicateValue",data:{value:l},fix(k){return k.replaceText(e,"null")}})}}}var y=J({name:"no-duplicate-value",defaultOptions:[],meta:{schema:[],messages:{duplicateValue:"Duplicate value found: {{value}}."},type:"problem",fixable:"code",docs:{description:"No duplicate value."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===u.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r)X(e,t)}}}});var a=require("@typescript-eslint/utils");var A=a.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function w(t,s,r){if(t.elements.length!==1)return;let e=t.elements[0];for(let l of s)switch(l.type){case a.AST_NODE_TYPES.ConditionalExpression:if(s.indexOf(l.test)!==-1)return;break;case a.AST_NODE_TYPES.JSXExpressionContainer:case a.AST_NODE_TYPES.Property:case a.AST_NODE_TYPES.JSXOpeningElement:case a.AST_NODE_TYPES.CallExpression:case a.AST_NODE_TYPES.ObjectExpression:case a.AST_NODE_TYPES.JSXAttribute:break;default:return}r.report({node:t,messageId:"uselessResponsive",fix(l){return l.replaceText(t,r.sourceCode.getText(e))}})}var S=A({name:"no-useless-responsive",defaultOptions:[],meta:{schema:[],messages:{uselessResponsive:"Responsive are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless responsive."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===a.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===a.AST_NODE_TYPES.Identifier&&["imports","params","fontFaces"].includes(e.key.name))r=null},ArrayExpression(e){if(r)w(e,t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length),t)}}}});var c=require("@typescript-eslint/utils");var j=c.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function P(t,s){let r=0;for(let e=t.elements.length-1;e>=0;e--){let l=t.elements[e];if(l?.type===c.AST_NODE_TYPES.Literal&&l.value===null)r++;else break}if(r===0)return;s.report({node:t,messageId:"uselessTailingNulls",fix(e){return e.removeRange([t.elements.length>r?t.elements[t.elements.length-r-1].range[1]:t.elements[0].range[0],t.elements[t.elements.length-1].range[1]])}})}var T=j({name:"no-useless-tailing-nulls",defaultOptions:[],meta:{schema:[],messages:{uselessTailingNulls:"Trailing nulls are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless tailing nulls."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===c.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r&&e.parent?.type!==c.AST_NODE_TYPES.MemberExpression)P(e,t)}}}});var i=require("@typescript-eslint/utils");var _=i.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function E(t,s){let r=null;if(t.type===i.AST_NODE_TYPES.Literal){if(typeof t.value==="number")r=t.value;else if(typeof t.value==="string"){let e=parseInt(t.value,10);if(!isNaN(e))r=e}}else if(t.type===i.AST_NODE_TYPES.UnaryExpression)if(t.argument.type===i.AST_NODE_TYPES.Literal&&typeof t.argument.value==="number"&&(t.operator==="-"||t.operator==="+"))r=t.operator==="-"?-t.argument.value:t.argument.value;else{s.report({node:t,messageId:"styleOrderRange"});return}else if(t.type===i.AST_NODE_TYPES.TemplateLiteral){if(t.expressions.length>0){s.report({node:t,messageId:"styleOrderRange"});return}else if(r=parseInt(t.quasis[0].value.raw,10),isNaN(r)){s.report({node:t,messageId:"styleOrderRange"});return}}if(r===null||r<1||r>254)s.report({node:t,messageId:"styleOrderRange"})}var x=_({name:"style-order-range",defaultOptions:[],meta:{schema:[],messages:{styleOrderRange:"styleOrder prop must be a number greater than 0 and less than 255.",wrongType:"styleOrder prop must be a number or a string representing a number."},type:"problem",docs:{description:"Ensures styleOrder prop is within valid range (0 < value < 255)."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===i.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===i.AST_NODE_TYPES.Identifier&&e.key.name==="styleOrder"&&e.value.type!==i.AST_NODE_TYPES.AssignmentPattern&&e.value.type!==i.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)E(e.value,t)},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},JSXAttribute(e){if(!r)return;if(e.name.type!==i.AST_NODE_TYPES.JSXIdentifier||e.name.name!=="styleOrder"||!e.value)return;if(e.value.type===i.AST_NODE_TYPES.JSXExpressionContainer&&e.value.expression.type!==i.AST_NODE_TYPES.JSXEmptyExpression)E(e.value.expression,t);else if(e.value.type===i.AST_NODE_TYPES.Literal)E(e.value,t);else t.report({node:e,messageId:"wrongType"})}}}});var b=[{plugins:{"@devup-ui":{rules:{"no-useless-tailing-nulls":T,"css-utils-literal-only":f,"no-duplicate-value":y,"no-useless-responsive":S,"style-order-range":x}}},rules:{"@devup-ui/no-useless-tailing-nulls":"error","@devup-ui/css-utils-literal-only":"error","@devup-ui/no-duplicate-value":"error","@devup-ui/no-useless-responsive":"error","@devup-ui/style-order-range":"error"}}];var I={recommended:b},B={configs:I};
1
+ var{defineProperty:y,getOwnPropertyNames:L,getOwnPropertyDescriptor:U}=Object,D=Object.prototype.hasOwnProperty;var O=new WeakMap,J=(t)=>{var s=O.get(t),r;if(s)return s;if(s=y({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function")L(t).map((e)=>!D.call(s,e)&&y(s,e,{get:()=>t[e],enumerable:!(r=U(t,e))||r.enumerable}));return O.set(t,s),s};var b=(t,s)=>{for(var r in s)y(t,r,{get:s[r],enumerable:!0,configurable:!0,set:(e)=>s[r]=()=>e})};var Y={};b(Y,{rules:()=>h,default:()=>V,configs:()=>N});module.exports=J(Y);var h={};b(h,{styleOrderRange:()=>d,noUselessTailingNulls:()=>x,noUselessResponsive:()=>T,noDuplicateValue:()=>E,cssUtilsLiteralOnly:()=>S});var m=require("@typescript-eslint/utils");var n=require("@typescript-eslint/utils"),I={css:"css",globalCss:"globalCss",keyframes:"keyframes",Box:"Box",Button:"Button",Text:"Text",Image:"Image",Flex:"Flex",Grid:"Grid",Center:"Center",VStack:"VStack",Input:"Input"};class o{imports;importObject;constructor(){this.imports={},this.importObject=new Set}addImportByDeclaration(t){if(t.source.value!=="@devup-ui/react")return;for(let s of t.specifiers)switch(s.type){case n.AST_NODE_TYPES.ImportSpecifier:this.addImport(s.local.name,s.imported.type===n.AST_NODE_TYPES.Literal?s.imported.value:s.imported.name);break;case n.AST_NODE_TYPES.ImportDefaultSpecifier:this.importObject.add(s.local.name);break;case n.AST_NODE_TYPES.ImportNamespaceSpecifier:this.importObject.add(s.local.name);break}}addImport(t,s){this.imports[t]=s}checkContextType(t){switch(t.type){case n.AST_NODE_TYPES.JSXOpeningElement:{if(this.checkDevupUIComponent(t.name))return"COMPONENT";break}case n.AST_NODE_TYPES.CallExpression:{if(this.checkDevupUIUtil(t))return"UTIL";break}}}checkDevupUIUtil(t){return t.callee.type===n.AST_NODE_TYPES.Identifier&&t.callee.name in this.imports||t.callee.type===n.AST_NODE_TYPES.MemberExpression&&t.callee.object.type===n.AST_NODE_TYPES.Identifier&&this.importObject.has(t.callee.object.name)&&t.callee.property.type===n.AST_NODE_TYPES.Identifier&&t.callee.property.name in I}checkDevupUIComponent(t){return t.type===n.AST_NODE_TYPES.JSXIdentifier&&t.name in this.imports||t.type===n.AST_NODE_TYPES.JSXMemberExpression&&t.object.type===n.AST_NODE_TYPES.JSXIdentifier&&this.importObject.has(t.object.name)&&t.property.name in I}}var X=m.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`),S=X({name:"css-utils-literal-only",defaultOptions:[],meta:{schema:[],messages:{cssUtilsLiteralOnly:"CSS utils should only be used with literal values."},type:"problem",docs:{description:"CSS utils should only be used with literal values."}},create(t){let s=new o,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===m.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Identifier(e){if(!r||e.name==="undefined")return;let l=t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length);for(let a of l)switch(a.type){case m.AST_NODE_TYPES.Property:if([...l,e].indexOf(a.key)!==-1)return;break;case m.AST_NODE_TYPES.ConditionalExpression:if([...l,e].indexOf(a.test)!==-1)return;break;case m.AST_NODE_TYPES.MemberExpression:if([...l,e].indexOf(a.property)!==-1)return;break;case m.AST_NODE_TYPES.CallExpression:if([...l,e].indexOf(a.callee)!==-1)return;break}t.report({node:e,messageId:"cssUtilsLiteralOnly"})}}}});var u=require("@typescript-eslint/utils");var A=u.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function k(t){if(t.type===u.AST_NODE_TYPES.Literal)return t.value?.toString();return t.quasis[0].value.raw}function w(t,s){for(let r=0;r<t.elements.length;r++){let e=t.elements[r];if(e?.type===u.AST_NODE_TYPES.Literal||e?.type===u.AST_NODE_TYPES.TemplateLiteral){if(r===0)continue;let l=k(e);if(l===void 0)continue;let a=t.elements[r-1];if((a?.type===u.AST_NODE_TYPES.Literal||a?.type===u.AST_NODE_TYPES.TemplateLiteral)&&l===k(a))s.report({node:t,messageId:"duplicateValue",data:{value:l},fix(g){return g.replaceText(e,"null")}})}}}var E=A({name:"no-duplicate-value",defaultOptions:[],meta:{schema:[],messages:{duplicateValue:"Duplicate value found: {{value}}."},type:"problem",fixable:"code",docs:{description:"No duplicate value."}},create(t){let s=new o,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===u.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r)w(e,t)}}}});var p=require("@typescript-eslint/utils");var j=p.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function P(t,s,r){if(t.elements.length!==1)return;let e=t.elements[0];if(!e)return;for(let l of s)switch(l.type){case p.AST_NODE_TYPES.ConditionalExpression:if(s.indexOf(l.test)!==-1)return;break;case p.AST_NODE_TYPES.JSXExpressionContainer:case p.AST_NODE_TYPES.Property:case p.AST_NODE_TYPES.JSXOpeningElement:case p.AST_NODE_TYPES.CallExpression:case p.AST_NODE_TYPES.ObjectExpression:case p.AST_NODE_TYPES.JSXAttribute:break;default:return}r.report({node:t,messageId:"uselessResponsive",fix(l){return l.replaceText(t,r.sourceCode.getText(e))}})}var T=j({name:"no-useless-responsive",defaultOptions:[],meta:{schema:[],messages:{uselessResponsive:"Responsive are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless responsive."}},create(t){let s=new o,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===p.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===p.AST_NODE_TYPES.Identifier&&["imports","params","fontFaces"].includes(e.key.name))r=null},ArrayExpression(e){if(r)P(e,t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length),t)}}}});var c=require("@typescript-eslint/utils");var _=c.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function B(t,s){let r=0;for(let f=t.elements.length-1;f>=0;f--){let C=t.elements[f];if(C?.type===c.AST_NODE_TYPES.Literal&&C.value===null)r++;else break}if(r===0)return;let e=t.elements[t.elements.length-r-1],l=t.elements[0],a=t.elements[t.elements.length-1];if(!a||t.elements.length===r&&!l)return;let g=t.elements.length>r&&e?e.range[1]:l?.range[0];if(g===void 0)return;s.report({node:t,messageId:"uselessTailingNulls",fix(f){return f.removeRange([g,a.range[1]])}})}var x=_({name:"no-useless-tailing-nulls",defaultOptions:[],meta:{schema:[],messages:{uselessTailingNulls:"Trailing nulls are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless tailing nulls."}},create(t){let s=new o,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===c.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r&&e.parent?.type!==c.AST_NODE_TYPES.MemberExpression)B(e,t)}}}});var i=require("@typescript-eslint/utils");var M=i.ESLintUtils.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function v(t,s){let r=null;if(t.type===i.AST_NODE_TYPES.Literal){if(typeof t.value==="number")r=t.value;else if(typeof t.value==="string"){let e=parseInt(t.value,10);if(!Number.isNaN(e))r=e}}else if(t.type===i.AST_NODE_TYPES.UnaryExpression)if(t.argument.type===i.AST_NODE_TYPES.Literal&&typeof t.argument.value==="number"&&(t.operator==="-"||t.operator==="+"))r=t.operator==="-"?-t.argument.value:t.argument.value;else{s.report({node:t,messageId:"styleOrderRange"});return}else if(t.type===i.AST_NODE_TYPES.TemplateLiteral){if(t.expressions.length>0){s.report({node:t,messageId:"styleOrderRange"});return}else if(r=parseInt(t.quasis[0].value.raw,10),Number.isNaN(r)){s.report({node:t,messageId:"styleOrderRange"});return}}if(r===null||r<1||r>254)s.report({node:t,messageId:"styleOrderRange"})}var d=M({name:"style-order-range",defaultOptions:[],meta:{schema:[],messages:{styleOrderRange:"styleOrder prop must be a number greater than 0 and less than 255.",wrongType:"styleOrder prop must be a number or a string representing a number."},type:"problem",docs:{description:"Ensures styleOrder prop is within valid range (0 < value < 255)."}},create(t){let s=new o,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===i.AST_NODE_TYPES.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===i.AST_NODE_TYPES.Identifier&&e.key.name==="styleOrder"&&e.value.type!==i.AST_NODE_TYPES.AssignmentPattern&&e.value.type!==i.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)v(e.value,t)},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},JSXAttribute(e){if(!r)return;if(e.name.type!==i.AST_NODE_TYPES.JSXIdentifier||e.name.name!=="styleOrder"||!e.value)return;if(e.value.type===i.AST_NODE_TYPES.JSXExpressionContainer&&e.value.expression.type!==i.AST_NODE_TYPES.JSXEmptyExpression)v(e.value.expression,t);else if(e.value.type===i.AST_NODE_TYPES.Literal)v(e.value,t);else t.report({node:e,messageId:"wrongType"})}}}});var R=[{plugins:{"@devup-ui":{rules:{"no-useless-tailing-nulls":x,"css-utils-literal-only":S,"no-duplicate-value":E,"no-useless-responsive":T,"style-order-range":d}}},rules:{"@devup-ui/no-useless-tailing-nulls":"error","@devup-ui/css-utils-literal-only":"error","@devup-ui/no-duplicate-value":"error","@devup-ui/no-useless-responsive":"error","@devup-ui/style-order-range":"error"}}];var N={recommended:R},V={configs:N};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- var O=Object.defineProperty;var b=(t,s)=>{for(var r in s)O(t,r,{get:s[r],enumerable:!0,configurable:!0,set:(e)=>s[r]=()=>e})};var d={};b(d,{styleOrderRange:()=>E,noUselessTailingNulls:()=>S,noUselessResponsive:()=>f,noDuplicateValue:()=>g,cssUtilsLiteralOnly:()=>c});import{AST_NODE_TYPES as m,ESLintUtils as I}from"@typescript-eslint/utils";import{AST_NODE_TYPES as i}from"@typescript-eslint/utils";var x={css:"css",globalCss:"globalCss",keyframes:"keyframes",Box:"Box",Button:"Button",Text:"Text",Image:"Image",Flex:"Flex",Grid:"Grid",Center:"Center",VStack:"VStack",Input:"Input"};class a{imports;importObject;constructor(){this.imports={},this.importObject=new Set}addImportByDeclaration(t){if(t.source.value!=="@devup-ui/react")return;for(let s of t.specifiers)switch(s.type){case i.ImportSpecifier:this.addImport(s.local.name,s.imported.type===i.Literal?s.imported.value:s.imported.name);break;case i.ImportDefaultSpecifier:this.importObject.add(s.local.name);break;case i.ImportNamespaceSpecifier:this.importObject.add(s.local.name);break}}addImport(t,s){this.imports[t]=s}checkContextType(t){switch(t.type){case i.JSXOpeningElement:{if(this.checkDevupUIComponent(t.name))return"COMPONENT";break}case i.CallExpression:{if(this.checkDevupUIUtil(t))return"UTIL";break}}}checkDevupUIUtil(t){return t.callee.type===i.Identifier&&t.callee.name in this.imports||t.callee.type===i.MemberExpression&&t.callee.object.type===i.Identifier&&this.importObject.has(t.callee.object.name)&&t.callee.property.type===i.Identifier&&t.callee.property.name in x}checkDevupUIComponent(t){return t.type===i.JSXIdentifier&&t.name in this.imports||t.type===i.JSXMemberExpression&&t.object.type===i.JSXIdentifier&&this.importObject.has(t.object.name)&&t.property.name in x}}var k=I.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`),c=k({name:"css-utils-literal-only",defaultOptions:[],meta:{schema:[],messages:{cssUtilsLiteralOnly:"CSS utils should only be used with literal values."},type:"problem",docs:{description:"CSS utils should only be used with literal values."}},create(t){let s=new a,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===m.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Identifier(e){if(!r||e.name==="undefined")return;let l=t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length);for(let p of l)switch(p.type){case m.Property:if([...l,e].indexOf(p.key)!==-1)return;break;case m.ConditionalExpression:if([...l,e].indexOf(p.test)!==-1)return;break;case m.MemberExpression:if([...l,e].indexOf(p.property)!==-1)return;break;case m.CallExpression:if([...l,e].indexOf(p.callee)!==-1)return;break}t.report({node:e,messageId:"cssUtilsLiteralOnly"})}}}});import{AST_NODE_TYPES as u,ESLintUtils as R}from"@typescript-eslint/utils";var N=R.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function v(t){if(t.type===u.Literal)return t.value?.toString();return t.quasis[0].value.raw}function L(t,s){for(let r=0;r<t.elements.length;r++){let e=t.elements[r];if(e?.type===u.Literal||e?.type===u.TemplateLiteral){if(r===0)continue;let l=v(e);if(l===void 0)continue;let p=t.elements[r-1];if((p?.type===u.Literal||p?.type===u.TemplateLiteral)&&l===v(p))s.report({node:t,messageId:"duplicateValue",data:{value:l},fix(C){return C.replaceText(e,"null")}})}}}var g=N({name:"no-duplicate-value",defaultOptions:[],meta:{schema:[],messages:{duplicateValue:"Duplicate value found: {{value}}."},type:"problem",fixable:"code",docs:{description:"No duplicate value."}},create(t){let s=new a,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===u.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r)L(e,t)}}}});import{AST_NODE_TYPES as o,ESLintUtils as U}from"@typescript-eslint/utils";var D=U.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function J(t,s,r){if(t.elements.length!==1)return;let e=t.elements[0];for(let l of s)switch(l.type){case o.ConditionalExpression:if(s.indexOf(l.test)!==-1)return;break;case o.JSXExpressionContainer:case o.Property:case o.JSXOpeningElement:case o.CallExpression:case o.ObjectExpression:case o.JSXAttribute:break;default:return}r.report({node:t,messageId:"uselessResponsive",fix(l){return l.replaceText(t,r.sourceCode.getText(e))}})}var f=D({name:"no-useless-responsive",defaultOptions:[],meta:{schema:[],messages:{uselessResponsive:"Responsive are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless responsive."}},create(t){let s=new a,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===o.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===o.Identifier&&["imports","params","fontFaces"].includes(e.key.name))r=null},ArrayExpression(e){if(r)J(e,t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length),t)}}}});import{AST_NODE_TYPES as y,ESLintUtils as X}from"@typescript-eslint/utils";var A=X.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function w(t,s){let r=0;for(let e=t.elements.length-1;e>=0;e--){let l=t.elements[e];if(l?.type===y.Literal&&l.value===null)r++;else break}if(r===0)return;s.report({node:t,messageId:"uselessTailingNulls",fix(e){return e.removeRange([t.elements.length>r?t.elements[t.elements.length-r-1].range[1]:t.elements[0].range[0],t.elements[t.elements.length-1].range[1]])}})}var S=A({name:"no-useless-tailing-nulls",defaultOptions:[],meta:{schema:[],messages:{uselessTailingNulls:"Trailing nulls are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless tailing nulls."}},create(t){let s=new a,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===y.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r&&e.parent?.type!==y.MemberExpression)w(e,t)}}}});import{AST_NODE_TYPES as n,ESLintUtils as j}from"@typescript-eslint/utils";var P=j.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function T(t,s){let r=null;if(t.type===n.Literal){if(typeof t.value==="number")r=t.value;else if(typeof t.value==="string"){let e=parseInt(t.value,10);if(!isNaN(e))r=e}}else if(t.type===n.UnaryExpression)if(t.argument.type===n.Literal&&typeof t.argument.value==="number"&&(t.operator==="-"||t.operator==="+"))r=t.operator==="-"?-t.argument.value:t.argument.value;else{s.report({node:t,messageId:"styleOrderRange"});return}else if(t.type===n.TemplateLiteral){if(t.expressions.length>0){s.report({node:t,messageId:"styleOrderRange"});return}else if(r=parseInt(t.quasis[0].value.raw,10),isNaN(r)){s.report({node:t,messageId:"styleOrderRange"});return}}if(r===null||r<1||r>254)s.report({node:t,messageId:"styleOrderRange"})}var E=P({name:"style-order-range",defaultOptions:[],meta:{schema:[],messages:{styleOrderRange:"styleOrder prop must be a number greater than 0 and less than 255.",wrongType:"styleOrder prop must be a number or a string representing a number."},type:"problem",docs:{description:"Ensures styleOrder prop is within valid range (0 < value < 255)."}},create(t){let s=new a,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===n.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===n.Identifier&&e.key.name==="styleOrder"&&e.value.type!==n.AssignmentPattern&&e.value.type!==n.TSEmptyBodyFunctionExpression)T(e.value,t)},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},JSXAttribute(e){if(!r)return;if(e.name.type!==n.JSXIdentifier||e.name.name!=="styleOrder"||!e.value)return;if(e.value.type===n.JSXExpressionContainer&&e.value.expression.type!==n.JSXEmptyExpression)T(e.value.expression,t);else if(e.value.type===n.Literal)T(e.value,t);else t.report({node:e,messageId:"wrongType"})}}}});var h=[{plugins:{"@devup-ui":{rules:{"no-useless-tailing-nulls":S,"css-utils-literal-only":c,"no-duplicate-value":g,"no-useless-responsive":f,"style-order-range":E}}},rules:{"@devup-ui/no-useless-tailing-nulls":"error","@devup-ui/css-utils-literal-only":"error","@devup-ui/no-duplicate-value":"error","@devup-ui/no-useless-responsive":"error","@devup-ui/style-order-range":"error"}}];var _={recommended:h},ce={configs:_};export{d as rules,ce as default,_ as configs};
1
+ var I=Object.defineProperty;var k=(t,s)=>{for(var r in s)I(t,r,{get:s[r],enumerable:!0,configurable:!0,set:(e)=>s[r]=()=>e})};var O={};k(O,{styleOrderRange:()=>v,noUselessTailingNulls:()=>T,noUselessResponsive:()=>S,noDuplicateValue:()=>y,cssUtilsLiteralOnly:()=>g});import{AST_NODE_TYPES as c,ESLintUtils as R}from"@typescript-eslint/utils";import{AST_NODE_TYPES as i}from"@typescript-eslint/utils";var h={css:"css",globalCss:"globalCss",keyframes:"keyframes",Box:"Box",Button:"Button",Text:"Text",Image:"Image",Flex:"Flex",Grid:"Grid",Center:"Center",VStack:"VStack",Input:"Input"};class p{imports;importObject;constructor(){this.imports={},this.importObject=new Set}addImportByDeclaration(t){if(t.source.value!=="@devup-ui/react")return;for(let s of t.specifiers)switch(s.type){case i.ImportSpecifier:this.addImport(s.local.name,s.imported.type===i.Literal?s.imported.value:s.imported.name);break;case i.ImportDefaultSpecifier:this.importObject.add(s.local.name);break;case i.ImportNamespaceSpecifier:this.importObject.add(s.local.name);break}}addImport(t,s){this.imports[t]=s}checkContextType(t){switch(t.type){case i.JSXOpeningElement:{if(this.checkDevupUIComponent(t.name))return"COMPONENT";break}case i.CallExpression:{if(this.checkDevupUIUtil(t))return"UTIL";break}}}checkDevupUIUtil(t){return t.callee.type===i.Identifier&&t.callee.name in this.imports||t.callee.type===i.MemberExpression&&t.callee.object.type===i.Identifier&&this.importObject.has(t.callee.object.name)&&t.callee.property.type===i.Identifier&&t.callee.property.name in h}checkDevupUIComponent(t){return t.type===i.JSXIdentifier&&t.name in this.imports||t.type===i.JSXMemberExpression&&t.object.type===i.JSXIdentifier&&this.importObject.has(t.object.name)&&t.property.name in h}}var N=R.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`),g=N({name:"css-utils-literal-only",defaultOptions:[],meta:{schema:[],messages:{cssUtilsLiteralOnly:"CSS utils should only be used with literal values."},type:"problem",docs:{description:"CSS utils should only be used with literal values."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===c.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Identifier(e){if(!r||e.name==="undefined")return;let l=t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length);for(let n of l)switch(n.type){case c.Property:if([...l,e].indexOf(n.key)!==-1)return;break;case c.ConditionalExpression:if([...l,e].indexOf(n.test)!==-1)return;break;case c.MemberExpression:if([...l,e].indexOf(n.property)!==-1)return;break;case c.CallExpression:if([...l,e].indexOf(n.callee)!==-1)return;break}t.report({node:e,messageId:"cssUtilsLiteralOnly"})}}}});import{AST_NODE_TYPES as u,ESLintUtils as L}from"@typescript-eslint/utils";var U=L.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function C(t){if(t.type===u.Literal)return t.value?.toString();return t.quasis[0].value.raw}function D(t,s){for(let r=0;r<t.elements.length;r++){let e=t.elements[r];if(e?.type===u.Literal||e?.type===u.TemplateLiteral){if(r===0)continue;let l=C(e);if(l===void 0)continue;let n=t.elements[r-1];if((n?.type===u.Literal||n?.type===u.TemplateLiteral)&&l===C(n))s.report({node:t,messageId:"duplicateValue",data:{value:l},fix(f){return f.replaceText(e,"null")}})}}}var y=U({name:"no-duplicate-value",defaultOptions:[],meta:{schema:[],messages:{duplicateValue:"Duplicate value found: {{value}}."},type:"problem",fixable:"code",docs:{description:"No duplicate value."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===u.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r)D(e,t)}}}});import{AST_NODE_TYPES as o,ESLintUtils as J}from"@typescript-eslint/utils";var X=J.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function A(t,s,r){if(t.elements.length!==1)return;let e=t.elements[0];if(!e)return;for(let l of s)switch(l.type){case o.ConditionalExpression:if(s.indexOf(l.test)!==-1)return;break;case o.JSXExpressionContainer:case o.Property:case o.JSXOpeningElement:case o.CallExpression:case o.ObjectExpression:case o.JSXAttribute:break;default:return}r.report({node:t,messageId:"uselessResponsive",fix(l){return l.replaceText(t,r.sourceCode.getText(e))}})}var S=X({name:"no-useless-responsive",defaultOptions:[],meta:{schema:[],messages:{uselessResponsive:"Responsive are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless responsive."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===o.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===o.Identifier&&["imports","params","fontFaces"].includes(e.key.name))r=null},ArrayExpression(e){if(r)A(e,t.sourceCode.getAncestors(e).slice(t.sourceCode.getAncestors(r).length),t)}}}});import{AST_NODE_TYPES as E,ESLintUtils as w}from"@typescript-eslint/utils";var j=w.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function P(t,s){let r=0;for(let m=t.elements.length-1;m>=0;m--){let d=t.elements[m];if(d?.type===E.Literal&&d.value===null)r++;else break}if(r===0)return;let e=t.elements[t.elements.length-r-1],l=t.elements[0],n=t.elements[t.elements.length-1];if(!n||t.elements.length===r&&!l)return;let f=t.elements.length>r&&e?e.range[1]:l?.range[0];if(f===void 0)return;s.report({node:t,messageId:"uselessTailingNulls",fix(m){return m.removeRange([f,n.range[1]])}})}var T=j({name:"no-useless-tailing-nulls",defaultOptions:[],meta:{schema:[],messages:{uselessTailingNulls:"Trailing nulls are useless. Remove them."},type:"problem",fixable:"code",docs:{description:"No useless tailing nulls."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===E.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},ArrayExpression(e){if(r&&e.parent?.type!==E.MemberExpression)P(e,t)}}}});import{AST_NODE_TYPES as a,ESLintUtils as _}from"@typescript-eslint/utils";var B=_.RuleCreator((t)=>`https://github.com/dev-five-git/devup-ui/tree/main/packages/eslint-plugin/src/rules/${t}`);function x(t,s){let r=null;if(t.type===a.Literal){if(typeof t.value==="number")r=t.value;else if(typeof t.value==="string"){let e=parseInt(t.value,10);if(!Number.isNaN(e))r=e}}else if(t.type===a.UnaryExpression)if(t.argument.type===a.Literal&&typeof t.argument.value==="number"&&(t.operator==="-"||t.operator==="+"))r=t.operator==="-"?-t.argument.value:t.argument.value;else{s.report({node:t,messageId:"styleOrderRange"});return}else if(t.type===a.TemplateLiteral){if(t.expressions.length>0){s.report({node:t,messageId:"styleOrderRange"});return}else if(r=parseInt(t.quasis[0].value.raw,10),Number.isNaN(r)){s.report({node:t,messageId:"styleOrderRange"});return}}if(r===null||r<1||r>254)s.report({node:t,messageId:"styleOrderRange"})}var v=B({name:"style-order-range",defaultOptions:[],meta:{schema:[],messages:{styleOrderRange:"styleOrder prop must be a number greater than 0 and less than 255.",wrongType:"styleOrder prop must be a number or a string representing a number."},type:"problem",docs:{description:"Ensures styleOrder prop is within valid range (0 < value < 255)."}},create(t){let s=new p,r=null;return{ImportDeclaration(e){s.addImportByDeclaration(e)},CallExpression(e){if(s.checkContextType(e)==="UTIL"&&e.arguments.length===1&&e.arguments[0].type===a.ObjectExpression)r=e},"CallExpression:exit"(e){if(r===e)r=null},Property(e){if(r&&e.key.type===a.Identifier&&e.key.name==="styleOrder"&&e.value.type!==a.AssignmentPattern&&e.value.type!==a.TSEmptyBodyFunctionExpression)x(e.value,t)},JSXOpeningElement(e){if(s.checkContextType(e)==="COMPONENT")r=e},"JSXOpeningElement:exit"(e){if(r===e)r=null},JSXAttribute(e){if(!r)return;if(e.name.type!==a.JSXIdentifier||e.name.name!=="styleOrder"||!e.value)return;if(e.value.type===a.JSXExpressionContainer&&e.value.expression.type!==a.JSXEmptyExpression)x(e.value.expression,t);else if(e.value.type===a.Literal)x(e.value,t);else t.report({node:e,messageId:"wrongType"})}}}});var b=[{plugins:{"@devup-ui":{rules:{"no-useless-tailing-nulls":T,"css-utils-literal-only":g,"no-duplicate-value":y,"no-useless-responsive":S,"style-order-range":v}}},rules:{"@devup-ui/no-useless-tailing-nulls":"error","@devup-ui/css-utils-literal-only":"error","@devup-ui/no-duplicate-value":"error","@devup-ui/no-useless-responsive":"error","@devup-ui/style-order-range":"error"}}];var M={recommended:b},ge={configs:M};export{O as rules,ge as default,M as configs};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/no-useless-responsive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAEZ,MAAM,0BAA0B,CAAA;AA4CjC,eAAO,MAAM,mBAAmB;;CAqE9B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/no-useless-responsive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAEZ,MAAM,0BAA0B,CAAA;AA6CjC,eAAO,MAAM,mBAAmB;;CAqE9B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/no-useless-tailing-nulls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAEZ,MAAM,0BAA0B,CAAA;AAuCjC,eAAO,MAAM,qBAAqB;;CAyDhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/no-useless-tailing-nulls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAEZ,MAAM,0BAA0B,CAAA;AA4CjC,eAAO,MAAM,qBAAqB;;CAyDhC,CAAA"}
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "react",
18
18
  "eslint"
19
19
  ],
20
- "version": "1.0.14",
20
+ "version": "1.0.15",
21
21
  "main": "dist/index.cjs",
22
22
  "type": "module",
23
23
  "scripts": {
@@ -38,15 +38,15 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "typescript-eslint": "^8.57",
42
- "@typescript-eslint/utils": "^8.57"
41
+ "typescript-eslint": "^8.59",
42
+ "@typescript-eslint/utils": "^8.59"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "typescript-eslint": "*",
46
46
  "@typescript-eslint/utils": "*"
47
47
  },
48
48
  "devDependencies": {
49
- "@typescript-eslint/rule-tester": "^8.57",
49
+ "@typescript-eslint/rule-tester": "^8.59",
50
50
  "typescript": "^6.0"
51
51
  }
52
52
  }