A few questions regarding "line length of 100" rule
See original GitHub issueHi. I’m dealing with SVG in react, And I’m getting linter errors for svg elements:
function getIcon(name) {
switch (name) {
case 'bell':
return <path d="M14.65 8.512c-2.28-4.907-3.466-6.77-7.19-6.693-1.328.026-1.01-.963-2.022-.588-1.01.375-.143.924-1.177 1.773-2.9 2.383-2.634 4.587-1.288 9.84.567 2.213-1.367 2.32-.602 4.465.56 1.564 4.68 2.22 9.025.607 4.347-1.613 7.086-4.814 6.527-6.378-.765-2.146-2.31-.962-3.272-3.028zm-3.726 8.083c-3.882 1.44-7.072.594-7.207.217-.232-.65 1.253-2.816 5.69-4.463 4.44-1.648 6.916-1.037 7.175-.312.153.43-1.775 3.116-5.658 4.557zM9.676 13.1c-2.03.754-3.44 1.615-4.353 2.39.643.584 1.847.726 3.046.28 1.526-.564 2.465-1.865 2.094-2.903l-.016-.036c-.25.083-.508.172-.772.27z" />;
So the question is there a way to legalise svg-related tags?
Second question: I know that my scripts will be bundled, packed and delivered to the client as one looooong line. Assuming this is there a reason to use “line length” rule?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10 (1 by maintainers)
Top Results From Across the Web
TSLint Error "Exceeds maximum line length of 120"
If you don't like the rule just remove it (but it won't be only for the imports). Go to your tslint.json and remove...
Read more >SAT Math : How to find the length of a line with distance formula
Explanation: To find the distance between two points such as these, plot them on a graph. Then, find the distance between the \dpi{100}...
Read more >Uncertainty in Measuring Length
1. What is the smallest increment on the centimeter ruler above? 2. What is the length of the dark line in the figure...
Read more >85/15 Frequently Asked Questions - Education and Training
The 85/15 Rule (85/15) requires that a minimal number of non-Veterans find a program worthwhile and valuable or the payment of Federal funds...
Read more >Introduction To Ship Load Lines - Marine Insight
Load line is a special marking positioned amidships which depicts the draft of the vessel and the maximum permitted limit in distinct types ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ljharb I think I could override this https://github.com/airbnb/javascript/blob/4540293d44ed2613d8ed6e478455a7433fad7a61/packages/eslint-config-airbnb-base/rules/style.js#L53
with
ignorePattern
to skippath
elements for example?@rpivo yes, exactly as you said. I should have pasted using the code tag so it doesn’t get escaped.
"ignorePattern": "<path([\\s\\S]*?)/>"