# eslint-config-b7

> Node Style Guide for b7.

Latest version **0.1.0** (published 2018-06-11) · 0 weekly downloads

## Install

```sh
npm install eslint-config-b7
pnpm add eslint-config-b7
yarn add eslint-config-b7
bun add eslint-config-b7
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-06-11 |
| First published | 2018-06-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 4 |
| Unpacked size | 66.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zysam |
| Maintainers | sysam |

## Links

- npm: https://www.npmjs.com/package/eslint-config-b7
- Repository: https://github.com/eggjs/eslint-config-b7
- Issues: https://github.com/eggjs/eslint-config-b7/issues
- npm.io page: https://npm.io/package/eslint-config-b7

## Dependencies (4)

- [babel-eslint](https://npm.io/package/babel-eslint.md) ^8.1.2
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.5.1
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.8.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.0.3

## Recent versions

- 0.1.0 (latest) — 2018-06-11

## README

# eslint-config-b7

Node Style Guide for b7. fork eslint-config-egg

## Install

```bash
npm i eslint eslint-config-b7 --save-dev
```

## Usage

- `package.json`

```json
{
  "devDependencies": {
    "eslint-config-b7": "3",
    "eslint": "3"
  }
}
```

- `.eslintrc.js`

```js
module.exports = {
  extends: 'eslint-config-b7',
};
```

### Use with Experimental Features

If you want to use eslint-config-b7 with experimental features such as `async function`, you should use `babel-eslint` parser:

- `package.json`

```json
{
  "devDependencies": {
    "eslint-config-b7": "3",
    "eslint": "3",
    "babel-eslint": "6"
  }
}
```

- `.eslintrc.js`

```js
module.exports = {
  extends: 'eslint-config-b7',
  // for experimental features support
  parser: 'babel-eslint',
  rules: {
    // see https://github.com/eslint/eslint/issues/6274
    'generator-star-spacing': 'off',
    'babel/generator-star-spacing': 'off',
  }
};
```

### Use with React in Front-End

If you want to use eslint-config-b7 with react, jsx and es6 modules:

- `package.json`

```json
{
  "devDependencies": {
    "eslint-config-b7": "3",
    "eslint": "3",
    "babel-eslint": "6",
    "eslint-plugin-react": "4"
  }
}
```

- `.eslintrc.js`

```js
module.exports = {
  extends: 'eslint-config-b7',
  // for experimental features support
  parser: 'babel-eslint',
  parserOptions: {
    // for es6 module
    sourceType: 'module',
  },
  plugins: [
    'react',
  ],
  rules: {
    // for variables in jsx
    'react/jsx-uses-vars': 'error',
    // see https://github.com/eslint/eslint/issues/6274
    'generator-star-spacing': 'off',
    'babel/generator-star-spacing': 'off',
  },
};
```

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/eslint-config-b7 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
