@umijs/lint
Version:
87 lines (86 loc) • 3.77 kB
TypeScript
/**
* legacy enabled/disabled rules from @umijs/fabric tsEslintConfig
* @see https://github.com/umijs/fabric/blob/master/src/tsEslintConfig.ts
*/
export declare const typescript: {
'no-dupe-class-members': number;
'no-redeclare': number;
'no-undef': number;
'no-unused-vars': number;
'@typescript-eslint/adjacent-overload-signatures': number;
'@typescript-eslint/array-type': number;
'@typescript-eslint/await-thenable': number;
'@typescript-eslint/ban-ts-comment': number;
'@typescript-eslint/ban-types': number;
'@typescript-eslint/consistent-indexed-object-style': number;
'@typescript-eslint/consistent-type-imports': number;
'@typescript-eslint/dot-notation': number;
'@typescript-eslint/method-signature-style': number;
'@typescript-eslint/no-array-constructor': number;
'@typescript-eslint/no-confusing-non-null-assertion': number;
'@typescript-eslint/no-dupe-class-members': number;
'@typescript-eslint/no-empty-function': number;
'@typescript-eslint/no-empty-interface': number;
'@typescript-eslint/no-explicit-any': number;
'@typescript-eslint/no-extra-non-null-assertion': number;
'@typescript-eslint/no-floating-promises': number;
'@typescript-eslint/no-implied-eval': number;
'@typescript-eslint/no-inferrable-types': number;
'@typescript-eslint/no-invalid-this': number;
'@typescript-eslint/no-loop-func': number;
'@typescript-eslint/no-loss-of-precision': number;
'@typescript-eslint/no-misused-promises': number;
'@typescript-eslint/no-namespace': number;
'@typescript-eslint/no-non-null-assertion': number;
'@typescript-eslint/no-parameter-properties': number;
'@typescript-eslint/no-redeclare': number;
'@typescript-eslint/no-shadow': number;
'@typescript-eslint/no-throw-literal': number;
'@typescript-eslint/no-unnecessary-type-assertion': number;
'@typescript-eslint/no-unnecessary-type-constraint': number;
'@typescript-eslint/no-unsafe-assignment': number;
'@typescript-eslint/no-unsafe-call': number;
'@typescript-eslint/no-unsafe-member-access': number;
'@typescript-eslint/no-unsafe-return': number;
'@typescript-eslint/no-unused-expressions': number;
'@typescript-eslint/no-unused-vars': (string | {
vars: string;
args: string;
ignoreRestSiblings: boolean;
})[];
'@typescript-eslint/no-use-before-define': (string | {
functions: boolean;
classes: boolean;
variables: boolean;
typedefs: boolean;
})[];
'@typescript-eslint/no-useless-constructor': number;
'@typescript-eslint/no-var-requires': number;
'@typescript-eslint/prefer-as-const': number;
'@typescript-eslint/prefer-namespace-keyword': number;
'@typescript-eslint/require-await': number;
'@typescript-eslint/restrict-plus-operands': number;
'@typescript-eslint/restrict-template-expressions': number;
'@typescript-eslint/switch-exhaustiveness-check': number;
'@typescript-eslint/type-annotation-spacing': number;
'@typescript-eslint/typedef': number;
'@typescript-eslint/unbound-method': number;
'@typescript-eslint/unified-signatures': number;
};
/**
* legacy enabled/disabled rules from @umijs/fabric
* @see https://github.com/umijs/fabric/blob/master/src/eslint.ts#L54
*/
declare const _default: {
'no-param-reassign': number;
'no-prototype-builtins': number;
'react/display-name': number;
'react/jsx-key': number;
'react/no-array-index-key': number;
'react/prop-types': number;
'react/react-in-jsx-scope': number;
'react/self-closing-comp': number;
'react-hooks/exhaustive-deps': number;
'react-hooks/rules-of-hooks': number;
};
export default _default;