Skip to content

Instantly share code, notes, and snippets.

@sigwyg
Created January 19, 2018 06:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigwyg/65b6733a72f317af72feca855fbb1343 to your computer and use it in GitHub Desktop.
Save sigwyg/65b6733a72f317af72feca855fbb1343 to your computer and use it in GitHub Desktop.
ESLint セミコロン書くか書かないか設定
// requires semicolons
{
"semi": ["error", "always"],
"semi-spacing": ["error", {"after": true, "before": false}],
"semi-style": ["error", "last"],
"no-extra-semi": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error"
}
// disallows semicolons
{
"semi": ["error", "never", {"beforeStatementContinuationChars": "never"}],
"semi-spacing": ["error", {"after": true, "before": false}],
"semi-style": ["error", "first"],
"no-extra-semi": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment