1.0.2 • Published 2 years ago
react-eslint-config-base v1.0.2
前端 ESLint 基础规则
项目依赖要求
目前本配置仅适用于技术栈为 React
的项目,项目内 ESLint 版本需 > 7
快速上手
yarn add react-eslint-config-base -D
在项目 ESLint 规则中继承本规则。如 .eslintrc.js
:
/**
* ESLint 配置文件,默认继承 react-eslint-config-base
* 如需覆盖规则,请配置 rules
*/
module.exports = {
extends: [
'react-eslint-config-base',
],
rules: {
// 可在此处覆盖基本规则
},
}