# eslint-config-sun

> Sharable eslint config for Sun

Latest version **1.0.2** (published 2020-06-28) · MIT license · 0 weekly downloads

## Install

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

## 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.0.2 |
| Published | 2020-06-28 |
| First published | 2020-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 61.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xinghaiqing |
| Maintainers | xinghaiqing |
| Keywords | eslint, eslint-config, eslintconfig, sun |

## Links

- npm: https://www.npmjs.com/package/eslint-config-sun
- npm.io page: https://npm.io/package/eslint-config-sun

## Dependencies (4)

- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.1.0
- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^6.2.2
- [vue-eslint-parser](https://npm.io/package/vue-eslint-parser.md) ^7.1.0
- [eslint-plugin-chai-friendly](https://npm.io/package/eslint-plugin-chai-friendly.md) ^0.6.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-06-28
- 1.0.1 — 2020-06-28
- 1.0.0 — 2020-06-18

## README

# Sun ESLint Config

## 配置

``` shell
npm install --save-dev eslint eslint-config-sun
```

然后创建`.eslintrc`文件：

### 仅配置 JS

``` json
{
    "extends": "sun",
    "env": {
        "browser": true,
        "node": true
    }
}
```

### 额外增加 Vue 的配置

``` json
{
    "extends": "sun/vue",
    "env": {
        "browser": true
    }
}
```


## 编辑器配置

### VSCode

如果要使用 Vue 相关的配置，需要配以下内容：

```json
"eslint.enable": true,
"eslint.autoFixOnSave": true,
"eslint.validate": [
    "javascript",
    "javascriptreact",
    { "language": "html", "autoFix": true },
    { "language": "vue", "autoFix": true }
],
```

其它复杂情况可以参考[ESLint配置](http://eslint.cn/docs/user-guide/configuring)。

## 代码风格

- [JavaScript Style](JavaScript.md)
- [Vue Style](Vue.md)

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