Skip to content

Commit

Permalink
feat: Disables max-lines and max-statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexseitsinger committed Jun 14, 2019
1 parent 7a6c2e4 commit 9bc8738
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rules/base/lib/stylistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,13 @@ module.exports = {
/**
* Enforce a maximum number of lines per file.
*
* NOTES:
* - Have have packages that use modules longer than 300, so just disable
* this rule completely.
*
* https://eslint.org/docs/rules/max-lines
*/
"max-lines": ["error", {
"max-lines": ["off", {
"max": 300,
"skipBlankLines": true,
"skipComments": true,
Expand Down Expand Up @@ -428,9 +432,12 @@ module.exports = {
/**
* Enforce a maximum number of statements allowed in function blocks.
*
* NOTES:
* - We sometimes need long functions, without reason, so disable this rule.
*
* https://eslint.org/docs/rules/max-statements
*/
"max-statements": ["error", {
"max-statements": ["off", {
"max": 17,
}],

Expand Down

0 comments on commit 9bc8738

Please sign in to comment.