Enable ESLint rule on limiting maxiumum length of line (max-len)

I moved the rule from legacy.js to style.js and enabled it
This commit is contained in:
Christopher Banh
2015-12-23 17:39:05 -08:00
parent d11f2663c5
commit 69d3327362
2 changed files with 2 additions and 2 deletions

View File

@@ -2,8 +2,6 @@ module.exports = {
'rules': {
// specify the maximum depth that blocks can be nested
'max-depth': [0, 4],
// specify the maximum length of a line in your program
'max-len': [0, 80, 4],
// limits the number of parameters that can be used in the function declaration.
'max-params': [0, 3],
// specify the maximum number of statement allowed in a function

View File

@@ -34,6 +34,8 @@ module.exports = {
'lines-around-comment': 0,
// 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],
// specify the maximum depth callbacks can be nested
'max-nested-callbacks': 0,
// require a capital letter for constructors