README
Nuo FE React ESLint Config
Base on Airbnb JavaScript Style Guide, supplement TypeScript ESLint.
Thanks for eslint-config-react-app, vue-cli, umi.
Install
yarn add @nuofe/eslint-config-react --dev
Usage
// .eslintrc.js
module.exports = {
root: true,
extends: '@nuofe/eslint-config-react',
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
};