Created
January 19, 2018 06:49
-
-
Save sigwyg/65b6733a72f317af72feca855fbb1343 to your computer and use it in GitHub Desktop.
ESLint セミコロン書くか書かないか設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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