Address comments in #639

[eslint] Add comment above `max-len` rule with link to its docs
[eslint] Change tab width for `max-len` rule from 4 to 2
[eslint] Replace double quotes around `max-len` with single quotes
[eslint] Use object form of `max-len` and include all of the options
This commit is contained in:
Christopher Banh
2015-12-24 02:01:51 -08:00
parent f1c249bcd3
commit e2e4724fbb

View File

@@ -35,7 +35,17 @@ module.exports = {
// disallow mixed 'LF' and 'CRLF' as linebreaks
'linebreak-style': 0,
// specify the maximum length of a line in your program
"max-len": [2, 100, 4],
// https://github.com/eslint/eslint/blob/master/docs/rules/max-len.md
'max-len': [2, {
'code': 100,
'comments': 100,
'commentLength': 100,
'tabWidth': 2,
'ignoreUrls': false,
'ignorePattern': null,
'ignoreTrailingComments': false,
'ignoreComments': false
}],
// specify the maximum depth callbacks can be nested
'max-nested-callbacks': 0,
// require a capital letter for constructors