Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit f643224

Browse files
authored
Merge pull request #664 from matrix-org/rav/no_maxlen_jsx
Exempt lines which look like pure JSX from the maxlen line
2 parents 6f53b2d + cf049f2 commit f643224

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ module.exports = {
5353
* things that are errors in the js-sdk config that the current
5454
* code does not adhere to, turned down to warn
5555
*/
56-
"max-len": ["warn"],
56+
"max-len": ["warn", {
57+
// apparently people believe the length limit shouldn't apply
58+
// to JSX.
59+
ignorePattern: '^\\s*<',
60+
}],
5761
"valid-jsdoc": ["warn"],
5862
"new-cap": ["warn"],
5963
"key-spacing": ["warn"],

0 commit comments

Comments
 (0)