@nuofe/eslint-config-react

Base on Airbnb JavaScript Style Guide, supplement TypeScript ESLint.

Usage no npm install needed!

<script type="module">
  import nuofeEslintConfigReact from 'https://cdn.skypack.dev/@nuofe/eslint-config-react';
</script>

README

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