🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@yafh/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yafh/eslint-plugin - npm Package Compare versions

Comparing version
0.4.1
to
0.5.0
+1
-1
dist/index.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _types = require('@typescript-eslint/types');var _utils = require('@typescript-eslint/utils');var i=_utils.ESLintUtils.RuleCreator(o=>o);function c(o){return o.toLowerCase().trim()}function u(o,t){let e=c(o.source.value);return typeof t=="string"?e===t:t.some(r=>e.startsWith(c(r)))}function f(o,t){let e=c(o.source.value);return typeof t=="string"?e.startsWith(c(t)):t.some(r=>e.startsWith(c(r)))}function d(o,t){let e=o.source.value;return t.test(e)}function g(o){return o.type===_types.AST_NODE_TYPES.ImportSpecifier&&(o.imported.range[0]!==o.local.range[0]||o.imported.range[1]!==o.local.range[1])}var E="icon-component-prefix",x=i({name:E,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[{type:["string","array"],description:"Icon Component source matcher"},{type:["string"],description:"prefix"}],messages:{missingIconComponentPrefix:"Expect icon component prefix '{{prefix}}'"}},defaultOptions:[["@ricons","@vicons","@v2icons","@sicons"],"Icon"],create:(o,t)=>({ImportDeclaration(e){let[r,n]=t;if(f(e,r))for(let s of e.specifiers)s.local.name.startsWith(n)||o.report({loc:s.loc,messageId:"missingIconComponentPrefix",data:{prefix:n},fix(m){let p=RegExp(`^${n}`,"i").test(s.local.name),a=n+(p?s.local.name.substring(n.length):s.local.name);return s.type===_types.AST_NODE_TYPES.ImportSpecifier&&!g(s)&&(a=`${s.local.name} as ${a}`),m.replaceText(s.local,a)}})}})});var _path = require('path');var v="no-index-vue",I=i({name:v,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[],messages:{noIndexVue:"Do not use index.vue"}},defaultOptions:[],create:o=>({Program(){_path.basename.call(void 0, o.getFilename()).toLocaleLowerCase()==="index.vue"&&o.report({loc:{line:1,column:0},messageId:"noIndexVue"})}})});var P="no-multiple-slash-comment";function R(o){return o.type!==_utils.AST_TOKEN_TYPES.Line?!1:/^\/\s*<(amd-module|amd-dependency|reference){1}.*\/>\s*$/.test(o.value)}var S=i({name:P,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noMultipleSlashComment:"Do not use multiple slashes for single line comments."}},defaultOptions:[],create:o=>{let t=o.getSourceCode();return{Program(){t.getAllComments().filter(e=>e.type==="Line").filter(e=>!R(e)).filter(e=>/^\/+/.test(e.value)).forEach(e=>{o.report({node:e,messageId:"noMultipleSlashComment",fix:r=>r.replaceText(e,`//${e.value.replace(/^\/+/,"")}`)})})}}}});var _pascalcase = require('pascal-case');var W="pascal-case-component-name",y=i({name:W,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},schema:[],messages:{missingPascalCaseComponentName:"Vue component name must be PascalCase. e.g. {{pascalCase}}"}},defaultOptions:[],create:o=>({Program(){let t=_path.basename.call(void 0, o.getFilename());if(!t.endsWith(".vue"))return;let e=t.split(".")[0],r=_pascalcase.pascalCase.call(void 0, e,{transform:_pascalcase.pascalCaseTransformMerge});e!==r&&o.report({loc:{line:1,column:0},messageId:"missingPascalCaseComponentName",data:{pascalCase:r+t.slice(e.length)}})}})});var k="no-cjs-icon-component",A=/^@(r|v|v2)icons/i;function _(o){var p;let[t,e,r,...n]=o.split("/"),s=e!=="utils"&&!["es","",void 0].includes((p=r==null?void 0:r.trim())==null?void 0:p.toLocaleLowerCase());return{org:t,iconSet:e,isUtil:e==="utils",shouldFix:s,fixSource:()=>{var l;if(!s)return o;let a=[t,e,"es"];return((l=r==null?void 0:r.trim())==null?void 0:l.toLocaleLowerCase())!=="lib"&&a.push(r),a.push(...n),a.join("/")}}}var C=i({name:k,meta:{type:"problem",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noCjsIconCompnoent:"Do not import icon components maybe cjs."}},defaultOptions:[],create:o=>({ImportDeclaration(t){if(!d(t,A))return;let{shouldFix:e,fixSource:r}=_(t.source.value);e&&o.report({messageId:"noCjsIconCompnoent",node:t,fix(n){return n.replaceText(t.source,`'${r()}'`)}})}})});var $="no-default-import",h=i({name:$,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[{type:["array","string"],description:"No default import source matcher"}],messages:{noDefaultImport:"Do not use default imports in '{{source}}'",noWrokspaceImport:"Do not use workspace imports in '{{source}}'"}},defaultOptions:[[]],create:(o,t)=>({ImportDeclaration(e){let[r]=t;if(!u(e,r)||e.importKind==="type")return;let n;for(let s of e.specifiers)if(s.type==="ImportDefaultSpecifier"){n="noDefaultImport";break}else if(s.type==="ImportNamespaceSpecifier"){n="noWrokspaceImport";break}n&&o.report({node:e,messageId:n,data:{source:e.source.value}})}})});var le={rules:{"icon-component-prefix":x,"no-index-vue":I,"no-multiple-slash-comment":S,"pascal-case-component-name":y,"no-cjs-icon-component":C,"no-default-import":h},configs:{recommended:{plugins:["@yafh"],rules:{"@yafh/icon-component-prefix":"error","@yafh/no-cjs-icon-component":"error","@yafh/no-multiple-slash-comment":"error","@yafh/no-index-vue":"error","@yafh/pascal-case-component-name":"error"}}}};exports.default = le;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _types = require('@typescript-eslint/types');var _utils = require('@typescript-eslint/utils');var i=_utils.ESLintUtils.RuleCreator(e=>e);function c(e){return e.toLowerCase().trim()}function f(e,t){let o=c(e.source.value);return typeof t=="string"?o===t:t.some(r=>o.startsWith(c(r)))}function d(e,t){let o=c(e.source.value);return typeof t=="string"?o.startsWith(c(t)):t.some(r=>o.startsWith(c(r)))}function g(e,t){let o=e.source.value;return t.test(o)}function x(e){return e.type===_types.AST_NODE_TYPES.ImportSpecifier&&(e.imported.range[0]!==e.local.range[0]||e.imported.range[1]!==e.local.range[1])}var v="icon-component-prefix",I=i({name:v,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[{type:["string","array"],description:"Icon Component source matcher"},{type:["string"],description:"prefix"}],messages:{missingIconComponentPrefix:"Expect icon component prefix '{{prefix}}'"}},defaultOptions:[["@ricons","@vicons","@v2icons","@sicons"],"Icon"],create:(e,t)=>({ImportDeclaration(o){let[r,s]=t;if(d(o,r))for(let n of o.specifiers)n.local.name.startsWith(s)||e.report({loc:n.loc,messageId:"missingIconComponentPrefix",data:{prefix:s},fix(l){let m=RegExp(`^${s}`,"i").test(n.local.name),a=s+(m?n.local.name.substring(s.length):n.local.name);return n.type===_types.AST_NODE_TYPES.ImportSpecifier&&!x(n)&&(a=`${n.local.name} as ${a}`),l.replaceText(n.local,a)}})}})});var _path = require('path');var R="no-index-vue",y=i({name:R,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[],messages:{noIndexVue:"Do not use index.vue"}},defaultOptions:[],create:e=>({Program(){_path.basename.call(void 0, e.getFilename()).toLocaleLowerCase()==="index.vue"&&e.report({loc:{line:1,column:0},messageId:"noIndexVue"})}})});var N="no-multiple-slash-comment";function j(e){return e.type!==_utils.AST_TOKEN_TYPES.Line?!1:/^\/\s*<(amd-module|amd-dependency|reference){1}.*\/>\s*$/.test(e.value)}var S=i({name:N,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noMultipleSlashComment:"Do not use multiple slashes for single line comments."}},defaultOptions:[],create:e=>{let t=e.getSourceCode();return{Program(){t.getAllComments().filter(o=>o.type==="Line").filter(o=>!j(o)).filter(o=>/^\/+/.test(o.value)).forEach(o=>{e.report({node:o,messageId:"noMultipleSlashComment",fix:r=>r.replaceText(o,`//${o.value.replace(/^\/+/,"")}`)})})}}}});var _pascalcase = require('pascal-case');var W="pascal-case-component-name",C=i({name:W,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},schema:[{type:["string","array"],description:"Component file extensions"}],messages:{missingPascalCaseComponentName:"Component name must be PascalCase. e.g. {{pascalCase}}"}},defaultOptions:["vue"],create:(e,t)=>({Program(){let o=_path.basename.call(void 0, e.getFilename());if(!RegExp(`\\.(${Array.isArray(t[0])?t[0].join("|"):t[0]})$`).test(o))return;let r=o.split(".")[0],s=_pascalcase.pascalCase.call(void 0, r,{transform:_pascalcase.pascalCaseTransformMerge});r!==s&&e.report({loc:{line:1,column:0},messageId:"missingPascalCaseComponentName",data:{pascalCase:s+o.slice(r.length)}})}})});var k="no-cjs-icon-component",_=/^@(r|v|v2)icons/i;function w(e){var m;let[t,o,r,...s]=e.split("/"),n=o!=="utils"&&!["es","",void 0].includes((m=r==null?void 0:r.trim())==null?void 0:m.toLocaleLowerCase());return{org:t,iconSet:o,isUtil:o==="utils",shouldFix:n,fixSource:()=>{var u;if(!n)return e;let a=[t,o,"es"];return((u=r==null?void 0:r.trim())==null?void 0:u.toLocaleLowerCase())!=="lib"&&a.push(r),a.push(...s),a.join("/")}}}var h=i({name:k,meta:{type:"problem",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noCjsIconCompnoent:"Do not import icon components maybe cjs."}},defaultOptions:[],create:e=>({ImportDeclaration(t){if(!g(t,_))return;let{shouldFix:o,fixSource:r}=w(t.source.value);o&&e.report({messageId:"noCjsIconCompnoent",node:t,fix(s){return s.replaceText(t.source,`'${r()}'`)}})}})});var F="no-default-import",O=i({name:F,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[{type:["array","string"],description:"No default import source matcher"}],messages:{noDefaultImport:"Do not use default imports in '{{source}}'",noWrokspaceImport:"Do not use workspace imports in '{{source}}'"}},defaultOptions:[[]],create:(e,t)=>({ImportDeclaration(o){let[r]=t;if(!f(o,r)||o.importKind==="type")return;let s;for(let n of o.specifiers)if(n.type==="ImportDefaultSpecifier"){s="noDefaultImport";break}else if(n.type==="ImportNamespaceSpecifier"){s="noWrokspaceImport";break}s&&e.report({node:o,messageId:s,data:{source:o.source.value}})}})});var V={"@yafh/icon-component-prefix":"error","@yafh/no-cjs-icon-component":"error","@yafh/no-multiple-slash-comment":"error"};function p(e){return{plugins:["@yafh"],rules:{...V,...e}}}var T={recommended:p({}),"recommended-vue":p({"@yafh/no-index-vue":"error","@yafh/pascal-case-component-name":"error"}),"recommended-solid":p({"@yafh/pascal-case-component-name":["error","tsx"]})};var xe={rules:{"icon-component-prefix":I,"no-index-vue":y,"no-multiple-slash-comment":S,"pascal-case-component-name":C,"no-cjs-icon-component":h,"no-default-import":O},configs:T};exports.default = xe;

@@ -1,1 +0,1 @@

import{AST_NODE_TYPES as M}from"@typescript-eslint/types";import{ESLintUtils as O}from"@typescript-eslint/utils";import{AST_NODE_TYPES as T}from"@typescript-eslint/types";var i=O.RuleCreator(o=>o);function c(o){return o.toLowerCase().trim()}function u(o,t){let e=c(o.source.value);return typeof t=="string"?e===t:t.some(r=>e.startsWith(c(r)))}function f(o,t){let e=c(o.source.value);return typeof t=="string"?e.startsWith(c(t)):t.some(r=>e.startsWith(c(r)))}function d(o,t){let e=o.source.value;return t.test(e)}function g(o){return o.type===T.ImportSpecifier&&(o.imported.range[0]!==o.local.range[0]||o.imported.range[1]!==o.local.range[1])}var E="icon-component-prefix",x=i({name:E,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[{type:["string","array"],description:"Icon Component source matcher"},{type:["string"],description:"prefix"}],messages:{missingIconComponentPrefix:"Expect icon component prefix '{{prefix}}'"}},defaultOptions:[["@ricons","@vicons","@v2icons","@sicons"],"Icon"],create:(o,t)=>({ImportDeclaration(e){let[r,n]=t;if(f(e,r))for(let s of e.specifiers)s.local.name.startsWith(n)||o.report({loc:s.loc,messageId:"missingIconComponentPrefix",data:{prefix:n},fix(m){let p=RegExp(`^${n}`,"i").test(s.local.name),a=n+(p?s.local.name.substring(n.length):s.local.name);return s.type===M.ImportSpecifier&&!g(s)&&(a=`${s.local.name} as ${a}`),m.replaceText(s.local,a)}})}})});import{basename as b}from"node:path";var v="no-index-vue",I=i({name:v,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[],messages:{noIndexVue:"Do not use index.vue"}},defaultOptions:[],create:o=>({Program(){b(o.getFilename()).toLocaleLowerCase()==="index.vue"&&o.report({loc:{line:1,column:0},messageId:"noIndexVue"})}})});import{AST_TOKEN_TYPES as D}from"@typescript-eslint/utils";var P="no-multiple-slash-comment";function R(o){return o.type!==D.Line?!1:/^\/\s*<(amd-module|amd-dependency|reference){1}.*\/>\s*$/.test(o.value)}var S=i({name:P,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noMultipleSlashComment:"Do not use multiple slashes for single line comments."}},defaultOptions:[],create:o=>{let t=o.getSourceCode();return{Program(){t.getAllComments().filter(e=>e.type==="Line").filter(e=>!R(e)).filter(e=>/^\/+/.test(e.value)).forEach(e=>{o.report({node:e,messageId:"noMultipleSlashComment",fix:r=>r.replaceText(e,`//${e.value.replace(/^\/+/,"")}`)})})}}}});import{basename as N}from"node:path";import{pascalCase as L,pascalCaseTransformMerge as j}from"pascal-case";var W="pascal-case-component-name",y=i({name:W,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},schema:[],messages:{missingPascalCaseComponentName:"Vue component name must be PascalCase. e.g. {{pascalCase}}"}},defaultOptions:[],create:o=>({Program(){let t=N(o.getFilename());if(!t.endsWith(".vue"))return;let e=t.split(".")[0],r=L(e,{transform:j});e!==r&&o.report({loc:{line:1,column:0},messageId:"missingPascalCaseComponentName",data:{pascalCase:r+t.slice(e.length)}})}})});var k="no-cjs-icon-component",A=/^@(r|v|v2)icons/i;function _(o){var p;let[t,e,r,...n]=o.split("/"),s=e!=="utils"&&!["es","",void 0].includes((p=r==null?void 0:r.trim())==null?void 0:p.toLocaleLowerCase());return{org:t,iconSet:e,isUtil:e==="utils",shouldFix:s,fixSource:()=>{var l;if(!s)return o;let a=[t,e,"es"];return((l=r==null?void 0:r.trim())==null?void 0:l.toLocaleLowerCase())!=="lib"&&a.push(r),a.push(...n),a.join("/")}}}var C=i({name:k,meta:{type:"problem",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noCjsIconCompnoent:"Do not import icon components maybe cjs."}},defaultOptions:[],create:o=>({ImportDeclaration(t){if(!d(t,A))return;let{shouldFix:e,fixSource:r}=_(t.source.value);e&&o.report({messageId:"noCjsIconCompnoent",node:t,fix(n){return n.replaceText(t.source,`'${r()}'`)}})}})});var $="no-default-import",h=i({name:$,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[{type:["array","string"],description:"No default import source matcher"}],messages:{noDefaultImport:"Do not use default imports in '{{source}}'",noWrokspaceImport:"Do not use workspace imports in '{{source}}'"}},defaultOptions:[[]],create:(o,t)=>({ImportDeclaration(e){let[r]=t;if(!u(e,r)||e.importKind==="type")return;let n;for(let s of e.specifiers)if(s.type==="ImportDefaultSpecifier"){n="noDefaultImport";break}else if(s.type==="ImportNamespaceSpecifier"){n="noWrokspaceImport";break}n&&o.report({node:e,messageId:n,data:{source:e.source.value}})}})});var le={rules:{"icon-component-prefix":x,"no-index-vue":I,"no-multiple-slash-comment":S,"pascal-case-component-name":y,"no-cjs-icon-component":C,"no-default-import":h},configs:{recommended:{plugins:["@yafh"],rules:{"@yafh/icon-component-prefix":"error","@yafh/no-cjs-icon-component":"error","@yafh/no-multiple-slash-comment":"error","@yafh/no-index-vue":"error","@yafh/pascal-case-component-name":"error"}}}};export{le as default};
import{AST_NODE_TYPES as b}from"@typescript-eslint/types";import{ESLintUtils as M}from"@typescript-eslint/utils";import{AST_NODE_TYPES as E}from"@typescript-eslint/types";var i=M.RuleCreator(e=>e);function c(e){return e.toLowerCase().trim()}function f(e,t){let o=c(e.source.value);return typeof t=="string"?o===t:t.some(r=>o.startsWith(c(r)))}function d(e,t){let o=c(e.source.value);return typeof t=="string"?o.startsWith(c(t)):t.some(r=>o.startsWith(c(r)))}function g(e,t){let o=e.source.value;return t.test(o)}function x(e){return e.type===E.ImportSpecifier&&(e.imported.range[0]!==e.local.range[0]||e.imported.range[1]!==e.local.range[1])}var v="icon-component-prefix",I=i({name:v,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[{type:["string","array"],description:"Icon Component source matcher"},{type:["string"],description:"prefix"}],messages:{missingIconComponentPrefix:"Expect icon component prefix '{{prefix}}'"}},defaultOptions:[["@ricons","@vicons","@v2icons","@sicons"],"Icon"],create:(e,t)=>({ImportDeclaration(o){let[r,s]=t;if(d(o,r))for(let n of o.specifiers)n.local.name.startsWith(s)||e.report({loc:n.loc,messageId:"missingIconComponentPrefix",data:{prefix:s},fix(l){let m=RegExp(`^${s}`,"i").test(n.local.name),a=s+(m?n.local.name.substring(s.length):n.local.name);return n.type===b.ImportSpecifier&&!x(n)&&(a=`${n.local.name} as ${a}`),l.replaceText(n.local,a)}})}})});import{basename as D}from"node:path";var R="no-index-vue",y=i({name:R,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[],messages:{noIndexVue:"Do not use index.vue"}},defaultOptions:[],create:e=>({Program(){D(e.getFilename()).toLocaleLowerCase()==="index.vue"&&e.report({loc:{line:1,column:0},messageId:"noIndexVue"})}})});import{AST_TOKEN_TYPES as P}from"@typescript-eslint/utils";var N="no-multiple-slash-comment";function j(e){return e.type!==P.Line?!1:/^\/\s*<(amd-module|amd-dependency|reference){1}.*\/>\s*$/.test(e.value)}var S=i({name:N,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noMultipleSlashComment:"Do not use multiple slashes for single line comments."}},defaultOptions:[],create:e=>{let t=e.getSourceCode();return{Program(){t.getAllComments().filter(o=>o.type==="Line").filter(o=>!j(o)).filter(o=>/^\/+/.test(o.value)).forEach(o=>{e.report({node:o,messageId:"noMultipleSlashComment",fix:r=>r.replaceText(o,`//${o.value.replace(/^\/+/,"")}`)})})}}}});import{basename as L}from"node:path";import{pascalCase as A,pascalCaseTransformMerge as $}from"pascal-case";var W="pascal-case-component-name",C=i({name:W,meta:{type:"suggestion",docs:{description:"",recommended:"recommended"},schema:[{type:["string","array"],description:"Component file extensions"}],messages:{missingPascalCaseComponentName:"Component name must be PascalCase. e.g. {{pascalCase}}"}},defaultOptions:["vue"],create:(e,t)=>({Program(){let o=L(e.getFilename());if(!RegExp(`\\.(${Array.isArray(t[0])?t[0].join("|"):t[0]})$`).test(o))return;let r=o.split(".")[0],s=A(r,{transform:$});r!==s&&e.report({loc:{line:1,column:0},messageId:"missingPascalCaseComponentName",data:{pascalCase:s+o.slice(r.length)}})}})});var k="no-cjs-icon-component",_=/^@(r|v|v2)icons/i;function w(e){var m;let[t,o,r,...s]=e.split("/"),n=o!=="utils"&&!["es","",void 0].includes((m=r==null?void 0:r.trim())==null?void 0:m.toLocaleLowerCase());return{org:t,iconSet:o,isUtil:o==="utils",shouldFix:n,fixSource:()=>{var u;if(!n)return e;let a=[t,o,"es"];return((u=r==null?void 0:r.trim())==null?void 0:u.toLocaleLowerCase())!=="lib"&&a.push(r),a.push(...s),a.join("/")}}}var h=i({name:k,meta:{type:"problem",docs:{description:"",recommended:"recommended"},fixable:"code",schema:[],messages:{noCjsIconCompnoent:"Do not import icon components maybe cjs."}},defaultOptions:[],create:e=>({ImportDeclaration(t){if(!g(t,_))return;let{shouldFix:o,fixSource:r}=w(t.source.value);o&&e.report({messageId:"noCjsIconCompnoent",node:t,fix(s){return s.replaceText(t.source,`'${r()}'`)}})}})});var F="no-default-import",O=i({name:F,meta:{type:"problem",docs:{description:"",recommended:"recommended"},schema:[{type:["array","string"],description:"No default import source matcher"}],messages:{noDefaultImport:"Do not use default imports in '{{source}}'",noWrokspaceImport:"Do not use workspace imports in '{{source}}'"}},defaultOptions:[[]],create:(e,t)=>({ImportDeclaration(o){let[r]=t;if(!f(o,r)||o.importKind==="type")return;let s;for(let n of o.specifiers)if(n.type==="ImportDefaultSpecifier"){s="noDefaultImport";break}else if(n.type==="ImportNamespaceSpecifier"){s="noWrokspaceImport";break}s&&e.report({node:o,messageId:s,data:{source:o.source.value}})}})});var V={"@yafh/icon-component-prefix":"error","@yafh/no-cjs-icon-component":"error","@yafh/no-multiple-slash-comment":"error"};function p(e){return{plugins:["@yafh"],rules:{...V,...e}}}var T={recommended:p({}),"recommended-vue":p({"@yafh/no-index-vue":"error","@yafh/pascal-case-component-name":"error"}),"recommended-solid":p({"@yafh/pascal-case-component-name":["error","tsx"]})};var xe={rules:{"icon-component-prefix":I,"no-index-vue":y,"no-multiple-slash-comment":S,"pascal-case-component-name":C,"no-cjs-icon-component":h,"no-default-import":O},configs:T};export{xe as default};
{
"name": "@yafh/eslint-plugin",
"version": "0.4.1",
"version": "0.5.0",
"license": "MIT",

@@ -22,4 +22,4 @@ "description": "Eslint plugin for YanAndFish",

"dependencies": {
"@typescript-eslint/types": "^6.3.0",
"@typescript-eslint/utils": "^6.2.1",
"@typescript-eslint/types": "^6.6.0",
"@typescript-eslint/utils": "^6.6.0",
"pascal-case": "^3.1.2"

@@ -29,6 +29,6 @@ },

"@types/eslint": "^8.44.2",
"@typescript-eslint/rule-tester": "^6.4.0",
"eslint": "^8.47.0",
"@typescript-eslint/rule-tester": "^6.6.0",
"eslint": "^8.49.0",
"tsup": "^7.2.0",
"vitest": "^0.34.1"
"vitest": "^0.34.4"
},

@@ -35,0 +35,0 @@ "peerDependencies": {