@nuofe/eslint-config-common
v8.2.2
Published
Base on Airbnb JavaScript Style Guide, supplement TypeScript ESLint.
Downloads
11
Readme
Nuo FE Common 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-common --dev
Usage
// .eslintrc.js
module.exports = {
root: true,
extends: '@nuofe/eslint-config-common',
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
};