Skip to content

Instantly share code, notes, and snippets.

@as3k
Created September 26, 2020 00:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save as3k/32ea258675deac8db3077979c6ef99af to your computer and use it in GitHub Desktop.
Save as3k/32ea258675deac8db3077979c6ef99af to your computer and use it in GitHub Desktop.
eslint rules for ignoring long SVG strings.
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