open-index/open-npm huggingface dataset:
npm package: @lianxin/eslint-config
Description: 内部 eslint config
Latest version: 1.0.0

# eslint-config

## Usage

Create a *.eslintrc.js* in your project's root:

```js
module.exports = {
    extends: ['@lianxin/eslint-config']
};
```


## 使用姿势

- 安装`eslint@5`和`babel-eslint@10`

```
npm install eslint@5 --save-dev
npm install babel-eslint@10 --save-dev
```

确保在package.json里有以下三个依赖

```
{
    "devDependencies": {
        "babel-eslint": "^10.0.0",
        "eslint": "^5.0.0",
        "eslint-plugin-vue": "5.0.0"
    }
}
```

- 项目根目录创建.eslintrc文件，并用`@lianxin/eslint-config`扩展

```
{   
    "root": true,
    "extends": "@lianxin/eslint-config"
}
```

- [非必需]创建.eslintignore文件，列出不希望被eslint检查的目录或文件，例如：

```
node_modules
dist
other_path/*
```

That's it!