source: imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-no-literals.d.ts@ 0c6b92a

main
Last change on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago

Pred finalna verzija

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[0c6b92a]1export type RawElementConfigProperties = {
2 noStrings?: boolean;
3 allowedStrings?: string[];
4 ignoreProps?: boolean;
5 noAttributeStrings?: boolean;
6};
7export type RawOverrideConfigProperties = {
8 allowElement?: boolean;
9 applyToNestedElements?: boolean;
10};
11export type RawElementConfig = {
12 noStrings?: boolean;
13 allowedStrings?: string[];
14 ignoreProps?: boolean;
15 noAttributeStrings?: boolean;
16};
17export type RawOverrideConfig = {
18 noStrings?: boolean;
19 allowedStrings?: string[];
20 ignoreProps?: boolean;
21 noAttributeStrings?: boolean;
22};
23export type RawElementOverrides = {
24 elementOverrides?: Record<string, RawOverrideConfig>;
25};
26/**
27 * ----------------------------------------------------------------------
28 */
29export type RawConfig = RawElementConfigProperties & RawElementOverrides;
30export type ElementConfigType = {
31 type: 'element';
32};
33export type ElementConfigProperties = {
34 noStrings: boolean;
35 allowedStrings: Set<string>;
36 ignoreProps: boolean;
37 noAttributeStrings: boolean;
38};
39export type OverrideConfigProperties = {
40 type: 'override';
41 name: string;
42 allowElement: boolean;
43 applyToNestedElements: boolean;
44};
45export type ElementConfig = ElementConfigType & ElementConfigProperties;
46export type OverrideConfig = OverrideConfigProperties & ElementConfigProperties;
47export type ElementOverrides = {
48 elementOverrides: Record<string, OverrideConfig>;
49};
50export type Config = ElementConfigType & ElementConfigProperties & ElementOverrides;
51export type ResolvedConfig = (OverrideConfigProperties & ElementConfigProperties) | (ElementConfigType & ElementConfigProperties & ElementOverrides);
52export declare const meta: import('eslint').Rule.RuleModule["meta"];
53export declare function create(context: any): (false & {
54 Literal(node: any): void;
55 JSXAttribute(node: any): void;
56 JSXText(node: any): void;
57 TemplateLiteral(node: any): void;
58}) | ({
59 ImportDeclaration(node: any): void;
60 VariableDeclaration(node: any): void;
61} & {
62 Literal(node: any): void;
63 JSXAttribute(node: any): void;
64 JSXText(node: any): void;
65 TemplateLiteral(node: any): void;
66});
67export declare function create(context: any): (false & {
68 Literal(node: any): void;
69 JSXAttribute(node: any): void;
70 JSXText(node: any): void;
71 TemplateLiteral(node: any): void;
72}) | ({
73 ImportDeclaration(node: any): void;
74 VariableDeclaration(node: any): void;
75} & {
76 Literal(node: any): void;
77 JSXAttribute(node: any): void;
78 JSXText(node: any): void;
79 TemplateLiteral(node: any): void;
80});
81//# sourceMappingURL=jsx-no-literals.d.ts.map
Note: See TracBrowser for help on using the repository browser.