Shared ESLint configuration for Umi.js framework projects, version 1.6.0. It enforces code style and best practices for React, JSX, import ordering, accessibility (a11y), and React Hooks via peer dependencies on eslint-plugin-flowtype, eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-react, and eslint-plugin-react-hooks. Designed for teams using Umi.js, but can be used in any React project. No active major releases since 2019; consider using modern alternatives like @umijs/lint or custom ESLint configs for newer projects.
npm install eslint-config-umiVerified import paths — ran on the pinned version, not inferred.
Basic ESLint configuration for a Umi project using eslint-config-umi.
Migrate to @umijs/lint or a custom ESLint config
Pin react-hooks plugin to 1.5.0: 'eslint-plugin-react-hooks': '1.5.0'
Add 'plugins': ['flowtype'], 'rules': { 'flowtype/define-flow-type': 'off' }Override 'jsx-a11y/...' rules as needed
Ensure eslint-config-umi is installed and extends: ['umi'] is set
Run npm install --save-dev eslint-plugin-react@7.x
Add 'parserOptions': { 'ecmaFeatures': { 'jsx': true } } or use a JSX parser