@nuofe/eslint-config-common

8.2.2 • Public • Published

Nuo FE Common ESLint Config

NPM version Downloads

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',
  },
};

Package Sidebar

Install

npm i @nuofe/eslint-config-common

Weekly Downloads

12

Version

8.2.2

License

MIT

Unpacked Size

5.72 kB

Total Files

4

Last publish

Collaborators

  • xunyu
  • nuonuofe
  • zoeblow