mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 07:47:54 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user