UNPKG

@umijs/fabric

Version:

A collection of configuration files containing prettier, eslint, stylelint

164 lines (163 loc) 7.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var isTypeAwareEnabled = process.env.DISABLE_TYPE_AWARE === undefined; exports.default = { 'no-undef': 0, '@typescript-eslint/adjacent-overload-signatures': 0, '@typescript-eslint/array-type': 'error', '@typescript-eslint/await-thenable': 0, '@typescript-eslint/ban-ts-comment': 0, '@typescript-eslint/ban-tslint-comment': 0, 'brace-style': 'off', '@typescript-eslint/brace-style': 0, '@typescript-eslint/class-literal-property-style': 0, 'comma-dangle': 'off', '@typescript-eslint/comma-dangle': 0, 'comma-spacing': 'off', '@typescript-eslint/comma-spacing': 0, '@typescript-eslint/consistent-indexed-object-style': 1, '@typescript-eslint/consistent-type-assertions': 0, '@typescript-eslint/consistent-type-definitions': 0, '@typescript-eslint/consistent-type-imports': 1, 'default-param-last': 'off', '@typescript-eslint/default-param-last': 0, 'dot-notation': 'off', '@typescript-eslint/dot-notation': isTypeAwareEnabled ? 1 : 0, '@typescript-eslint/explicit-function-return-type': 0, 'func-call-spacing': 'off', '@typescript-eslint/func-call-spacing': 0, indent: 'off', 'init-declarations': 'off', '@typescript-eslint/init-declarations': 0, 'keyword-spacing': 'off', '@typescript-eslint/keyword-spacing': 0, 'lines-between-class-members': 'off', '@typescript-eslint/lines-between-class-members': 0, '@typescript-eslint/member-delimiter-style': 0, '@typescript-eslint/member-ordering': 0, '@typescript-eslint/method-signature-style': 'error', 'no-array-constructor': 'off', '@typescript-eslint/no-array-constructor': 0, '@typescript-eslint/no-base-to-string': 0, '@typescript-eslint/no-confusing-non-null-assertion': 'error', '@typescript-eslint/no-confusing-void-expression': 0, 'no-dupe-class-members': 'off', '@typescript-eslint/no-dupe-class-members': 'error', 'no-duplicate-imports': 'off', '@typescript-eslint/no-duplicate-imports': 0, '@typescript-eslint/no-dynamic-delete': 0, 'no-empty-function': 'off', '@typescript-eslint/no-empty-function': 0, '@typescript-eslint/no-empty-interface': 1, '@typescript-eslint/no-extra-non-null-assertion': 0, 'no-extra-parens': 'off', '@typescript-eslint/no-extra-parens': 0, 'no-extra-semi': 'off', '@typescript-eslint/no-extra-semi': 0, '@typescript-eslint/no-extraneous-class': 0, '@typescript-eslint/no-floating-promises': 0, '@typescript-eslint/no-for-in-array': 'error', '@typescript-eslint/no-implicit-any-catch': 0, 'no-implied-eval': 'off', '@typescript-eslint/no-implied-eval': 0, '@typescript-eslint/no-inferrable-types': 0, 'no-invalid-this': 'off', '@typescript-eslint/no-invalid-this': 1, '@typescript-eslint/no-invalid-void-type': 0, 'no-loop-func': 'off', '@typescript-eslint/no-loop-func': 'error', 'no-loss-of-precision': 'off', '@typescript-eslint/no-loss-of-precision': 0, 'no-magic-numbers': 'off', '@typescript-eslint/no-magic-numbers': 0, '@typescript-eslint/no-misused-new': 'error', '@typescript-eslint/no-misused-promises': 0, '@typescript-eslint/no-namespace': 1, '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', '@typescript-eslint/no-parameter-properties': 'error', 'no-redeclare': 'off', '@typescript-eslint/no-redeclare': 'error', '@typescript-eslint/no-require-imports': 0, 'no-shadow': 'off', '@typescript-eslint/no-shadow': 'error', '@typescript-eslint/no-this-alias': 'error', 'no-throw-literal': 'off', '@typescript-eslint/no-throw-literal': isTypeAwareEnabled ? 2 : 0, '@typescript-eslint/no-type-alias': 0, '@typescript-eslint/no-unnecessary-boolean-literal-compare': 0, '@typescript-eslint/no-unnecessary-condition': 0, '@typescript-eslint/no-unnecessary-qualifier': 0, '@typescript-eslint/no-unnecessary-type-arguments': 0, '@typescript-eslint/no-unnecessary-type-assertion': 0, '@typescript-eslint/no-unnecessary-type-constraint': 0, '@typescript-eslint/no-unsafe-assignment': 0, '@typescript-eslint/no-unsafe-call': 0, '@typescript-eslint/no-unsafe-member-access': 0, '@typescript-eslint/no-unsafe-return': 0, 'no-unused-expressions': 'off', '@typescript-eslint/no-unused-expressions': 'error', 'no-unused-vars': 'off', 'no-use-before-define': 'off', 'no-useless-constructor': 'off', '@typescript-eslint/no-useless-constructor': 'error', '@typescript-eslint/non-nullable-type-assertion-style': 0, '@typescript-eslint/prefer-as-const': 0, '@typescript-eslint/prefer-enum-initializers': 0, '@typescript-eslint/prefer-for-of': 0, '@typescript-eslint/prefer-function-type': 0, '@typescript-eslint/prefer-includes': 0, '@typescript-eslint/prefer-literal-enum-member': 0, '@typescript-eslint/prefer-namespace-keyword': 0, '@typescript-eslint/prefer-nullish-coalescing': 0, '@typescript-eslint/prefer-optional-chain': 0, '@typescript-eslint/prefer-readonly': 0, '@typescript-eslint/prefer-readonly-parameter-types': 0, '@typescript-eslint/prefer-reduce-type-parameter': 0, '@typescript-eslint/prefer-regexp-exec': 0, '@typescript-eslint/prefer-string-starts-ends-with': 0, '@typescript-eslint/prefer-ts-expect-error': 0, '@typescript-eslint/promise-function-async': 0, quotes: 'off', '@typescript-eslint/quotes': 0, '@typescript-eslint/require-array-sort-compare': 0, 'require-await': 'off', '@typescript-eslint/require-await': 0, '@typescript-eslint/restrict-plus-operands': 0, '@typescript-eslint/restrict-template-expressions': 0, 'no-return-await': 'off', '@typescript-eslint/return-await': 0, semi: 'off', '@typescript-eslint/semi': 0, 'space-before-function-paren': 'off', '@typescript-eslint/space-before-function-paren': 0, 'space-infix-ops': 'off', '@typescript-eslint/space-infix-ops': 0, '@typescript-eslint/strict-boolean-expressions': 0, '@typescript-eslint/switch-exhaustiveness-check': isTypeAwareEnabled ? 2 : 0, '@typescript-eslint/triple-slash-reference': 'error', '@typescript-eslint/type-annotation-spacing': 'error', '@typescript-eslint/typedef': 'error', '@typescript-eslint/unbound-method': 0, '@typescript-eslint/unified-signatures': 'error', '@typescript-eslint/indent': 0, // Makes no sense to allow type inferrence for expression parameters, but require typing the response '@typescript-eslint/no-use-before-define': [ 'error', { functions: false, classes: true, variables: true, typedefs: true }, ], camelcase: 0, '@typescript-eslint/camelcase': 0, '@typescript-eslint/no-var-requires': 0, // Common abbreviations are known and readable '@typescript-eslint/explicit-member-accessibility': 0, '@typescript-eslint/interface-name-prefix': 0, '@typescript-eslint/no-non-null-assertion': 0, '@typescript-eslint/no-explicit-any': 0, '@typescript-eslint/ban-types': 1, '@typescript-eslint/explicit-module-boundary-types': 0, '@typescript-eslint/naming-convention': 0, '@typescript-eslint/no-unused-vars': [ 'error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }, ], };