@datadayrepos/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
61 lines (56 loc) • 1.66 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface NoParsingErrorOption {
ASSERT_FAILED?: boolean;
SYNTAX_ERROR?: boolean;
INCORRECT_NESTING?: boolean;
NO_END_BRACKET?: boolean;
BRACKET_MISMATCH?: boolean;
INVALID_ID?: boolean;
INVALID_CLASS_NAME?: boolean;
NO_EXTENDS_PATH?: boolean;
MALFORMED_EXTENDS?: boolean;
NO_INCLUDE_PATH?: boolean;
MALFORMED_INCLUDE?: boolean;
NO_CASE_EXPRESSION?: boolean;
NO_WHEN_EXPRESSION?: boolean;
DEFAULT_WITH_EXPRESSION?: boolean;
ELSE_CONDITION?: boolean;
NO_WHILE_EXPRESSION?: boolean;
MALFORMED_EACH?: boolean;
MALFORMED_EACH_OF_LVAL?: boolean;
INVALID_KEY_CHARACTER?: boolean;
INVALID_INDENTATION?: boolean;
INCONSISTENT_INDENTATION?: boolean;
UNEXPECTED_TEXT?: boolean;
INVALID_TOKEN?: boolean;
BLOCK_IN_BUFFERED_CODE?: boolean;
BLOCK_OUTISDE_MIXIN?: boolean;
RAW_INCLUDE_BLOCK?: boolean;
MIXIN_WITHOUT_BODY?: boolean;
}
/**
* Options.
*/
export type NoParsingErrorOptions = [NoParsingErrorOption?];
/**
* Disallow parsing errors in `<template lang="pug">`.
*
* @see [no-parsing-error](https://eslint.vuejs.org/rules/no-parsing-error.html)
*/
export type NoParsingErrorRuleConfig = RuleConfig<NoParsingErrorOptions>;
/**
* Disallow parsing errors in `<template lang="pug">`.
*
* @see [no-parsing-error](https://eslint.vuejs.org/rules/no-parsing-error.html)
*/
export interface NoParsingErrorRule {
/**
* Disallow parsing errors in `<template lang="pug">`.
*
* @see [no-parsing-error](https://eslint.vuejs.org/rules/no-parsing-error.html)
*/
'vue-pug/no-parsing-error': NoParsingErrorRuleConfig;
}