You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-12 12:41:46 +03:00
Exempt lines which look like pure JSX from the maxlen line
This commit is contained in:
@ -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"],
|
||||||
|
Reference in New Issue
Block a user