# @alloyteam/eslint-config-standard

> AlloyTeam standard ESLint configuration

Latest version **1.0.0-beta.1** (published 2017-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @alloyteam/eslint-config-standard
pnpm add @alloyteam/eslint-config-standard
yarn add @alloyteam/eslint-config-standard
bun add @alloyteam/eslint-config-standard
```

## 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.0-beta.1 |
| Published | 2017-08-23 |
| First published | 2017-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2628 |
| Author | xcatliu |
| Maintainers | xcatliu, alloyteam2008, lcxfs1991 |
| Keywords | eslint, eslintconfig, config, alloyteam, javascript, styleguide |

## Links

- npm: https://www.npmjs.com/package/@alloyteam/eslint-config-standard
- Repository: https://github.com/steamerjs/code-lint
- Homepage: https://github.com/steamerjs/code-lint#readme
- Issues: https://github.com/steamerjs/code-lint/issues
- npm.io page: https://npm.io/package/@alloyteam/eslint-config-standard

## Dependencies (1)

- [babel-eslint](https://npm.io/package/babel-eslint.md) ^7.2.3

## 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.0-beta.1 (latest) — 2017-08-23
- 0.0.9 — 2017-08-21
- 0.0.8 — 2017-08-12
- 0.0.7 — 2017-07-31
- 0.0.5 — 2017-06-16
- 0.0.4 — 2017-06-16
- 0.0.3 — 2017-06-16
- 0.0.2 — 2017-06-15

## README

# AlloyTeam ESLint 规则

本规则中包含了[所有 ESLint 规则](https://eslint.org/docs/rules/)，依据以下三条原则进行配置：

1. 能够帮助发现代码错误的规则，全部开启
2. 配置不依赖于某个具体项目，需要尽可能的合理
3. 帮助保持代码风格统一，而不是限制开发体验

本规则基于 ESLint 4.2.0

## 使用方法

### 安装

```bash
npm install --dev @alloyteam/eslint-config-standard babel-eslint
```

### 配置你的 .eslintrc.js

在你的项目根目录下创建 `.eslintrc.js`，并将以下内容复制到文件中：

```js
module.exports = {
    extends: [
        '@alloyteam/eslint-config-standard',
    ],
    globals: {
        // 这里填入你的项目需要的全局变量
        // 这里值为 false 表示这个全局变量不允许被重新赋值，比如：
        //
        // React: false,
        // jQuery: false,
        // $: false
    },
    rules: {
        // 这里填入你的项目需要的个性化配置，比如：
        //
        // // @fixable 一个缩进必须用两个空格替代
        // 'indent': [
        //     'error',
        //     2,
        //     {
        //         SwitchCase: 1,
        //         flatTernaryExpressions: true
        //     }
        // ]
    }
};
```

## Testing

```bash
npm test
```

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