Created
September 26, 2020 00:41
-
-
Save as3k/32ea258675deac8db3077979c6ef99af to your computer and use it in GitHub Desktop.
eslint rules for ignoring long SVG strings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
... | |
rules: { | |
// This accomplishes two things: | |
// - Sets the code and template string lengths to 80 chars. | |
// - Tells esLint to ignore svg paths since these tend to | |
// be VERY long. | |
'vue/max-len': ["error", { | |
"code": 80, | |
"template": 80, | |
"ignorePattern": "<path([\s\S]*?)/>", | |
}], | |
}, | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment