Skip to content

Commit 3a9c2f1

Browse files
committed
🚨 ignore rule max-len if the line contains urls
1 parent 469daf6 commit 3a9c2f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ module.exports = {
2424
'@typescript-eslint/explicit-module-boundary-types': 'error',
2525
'@typescript-eslint/explicit-member-accessibility': 'error',
2626
'@typescript-eslint/no-explicit-any': 'off',
27-
'max-len': ['error', { code: 80 }],
27+
'max-len': [
28+
'error',
29+
{
30+
code: 80,
31+
ignoreUrls: true,
32+
}
33+
],
2834
'simple-import-sort/imports': 'error',
2935
'simple-import-sort/exports': 'error',
3036
'import/first': 'error',

0 commit comments

Comments
 (0)