@foundbyte/eslint-plugin 1.0.4 → 1.0.5

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/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { Config, Rules } from './lib/rules'
1
+ import { ESLint } from 'eslint'
2
+ import { Rules } from './lib/rules'
2
3
 
3
- declare const eslintPlugin: {
4
+ export { ArrowFunctionPaddingOptions, HooksExportLimitOptions, TypeCommentRequirementOptions, VueScriptLinesLimitOptions, HooksArrowFunctionOnlyOptions } from './types'
5
+
6
+ declare const plugin: ESLint.Plugin & {
4
7
  rules: Rules
5
- configs: {
6
- recommended: Config
7
- }
8
8
  }
9
9
 
10
- export = eslintPlugin
10
+ export { type Rules, plugin as default }
@@ -34,6 +34,11 @@ export interface Rules {
34
34
  * 禁止 hooks (useXXX) 使用 function 声明,必须使用箭头函数
35
35
  */
36
36
  'hooks-arrow-function-only': Rule.RuleModule
37
+
38
+ /**
39
+ * 索引签名,用于兼容 ESLint 插件类型
40
+ */
41
+ [key: string]: Rule.RuleModule
37
42
  }
38
43
 
39
44
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundbyte/eslint-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "ESLint plugin for enforcing code style rules including arrow function padding, Vue script lines limit, and TypeScript type comment requirements",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",