-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
36 lines (31 loc) · 1.27 KB
/
index.d.ts
File metadata and controls
36 lines (31 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type { ESLint, Rule } from 'eslint'
export interface LaststanceRuleModules {
'no-jsx-without-return': Rule.RuleModule
'all-memo': Rule.RuleModule
'no-use-reducer': Rule.RuleModule
'no-set-state-prop-drilling': Rule.RuleModule
'no-deopt-use-callback': Rule.RuleModule
'no-deopt-use-memo': Rule.RuleModule
'no-direct-use-effect': Rule.RuleModule
'no-forward-ref': Rule.RuleModule
'no-context-provider': Rule.RuleModule
'no-missing-key': Rule.RuleModule
'no-duplicate-key': Rule.RuleModule
'jsx-no-useless-fragment': Rule.RuleModule
'no-jsx-iife': Rule.RuleModule
'no-missing-component-display-name': Rule.RuleModule
'no-nested-component-definitions': Rule.RuleModule
'no-missing-button-type': Rule.RuleModule
'prefer-stable-context-value': Rule.RuleModule
'prefer-usecallback-might-work': Rule.RuleModule
'prefer-usecallback-for-memoized-component': Rule.RuleModule
'prefer-usememo-for-memoized-component': Rule.RuleModule
'prefer-usememo-might-work': Rule.RuleModule
}
export type LaststanceRuleName = keyof LaststanceRuleModules
export type LaststanceConfigName = `laststance/${LaststanceRuleName}`
export type LaststancePlugin = ESLint.Plugin & {
rules: LaststanceRuleModules
}
declare const plugin: LaststancePlugin
export default plugin