[0c6b92a] | 1 | export type RawElementConfigProperties = {
|
---|
| 2 | noStrings?: boolean;
|
---|
| 3 | allowedStrings?: string[];
|
---|
| 4 | ignoreProps?: boolean;
|
---|
| 5 | noAttributeStrings?: boolean;
|
---|
| 6 | };
|
---|
| 7 | export type RawOverrideConfigProperties = {
|
---|
| 8 | allowElement?: boolean;
|
---|
| 9 | applyToNestedElements?: boolean;
|
---|
| 10 | };
|
---|
| 11 | export type RawElementConfig = {
|
---|
| 12 | noStrings?: boolean;
|
---|
| 13 | allowedStrings?: string[];
|
---|
| 14 | ignoreProps?: boolean;
|
---|
| 15 | noAttributeStrings?: boolean;
|
---|
| 16 | };
|
---|
| 17 | export type RawOverrideConfig = {
|
---|
| 18 | noStrings?: boolean;
|
---|
| 19 | allowedStrings?: string[];
|
---|
| 20 | ignoreProps?: boolean;
|
---|
| 21 | noAttributeStrings?: boolean;
|
---|
| 22 | };
|
---|
| 23 | export type RawElementOverrides = {
|
---|
| 24 | elementOverrides?: Record<string, RawOverrideConfig>;
|
---|
| 25 | };
|
---|
| 26 | /**
|
---|
| 27 | * ----------------------------------------------------------------------
|
---|
| 28 | */
|
---|
| 29 | export type RawConfig = RawElementConfigProperties & RawElementOverrides;
|
---|
| 30 | export type ElementConfigType = {
|
---|
| 31 | type: 'element';
|
---|
| 32 | };
|
---|
| 33 | export type ElementConfigProperties = {
|
---|
| 34 | noStrings: boolean;
|
---|
| 35 | allowedStrings: Set<string>;
|
---|
| 36 | ignoreProps: boolean;
|
---|
| 37 | noAttributeStrings: boolean;
|
---|
| 38 | };
|
---|
| 39 | export type OverrideConfigProperties = {
|
---|
| 40 | type: 'override';
|
---|
| 41 | name: string;
|
---|
| 42 | allowElement: boolean;
|
---|
| 43 | applyToNestedElements: boolean;
|
---|
| 44 | };
|
---|
| 45 | export type ElementConfig = ElementConfigType & ElementConfigProperties;
|
---|
| 46 | export type OverrideConfig = OverrideConfigProperties & ElementConfigProperties;
|
---|
| 47 | export type ElementOverrides = {
|
---|
| 48 | elementOverrides: Record<string, OverrideConfig>;
|
---|
| 49 | };
|
---|
| 50 | export type Config = ElementConfigType & ElementConfigProperties & ElementOverrides;
|
---|
| 51 | export type ResolvedConfig = (OverrideConfigProperties & ElementConfigProperties) | (ElementConfigType & ElementConfigProperties & ElementOverrides);
|
---|
| 52 | export declare const meta: import('eslint').Rule.RuleModule["meta"];
|
---|
| 53 | export 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 | });
|
---|
| 67 | export 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 |
---|