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