Bracketsのおすすめプラグインとその設定

# おすすめ設定

brackets本体のおすすめ設定を示す。
設定は設定ファイルをプロジェクトのルートディレクトリに格納することで自動的に読み込まれる。


```json:.brackets.json
{
    "fonts.fontSize": "12px",
    "fonts.fontFamily": "'SourceCodePro-Medium', ＭＳ ゴシック, 'MS Gothic', monospace",
    "brackets-git.gitPath": "git",
    "brackets-git.stripWhitespaceFromCommits": true,
    "brackets-git.addEndlineToTheEndOfFile": true,
    "brackets-git.removeByteOrderMark": false,
    "brackets-git.normalizeLineEndings": false,
    "brackets-git.useGitGutter": true,
    "brackets-git.markModifiedInTree": true,
    "brackets-git.showBashButton": true,
    "brackets-git.useCodeInspection": true,
    "brackets-git.useGitFtp": false,
    "brackets-git.useVerboseDiff": false,
    "brackets-git.useDifftool": false,
    "brackets-git.showTerminalIcon": false,
    "brackets-git.clearWhitespaceOnSave": false,
    "brackets-git.avatarType": "AVATAR_COLOR",
    "brackets-git.dateMode": 1,
    "brackets-git.dateFormat": null,
    "brackets-git.enableAdvancedFeatures": false,
    "brackets-git.panelShortcut": "Ctrl-Alt-G",
    "brackets-git.commitCurrentShortcut": null,
    "brackets-git.commitAllShortcut": null,
    "brackets-git.bashShortcut": null,
    "brackets-git.pushShortcut": null,
    "brackets-git.pullShortcut": null,
    "brackets-git.gotoPrevChangeShortcut": null,
    "brackets-git.gotoNextChangeShortcut": null,
    "brackets-git.refreshShortcut": null,
    "brackets-git.gitTimeout": 30,
    "brackets-git.terminalCommand": null,
    "brackets-git.terminalCommandArgs": null,
    "brackets-git.debugMode": false,
    "language": {
        "javascript": {
            "linting.prefer": [
                "JSHint",
                "ESLint"
            ],
            "linting.usePreferredOnly": true
        }
    },
    "codehint.JSHints": true,
    "styleActiveLine": true,
    "themes.theme": "dark-theme",
    "spaceUnits": 2,
    "tabSize": 2,
    "softTabs": false,
    "useTabChar": false,
    "wordWrap": false,
    "me.drewh.jsbeautify.on_save": false,
    "showLineNumbers": true,
    "mikaeljorhult.bracketsTodo.enabled": false,
    "bb.beautify.onSave": true,
    "hirse.outline.enabled": true,
    "hirse.outline.sidebar": true
}
```

# おすすめプラグイン
おすすめのプラグインを以下に示す。

## エディタ
* [AngularJS for Brackets @ 1.1.2](https://s3.amazonaws.com/extend.brackets/angularui.angularjs/angularui.angularjs-1.1.2.zip)
* [Beautify @ 2.5.1](https://s3.amazonaws.com/extend.brackets/brackets-beautify/brackets-beautify-2.5.1.zip)

## 静的解析
* [ESLint @ 3.2.0](https://s3.amazonaws.com/extend.brackets/zaggino.brackets-eslint/zaggino.brackets-eslint-3.2.0.zip)
* [JSCS for Brackets @ 0.7.5](https://s3.amazonaws.com/extend.brackets/globexdesigns.brackets-jscs/globexdesigns.brackets-jscs-0.7.5.zip)
* [JSHint @ 2.2.20](https://s3.amazonaws.com/extend.brackets/camden.jshint/camden.jshint-2.2.20.zip)

## リポジトリ
* [Brackets Git @ 0.16.6](https://s3.amazonaws.com/extend.brackets/zaggino.brackets-git/zaggino.brackets-git-0.16.6.zip)

## その他
* [Brackets Outline List @ 1.4.1](https://s3.amazonaws.com/extend.brackets/hirse.outline-list/hirse.outline-list-1.4.1.zip)
* [brackets-file-tree-exclude @ 1.1.0](https://s3.amazonaws.com/extend.brackets/brackets-file-tree-exclude/brackets-file-tree-exclude-1.1.0.zip)
* [Grunt for Brackets @ 0.2.7](https://s3.amazonaws.com/extend.brackets/brackets-grunt/brackets-grunt-0.2.7.zip)
* [Markdown Preview @ 1.0.11](https://s3.amazonaws.com/extend.brackets/gruehle.markdown-preview/gruehle.markdown-preview-1.0.11.zip)
* [Todo @ 0.9.7](https://s3.amazonaws.com/extend.brackets/mikaeljorhult.brackets-todo/mikaeljorhult.brackets-todo-0.9.7.zip)


## テーマ
* [Monokai Dark Soda @ 1.0.9](https://s3.amazonaws.com/extend.brackets/rain.monokai-dark-soda/rain.monokai-dark-soda-1.0.9.zip)
* [New Moon @ 2.3.0](https://s3.amazonaws.com/extend.brackets/new-moon/new-moon-2.3.0.zip)

# プラグインのおすすめ設定

いくつかのプラグインのおすすめ設定を示す。
各設定は設定ファイルをプロジェクトのルートディレクトリに格納することで自動的に読み込まれる。

## [ESLint @ 3.2.0](https://s3.amazonaws.com/extend.brackets/zaggino.brackets-eslint/zaggino.brackets-eslint-3.2.0.zip)のおすすめ設定

```json:.eslintrc.json
{
  "rules": {
    "curly": [
      2,
      "all"
    ],
    "operator-linebreak": [
      2,
      "after"
    ],
    "camelcase": [
      2,
      {
        "properties": "never"
      }
    ],
    "max-len": [
      2,
      100
    ],
    "indent": [
      2,
      2,
      {
        "SwitchCase": 1
      }
    ],
    "quotes": [
      2,
      "single"
    ],
    "no-multi-str": 2,
    "no-mixed-spaces-and-tabs": 2,
    "no-trailing-spaces": 2,
    "space-unary-ops": [
      2,
      {
        "nonwords": false,
        "overrides": {}
      }
    ],
    "keyword-spacing": [
      2,
      {}
    ],
    "space-infix-ops": 2,
    "space-before-blocks": [
      2,
      "always"
    ],
    "eol-last": 2,
    "array-bracket-spacing": [
      2,
      "never",
      {
        "singleValue": true
      }
    ],
    "space-in-parens": [
      2,
      "never"
    ],
    "no-multiple-empty-lines": 2,
    "wrap-iife": 2,
  }
}

```

## [Beautify @ 2.5.1](https://s3.amazonaws.com/extend.brackets/brackets-beautify/brackets-beautify-2.5.1.zip)のおすすめ設定

```json:.jsbeautifyrc
{
  "js": {
    "eol": "\n",
    "preserve_newlines": true,
    "max_preserve_newlines": 2,
    "space_after_anon_function": true,
    "brace_style": "collapse",
    "keep_array_indentation": true,
    "keep_function_indentation": true,
    "space_before_conditional": true,
    "break_chained_methods": false,
    "eval_code": false,
    "unescape_strings": false,
    "wrap_line_length": 100,
    "wrap_attributes": "auto",
    "end_with_newline": true,
    "comma_first": false,
    "jslint_happy": true
  },
  "css": {
    "eol": "\n",
    "end_with_newline": true,
    "preserve_newlines": true,
    "selector_separator_newline": true,
    "newline_between_rules": true,
    "space_around_selector_separator": true
  },
  "html": {
    "eol": "\n",
    "end_with_newline": true,
    "preserve_newlines": true,
    "max_preserve_newlines": 10,
    "indent_inner_html": false,
    "brace_style": "collapse",
    "indent_scripts": "normal",
    "wrap_line_length": 0,
    "wrap_attributes": "auto"
  }
}

```

## [JSHint @ 2.2.20](https://s3.amazonaws.com/extend.brackets/camden.jshint/camden.jshint-2.2.20.zip)のおすすめ設定

```json:.jshintrc
{
  "bitwise": true,
  "camelcase": true,
  "curly": true,
  "eqeqeq": true,
  "esversion": 6,
  "forin": true,
  "freeze": true,
  "immed": true,
  "indent": 2,
  "latedef": "nofunc",
  "newcap": true,
  "noarg": true,
  "noempty": true,
  "nonbsp": true,
  "nonew": true,
  "plusplus": false,
  "quotmark": "single",
  "undef": true,
  "unused": false,
  "strict": false,
  "maxparams": 10,
  "maxdepth": 5,
  "maxstatements": 40,
  "maxcomplexity": 8,
  "maxlen": 120,
  "asi": false,
  "boss": false,
  "debug": false,
  "eqnull": true,
  "esnext": false,
  "evil": false,
  "expr": false,
  "funcscope": false,
  "globalstrict": false,
  "iterator": false,
  "lastsemic": false,
  "laxbreak": false,
  "laxcomma": false,
  "loopfunc": true,
  "maxerr": 50,
  "moz": false,
  "multistr": false,
  "notypeof": false,
  "proto": false,
  "scripturl": false,
  "shadow": false,
  "sub": true,
  "supernew": false,
  "validthis": false,
  "noyield": false,

  "browser": true,
  "node": true,

  "globals": {
    "satellite": false,
    "moment": false,
    "Cesium": false,
    "angular": false,
    "$": false
  }
}

```

## [Todo @ 0.9.7](https://s3.amazonaws.com/extend.brackets/mikaeljorhult.brackets-todo/mikaeljorhult.brackets-todo-0.9.7.zip)のおすすめ設定

```json:.todo
{
	"regex": {
		"prefix": "(?:\\/\\*|\\/\\/|#) *@?(",
		"suffix": "):? *(.*?) ?(?=\\*/|\\n|$)"
	},
	"tags": [
		"TODO",
		"NOTE",
		"FIX ?ME",
		"CHANGES",
		"FUTURE"
	],
	"case": false,
	"search": {
		"scope": "project",
		"excludeFolders": [],
		"excludeFiles": []
	}
}

```