/** * 配置umi.ts * @param config */ export declare function initUmiConfig(config?: Record): any; /** * .eslint.js的规则配置 */ export declare function eslintRules(): { 'linebreak-style': string; 'jsx-a11y/click-events-have-key-events': string; 'jsx-a11y/interactive-supports-focus': string; 'import/extensions': string; 'react/default-props-match-prop-types': string; 'react/require-default-props': string; 'react/destructuring-assignment': string; 'import/prefer-default-export': string; 'no-unused-expressions': string; 'react/no-unused-prop-types': string; 'react/prop-types': string; 'prefer-promise-reject-errors': string; 'react/jsx-props-no-spreading': string; 'react/static-property-placement': string; 'jsx-a11y/no-noninteractive-element-interactions': string; 'class-methods-use-this': string; 'comma-dangle': string; '@typescript-eslint/comma-dangle': string; 'arrow-body-style': string; 'import/newline-after-import': string; 'object-curly-newline': string; '@typescript-eslint/no-unused-expressions': string; 'no-param-reassign': string; 'dot-notation': string; '@typescript-eslint/dot-notation': string; 'react-hooks/exhaustive-deps': string; 'max-len': string; 'react/react-in-jsx-scope': string; 'react/no-unstable-nested-components': string; '@typescript-eslint/no-use-before-define': string; 'no-restricted-syntax': string; 'import/no-duplicates': string; 'import/order': string; 'operator-linebreak': string; 'no-plusplus': string; 'no-cond-assign': string; '@typescript-eslint/naming-convention': string; 'react/no-array-index-key': string; 'prefer-template': string; 'arrow-parens': string; 'no-prototype-builtins': string; 'react/jsx-no-bind': string; 'consistent-return': string; '@typescript-eslint/no-unused-vars': string; '@typescript-eslint/return-await': string; 'react/jsx-curly-brace-presence': string; 'implicit-arrow-linebreak': string; 'react/no-children-prop': string; '@typescript-eslint/no-shadow': string; 'react/jsx-one-expression-per-line': string; 'react/jsx-boolean-value': string; '@typescript-eslint/indent': string; 'react/jsx-wrap-multilines': string; '@typescript-eslint/no-throw-literal': string; 'no-restricted-globals': string; 'spaced-comment': string; 'no-underscore-dangle': string; 'no-useless-escape': string; 'import/first': string; 'no-else-return': string; 'import/no-extraneous-dependencies': string; 'react/jsx-curly-newline': string; eqeqeq: string; 'max-classes-per-file': string; 'jsx-a11y/no-static-element-interactions': string; 'no-console': string; 'func-names': string; 'jsx-a11y/alt-text': string; 'no-nested-ternary': string; 'prefer-arrow-callback': string; 'no-return-assign': string; 'react/jsx-pascal-case': string; '@typescript-eslint/no-array-constructor': string; 'symbol-description': string; 'array-callback-return': string; 'object-shorthand': string; 'nonblock-statement-body-position': string; 'react/no-danger': string; 'no-void': string; '@typescript-eslint/quotes': string; 'jsx-a11y/anchor-is-valid': string; 'no-confusing-arrow': string; 'quote-props': string; 'no-empty': string; 'one-var': string; 'no-continue': string; 'one-var-declaration-per-line': string; 'no-lonely-if': string; curly: string; 'function-paren-newline': string; 'react/function-component-definition': string; 'prefer-destructuring': string; 'no-useless-computed-key': string; 'jsx-a11y/iframe-has-title': string; 'jsx-a11y/anchor-has-content': string; '@typescript-eslint/lines-between-class-members': string; 'react/jsx-no-constructed-context-values': string; 'react/jsx-indent': string; 'no-unneeded-ternary': string; 'no-unsafe-optional-chaining': string; 'wrap-iife': string; 'no-useless-return': string; 'generator-star-spacing': string; 'no-await-in-loop': string; 'no-alert': string; 'no-bitwise': string; 'no-empty-pattern': string; 'import/no-named-as-default': string; 'no-extra-boolean-cast': string; 'no-fallthrough': string; '@typescript-eslint/space-before-function-paren': string; 'jsx-a11y/control-has-associated-label': string; 'no-sparse-arrays': string; radix: string; 'react/sort-comp': string; 'default-case': string; 'react/no-this-in-sfc': string; '@typescript-eslint/no-empty-function': string; yoda: string; 'import/no-named-default': string; 'no-constructor-return': string; 'no-inner-declarations': string; 'no-multi-assign': string; 'no-promise-executor-return': string; 'no-multiple-empty-lines': string; 'react/jsx-tag-spacing': string; '@typescript-eslint/object-curly-spacing': string; 'react/jsx-indent-props': string; 'no-trailing-spaces': string; 'jsx-quotes': string; 'react/jsx-first-prop-new-line': string; 'react/jsx-max-props-per-line': string; 'react/jsx-closing-bracket-location': string; 'import/no-dynamic-require': string; 'global-require': string; 'eol-last': string; };