var h=Object.create;var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var I=(t,r)=>{for(var e in r)a(t,e,{get:r[e],enumerable:!0})},m=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of y(r))!N.call(t,o)&&o!==e&&a(t,o,{get:()=>r[o],enumerable:!(n=b(r,o))||n.enumerable});return t};var f=(t,r,e)=>(e=t!=null?h(v(t)):{},m(r||!t||!t.__esModule?a(e,"default",{value:t,enumerable:!0}):e,t)),O=t=>m(a({},"__esModule",{value:!0}),t);var w={};I(w,{lint:()=>$,ruleType:()=>j});module.exports=O(w);var x=1,g=(t,r)=>{let e=!0,n={invalidNode:null,validNode:null},o=Object.keys(t[r]),p=Object.keys(t[r]).sort();for(let s=0;s<o.length;s+=x)if(o[s]!==p[s]){e=!1,n={invalidNode:o[s],validNode:p[s]};break}return{status:e,data:n}};var P=require("jsonc-parser"),u=(t,r)=>t.hasOwnProperty(r);var i=f(require("chalk")),d=f(require("log-symbols"));var l=class{constructor(r,e,n,o){this.lintId=r,this.severity=e,this.node=n,this.lintMessage=o}toString(){let r=this.severity==="error"?d.default.error:d.default.warning,e=i.default.cyan.bold(this.lintId),n=i.default.magenta.bold(this.node),o=this.severity==="error"?i.default.red.bold(this.lintMessage):i.default.yellow(this.lintMessage);return`${r} ${e} - node: ${n} - ${o}`}};var k="prefer-alphabetical-scripts",c="scripts",S="Your scripts are not in alphabetical order.",j="standard",$=(t,r)=>{if(!u(t,c))return null;let e=g(t,c);return e.status?null:new l(k,r,c,`${S} Please move ${e.data.invalidNode} after ${e.data.validNode}.`)};0&&(module.exports={lint,ruleType});
