diff --git a/.eslintrc.json b/.eslintrc.json index ff1fc1ac0b..e2ee1c1387 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,10 @@ } }, "rules": { + "max-len": [ + "error", + { "code": 80, "ignoreTemplateLiterals": true, "ignoreUrls": true } + ], "no-tabs": "error" } } diff --git a/src/Documentation/Markdown/Markdown.js b/src/Documentation/Markdown/Markdown.js index e07e35dab2..257ec8e028 100644 --- a/src/Documentation/Markdown/Markdown.js +++ b/src/Documentation/Markdown/Markdown.js @@ -55,6 +55,7 @@ const HeadingRenderer = ({ level, children }) => { > diff --git a/src/Documentation/SidebarMenu/helper.test.js b/src/Documentation/SidebarMenu/helper.test.js index 4e3bd75319..01ca93da5a 100644 --- a/src/Documentation/SidebarMenu/helper.test.js +++ b/src/Documentation/SidebarMenu/helper.test.js @@ -257,6 +257,7 @@ describe('SidebarMenu/helper', () => { ) }) + // eslint-disable-next-line max-len it("Throws error if item has source: false and doesn't have children", () => { const rawData = [{ slug: 'item-name', source: false }] diff --git a/src/Documentation/glossary.js b/src/Documentation/glossary.js index 3e4f9189e4..560634a9d7 100644 --- a/src/Documentation/glossary.js +++ b/src/Documentation/glossary.js @@ -33,8 +33,8 @@ Initialized by running \`dvc init\` in the **workspace**. It will contain the desc: ` The DVC cache is a hidden storage (by default located in the \`.dvc/cache\` directory) for files that are under DVC control, and their different versions. -For more details, please refer to this -[document](/doc/user-guide/dvc-files-and-directories#structure-of-cache-directory). +For more details, please refer to this [document] +(/doc/user-guide/dvc-files-and-directories#structure-of-cache-directory). ` }, { @@ -43,8 +43,8 @@ For more details, please refer to this desc: ` Any data file or directory, as well as intermediate or final result (such as extracted features or a ML model file) that is under DVC control. Refer to -[Versioning Data and Model Files](/doc/use-cases/versioning-data-and-model-files) -for more details. +[Versioning Data and Model Files] +(/doc/use-cases/versioning-data-and-model-files) for more details. ` }, { @@ -68,8 +68,9 @@ A file or a directory that is under DVC control. See \`dvc add\` \`dvc run\`, match: ['external dependency', 'external dependencies'], desc: ` A DVC-file dependency with origin in an external source, for example HTTP, SSH, -Amazon S3, Google Cloud Storage remote locations, or even other DVC repositories. -See [External Dependencies](/doc/user-guide/external-dependencies). +Amazon S3, Google Cloud Storage remote locations, or even other DVC +repositories. See [External Dependencies] +(/doc/user-guide/external-dependencies). ` } ] diff --git a/src/SubscribeForm/index.js b/src/SubscribeForm/index.js index adda7120cd..bce07cb78f 100644 --- a/src/SubscribeForm/index.js +++ b/src/SubscribeForm/index.js @@ -22,7 +22,10 @@ export default function SubscribeForm() { required /> - {/*real people should not fill this in and expect good things - do not remove this or risk form bot signups*/} + {/* + real people should not fill this in and expect good things - + do not remove this or risk form bot signups + */}