/** * The token contract's inline-style check, where a selector cannot reach * (the second review's R9, 25 September). `no-restricted-syntax` reads a * `style={{ … }}` written in place; a style kept in a `const` and passed by name * got through every lint in all three repos: * * const look = { background: 'red' } *
* * This follows the name to its `const` in the same file and reads the keys * there, quoted or not. It reports on the key, where the value is written, so * an escape sits beside it. A style the code works out while it runs passes: * nothing can read it. */ import type { ESLint } from 'eslint'; /** The style keys outside the token contract: colours, a font size, borders and shadows. */ export declare const INLINE_STYLE_TOKEN_KEYS: RegExp; export declare const INLINE_STYLE_MESSAGE = "An inline style that sets a colour, a font size, a border or a shadow is outside the token contract: use a token class. If the value is computed (a palette, a size from a prop), say why in an eslint-disable comment. Width, height and transforms are fine."; /** The plugin, as the token lint registers it: `token-style/no-token-style`. */ export declare const tokenStylePlugin: ESLint.Plugin; //# sourceMappingURL=token-style.d.ts.map