@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 702 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow use of localization methods on v-html to prevent XSS attack.
*
* @see [no-v-html](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-v-html.html)
*/
export type NoVHtmlRuleConfig = RuleConfig<[]>;
/**
* Disallow use of localization methods on v-html to prevent XSS attack.
*
* @see [no-v-html](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-v-html.html)
*/
export interface NoVHtmlRule {
/**
* Disallow use of localization methods on v-html to prevent XSS attack.
*
* @see [no-v-html](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-v-html.html)
*/
'@intlify/vue-i18n/no-v-html': NoVHtmlRuleConfig;
}