UNPKG

@dareharu/eslint-config

Version:
229 lines (227 loc) 8.28 kB
declare const commonRules: { '@typescript-eslint/adjacent-overload-signatures': string; '@typescript-eslint/array-type': (string | { default: string; readonly: string; })[]; '@typescript-eslint/ban-ts-comment': (string | { minimumDescriptionLength: number; 'ts-check': boolean; 'ts-expect-error': string; 'ts-ignore': { descriptionFormat: string; }; 'ts-nocheck': boolean; })[]; '@typescript-eslint/class-literal-property-style': string; '@typescript-eslint/comma-dangle': string; '@typescript-eslint/consistent-generic-constructors': string[]; '@typescript-eslint/consistent-indexed-object-style': string[]; '@typescript-eslint/consistent-type-assertions': (string | { assertionStyle: string; objectLiteralTypeAssertions: string; })[]; '@typescript-eslint/consistent-type-definitions': string; '@typescript-eslint/consistent-type-exports': (string | { fixMixedExportsWithInlineTypeSpecifier: boolean; })[]; '@typescript-eslint/consistent-type-imports': string; '@typescript-eslint/default-param-last': string; '@typescript-eslint/dot-notation': (string | { allowPattern: string; allowPrivateClassPropertyAccess: boolean; })[]; '@typescript-eslint/explicit-function-return-type': (string | { allowExpressions: boolean; allowConciseArrowFunctionExpressionsStartingWithVoid: boolean; })[]; '@typescript-eslint/explicit-member-accessibility': string; '@typescript-eslint/explicit-module-boundary-types': (string | { allowDirectConstAssertionInArrowFunctions: boolean; allowTypedFunctionExpressions: boolean; })[]; '@typescript-eslint/member-delimiter-style': (string | { multiline: { delimiter: string; }; })[]; '@typescript-eslint/naming-convention': (string | { format: string[]; prefix: string[]; selector: string; types: string[]; custom?: undefined; leadingUnderscore?: undefined; modifiers?: undefined; trailingUnderscore?: undefined; } | { format: string[]; selector: string[]; prefix?: undefined; types?: undefined; custom?: undefined; leadingUnderscore?: undefined; modifiers?: undefined; trailingUnderscore?: undefined; } | { custom: { regex: string; match: boolean; }; format: string[]; selector: string; prefix?: undefined; types?: undefined; leadingUnderscore?: undefined; modifiers?: undefined; trailingUnderscore?: undefined; } | { custom: { regex: string; match: boolean; }; format: string[]; leadingUnderscore: string; selector: string[]; prefix?: undefined; types?: undefined; modifiers?: undefined; trailingUnderscore?: undefined; } | { format: null; modifiers: string[]; selector: string[]; prefix?: undefined; types?: undefined; custom?: undefined; leadingUnderscore?: undefined; trailingUnderscore?: undefined; } | { format: string[]; modifiers: string[]; selector: string[]; prefix?: undefined; types?: undefined; custom?: undefined; leadingUnderscore?: undefined; trailingUnderscore?: undefined; } | { format: string[]; modifiers: string[]; leadingUnderscore: string; selector: string; prefix?: undefined; types?: undefined; custom?: undefined; trailingUnderscore?: undefined; } | { format: string[]; selector: string; leadingUnderscore: string; trailingUnderscore: string; prefix?: undefined; types?: undefined; custom?: undefined; modifiers?: undefined; })[]; '@typescript-eslint/no-base-to-string': string; '@typescript-eslint/no-confusing-non-null-assertion': string; '@typescript-eslint/no-confusing-void-expression': (string | { ignoreArrowShorthand: boolean; ignoreVoidOperator: boolean; })[]; '@typescript-eslint/no-dupe-class-members': string; '@typescript-eslint/no-duplicate-enum-values': string; '@typescript-eslint/no-empty-function': (string | { allow: string[]; })[]; '@typescript-eslint/no-empty-interface': (string | { allowSingleExtends: boolean; })[]; '@typescript-eslint/no-explicit-any': string; '@typescript-eslint/no-extra-parens': (string | { returnAssign: boolean; })[]; '@typescript-eslint/no-extraneous-class': string; '@typescript-eslint/no-invalid-this': string; '@typescript-eslint/no-invalid-void-type': string; '@typescript-eslint/no-magic-numbers': (string | { enforceConst: boolean; ignoreDefaultValues: boolean; ignoreEnums: boolean; ignoreNumericLiteralTypes: boolean; ignoreReadonlyClassProperties: boolean; })[]; '@typescript-eslint/no-meaningless-void-operator': string; '@typescript-eslint/no-namespace': string; '@typescript-eslint/no-non-null-asserted-nullish-coalescing': string; '@typescript-eslint/no-non-null-assertion': string; '@typescript-eslint/no-redundant-type-constituents': string; '@typescript-eslint/no-throw-literal': string; '@typescript-eslint/no-unnecessary-boolean-literal-compare': string; '@typescript-eslint/no-unnecessary-condition': string; '@typescript-eslint/no-unnecessary-qualifier': string; '@typescript-eslint/no-unnecessary-type-arguments': string; '@typescript-eslint/no-unused-vars': (string | { args: string; argsIgnorePattern: string; caughtErrors: string; ignoreRestSiblings: boolean; })[]; '@typescript-eslint/no-use-before-define': (string | { ignoreTypeReferences: boolean; })[]; '@typescript-eslint/no-useless-constructor': string; '@typescript-eslint/no-useless-empty-export': string; '@typescript-eslint/non-nullable-type-assertion-style': string; '@typescript-eslint/prefer-enum-initializers': string; '@typescript-eslint/prefer-for-of': string; '@typescript-eslint/prefer-literal-enum-member': (string | { allowBitwiseExpressions: boolean; })[]; '@typescript-eslint/prefer-nullish-coalescing': string; '@typescript-eslint/prefer-optional-chain': string; '@typescript-eslint/prefer-readonly': string; '@typescript-eslint/prefer-reduce-type-parameter': string; '@typescript-eslint/prefer-regexp-exec': string; '@typescript-eslint/prefer-return-this-type': string; '@typescript-eslint/prefer-string-starts-ends-with': string; '@typescript-eslint/promise-function-async': string; '@typescript-eslint/require-array-sort-compare': (string | { ignoreStringArrays: boolean; })[]; '@typescript-eslint/restrict-plus-operands': (string | { checkCompoundAssignments: boolean; })[]; '@typescript-eslint/sort-type-union-intersection-members': string; '@typescript-eslint/strict-boolean-expressions': (string | { allowString: boolean; allowNumber: boolean; })[]; '@typescript-eslint/switch-exhaustiveness-check': string; '@typescript-eslint/unified-signatures': (string | { ignoreDifferentlyNamedParameters: boolean; })[]; '@typescript-eslint/lines-between-class-members': (string | { exceptAfterOverload: boolean; exceptAfterSingleLine: boolean; })[]; '@typescript-eslint/object-curly-spacing': string[]; '@typescript-eslint/padding-line-between-statements': (string | { blankLine: string; prev: string[]; next: string; } | { blankLine: string; prev: string[]; next: string[]; } | { blankLine: string; prev: string; next: string[]; })[]; '@typescript-eslint/space-infix-ops': (string | { int32Hint: boolean; })[]; }; export { commonRules, commonRules as default };