# eslint-plugin-lagou

> lagou eslint rule

Latest version **1.1.5** (published 2019-03-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-lagou
pnpm add eslint-plugin-lagou
yarn add eslint-plugin-lagou
bun add eslint-plugin-lagou
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2019-03-04 |
| First published | 2019-02-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 42 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tomwang |
| Maintainers | wangjinyang666 |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-lagou
- npm.io page: https://npm.io/package/eslint-plugin-lagou

## Dependencies (11)

- [eslint](https://npm.io/package/eslint.md) ^5.15.0
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^9.0.0
- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^5.2.1
- [eslint-plugin-html](https://npm.io/package/eslint-plugin-html.md) ^5.0.3
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.12.4
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.16.0
- [eslint-plugin-flowtype](https://npm.io/package/eslint-plugin-flowtype.md) ^2.50.3
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.2.1
- [eslint-config-react-app](https://npm.io/package/eslint-config-react-app.md) ^3.0.7
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) ^11.3.0
- [eslint-friendly-formatter](https://npm.io/package/eslint-friendly-formatter.md) ^3.0.0

## Recent versions

- 1.1.5 (latest) — 2019-03-04
- 1.1.4 — 2019-03-04
- 1.1.3 — 2019-02-26
- 1.1.2 — 2019-02-26
- 1.1.1 — 2019-02-26
- 1.0.1 — 2019-02-26
- 1.0.0 — 2019-02-26

## README

# eslint-plugin-lagou

install 

`npm i eslint eslint-plugin-lagou --save-dev`

>base 

core

``` javascriot 
'globals': {
    'jQuery': true,
    '$': true,
    '__url': true,
    '__uri': true,
    '__inline': true,
    'React': true,
    'Vue': true,
    'angular': true,
    'define': true,
    'lg': true,
},
parserOptions: {
    sourceType: 'module',
    parser: 'babel-eslint',
    ecmaVersion: 2018,
    'allowImportExportEverywhere': true  //ignore eslint error: 'import' and 'export' may only appear at the top level
},
env: {
    browser: true,
    node: true,
    es6: true,
},
```

rules for es6 and normal .js file [details rules](https://github.com/wangjinyang/eslint-plugin-lagou/blob/master/configs/base.js)

>vue

core 
```
extends: [
    'base',
    'plugin:vue/recommended'
],
plugins: [
    'vue',
    'html'
],
```
.eslintrc.js
``` javescript
module.exports = {
  root: true,
  extends: ['plugin:lagou/vue'],
  // add your custom rules here
  'rules': {
  }
}
```

>react

core 
```
'extends': [require.resolve('./base'), 'react-app'],,
```
.eslintrc.js
``` javescript
module.exports = {
  root: true,
  extends: ['plugin:lagou/react'],
  // add your custom rules here
  'rules': {
  }
}
```

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