Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eslint/eslint-jp

Repository for creating and triaging issues in Japanese
https://github.com/eslint/eslint-jp

Last synced: about 2 months ago
JSON representation

Repository for creating and triaging issues in Japanese

Awesome Lists containing this project

README

        

# ESLint

[![Gitter](https://badges.gitter.im/eslint/eslint-jp.svg)](https://gitter.im/eslint/eslint-jp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

このリポジトリは [ESLint](https://github.com/eslint/eslint) に関するバグ報告・機能提案・質問を日本語で行える場所です。

ESLint に関することなら、何でもお気軽に [Issue](https://github.com/eslint/eslint-jp/issues/new) を作ってみてください。

例えば、

- バグっぽい動作を見つけた
- こんな機能 / ルールがほしい
- この機能を日本語で解説して欲しい
- ○○したいんだけど、どうすればいいの?

オープンソース プロジェクトにとってユーザーの声は財産です。
どうぞよろしくお願いします。

## 解説記事など

- [ESLint 最初の一歩](http://qiita.com/mysticatea/items/f523dab04a25f617c87d)
- [ESLint v2.0.0 の変更点まとめ](http://qiita.com/mysticatea/items/8bcecd821cca9e849078)
- [共有設定でらくらく ESLint](http://qiita.com/mysticatea/items/dc35ced6bd5e782f50cd)
- [ESLint をグローバルにインストールせずに使う](http://qiita.com/mysticatea/items/6bd56ff691d3a1577321)
- [ESLint のカスタムルールを作ろう! (その1)](http://qiita.com/mysticatea/items/cc3f648e11368799e66c)

----

以下は [README.md](https://github.com/eslint/eslint#readme) の一部です。

## インストール方法

ESLint は npm を使ってインストールします。

npm install -g eslint

## 使い方

最初に `--init` オプションを利用して設定ファイルを作ります。

eslint --init

そして、任意の JS コードに対して eslint コマンドを実行します。

eslint test.js test2.js

## 設定ファイル

`eslint --init` コマンドを実行すると、`.eslintrc` ファイルが作成されます。
`.eslintrc` ファイルによって、どんなルールで JS コードを検証するかを設定することができます。

```json
{
"extends": "eslint:recommended",
"rules": {
"semi": [2, "always"],
"quotes": [2, "double"]
}
}
```

`"semi"` と `"quotes"` はルール名です ([ルール一覧](http://eslint.org/docs/rules) (英語))。
`2` とあるのは各ルールの警告レベルを設定しています。

* `0` - ルールをオフにします。
* `1` - 警告モードでルールをオンにします (ルール違反を見つけても `eslint` コマンドは正常終了します)。
* `2` - エラーモードでルールをオンにします (ルール違反を見つけたら `eslint` コマンドは異常終了(exit code 1)します)。

これらのルール・レベルによって、ESLint のふるまいを細やかに制御できます。
設定項目についての詳細は [configuration docs](http://eslint.org/docs/user-guide/configuring) (英語) を参照ください。

## 開発チーム

* Nicholas C. Zakas ([@nzakas](https://github.com/nzakas)) - project lead
* Ilya Volodin ([@ilyavolodin](https://github.com/ilyavolodin)) - reviewer
* Brandon Mills ([@btmills](https://github.com/btmills)) - reviewer
* Gyandeep Singh ([@gyandeeps](https://github.com/gyandeeps)) - reviewer
* Toru Nagashima (長島 徹) ([@mysticatea](https://github.com/mysticatea)) - reviewer
* Mathias Schreck ([@lo1tuma](https://github.com/lo1tuma)) - committer
* Jamund Ferguson ([@xjamundx](https://github.com/xjamundx)) - committer
* Ian VanSchooten ([@ianvs](https://github.com/ianvs)) - committer
* Burak Yiğit Kaya ([@byk](https://github.com/byk)) - committer
* Alberto Rodríguez ([@alberto](https://github.com/alberto)) - committer
* Kai Cataldo ([@kaicataldo](https://github.com/kaicataldo)) - committer
* Michael Ficarra ([@michaelficarra](https://github.com/michaelficarra)) - committer