Exempt lines which look like pure JSX from the maxlen line

pull/21833/head
Richard van der Hoff 2017-02-01 09:59:46 +00:00
parent 878e5593ba
commit cf049f2d75
1 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,11 @@ module.exports = {
* things that are errors in the js-sdk config that the current * things that are errors in the js-sdk config that the current
* code does not adhere to, turned down to warn * code does not adhere to, turned down to warn
*/ */
"max-len": ["warn"], "max-len": ["warn", {
// apparently people believe the length limit shouldn't apply
// to JSX.
ignorePattern: '^\\s*<',
}],
"valid-jsdoc": ["warn"], "valid-jsdoc": ["warn"],
"new-cap": ["warn"], "new-cap": ["warn"],
"key-spacing": ["warn"], "key-spacing": ["warn"],