{"_id":"@alasdair/eslint-plugin-max-len","_rev":"2-0db221b43763217adfc059beaf3517e3","name":"@alasdair/eslint-plugin-max-len","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@alasdair/eslint-plugin-max-len","version":"1.0.0","description":"Alternative implementation of max-len allowing for more exceptions to the rule","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alasdair"},"main":"lib/index.js","scripts":{"build":"check-engines && npm test","test":"mocha tests --recursive"},"dependencies":{"requireindex":"~1.1.0"},"devDependencies":{"@alasdair/check-engines":"^1.0.0","eslint":"^7.0.0","mocha":"^7.2.0"},"engines":{"node":">=13.0.0"},"license":"ISC","gitHead":"317a0472e5ad9a1e8c86d6489e1af777c247a9a5","_id":"@alasdair/eslint-plugin-max-len@1.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-PZ2uvuiatf4WUWbPMr2nIF6VYANvQCD0FMMC/8ecbrRDkg1kugIYumj7q95DoObLi/tIYRmHdfnLcEjKXa3wjg==","shasum":"df5d5db3d62c7e40de9be3f2db36e16ba71393e2","tarball":"https://registry.npmjs.org/@alasdair/eslint-plugin-max-len/-/eslint-plugin-max-len-1.0.0.tgz","fileCount":7,"unpackedSize":64738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoRosCRA9TVsSAnZWagAA71sP/0/+3EueYLNTUL7NysPL\nBuJEG+vYIjWxDOQfs3jFp8jKFtGLpVBkfaesiFaMOPJ9kES4cfGIgHOSPbVL\nu3/S1cxaWEhgSkKfR0C8BJWQlvuy1ZHZEHnn9bFOK5CKQSV9DDsSh3M/PiDt\n9gntEDSKq0NUCVZEvIRl8c/ZlW2MaJeK0pABin/FRqNh145GHziQxSDYadIK\nooQbSRCp2s5/4bjs1+Mdz/QiPlB7e9RRy3nEB9nJacCUQ03nTf4w9waXWV1Q\nMOH18EWLg7oNX4TgxnYdSuvx8Zn0B7tKG53g1NKAFAmr0W7/M7+aRqPp1PvO\nS6yFiYiEb1YTzXEiGtcl6JUo0gIdCKpktUujFjSdITyXC9tAnPGNIl4lSJcU\nnT2j8a4iYjKso4k10WXdjtAzXtUhsMfxpmKmeFDpREGv0LcpD+lGCiTdBaPE\nFlpprpFDHJaks/qXOVcpZpcaFGIql7UZ0wWXlIlAsAQZfEgdT6K2S4ixNLfu\ny1NDcPklh14ImWcy6rmltPVk8EmM7BRiJ17V1W85ZahYHsaXJkrqIjSrA1Uk\ndA6Va6StqqKJm7Ux9KQJ5c9tOWqVNVRGDx4GzPIbxPKSZVDxo9Z1kPXpnB2p\n/ZgXK5l3YQB4P20C8V1uIdnbcOUUjQ94Q2BIdlem30lSD4DpHKZBGT6b+Q0w\nh12A\r\n=73eA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0d0FmIkw7F4nDBu9/dl4jiAt/4vna1c7bUtVaGwXjlAiEA6Bt3yC3GSnQBYoXbnWXhar7rNyuvgKWvPaJOxlkNgKU="}]},"_npmUser":{"name":"alasdair","email":"omega@omegahurst.co.uk"},"directories":{},"maintainers":[{"name":"alasdair","email":"omega@omegahurst.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-max-len_1.0.0_1621170731592_0.5202895515401269"},"_hasShrinkwrap":false},"1.1.0":{"name":"@alasdair/eslint-plugin-max-len","version":"1.1.0","description":"Alternative implementation of max-len allowing for more exceptions to the rule","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alasdair"},"main":"lib/index.js","scripts":{"build":"check-engines && npm test","test":"mocha tests --recursive"},"repository":{"type":"git","url":"git+https://github.com/alasdairhurst/eslint-plugin-max-len.git"},"dependencies":{"requireindex":"~1.1.0"},"devDependencies":{"@alasdair/check-engines":"^1.0.0","eslint":"^7.0.0","mocha":"^7.2.0"},"engines":{"node":">=13.0.0"},"license":"ISC","gitHead":"675c7e6053ac2b58620ac46bc1ee4e111e31f696","bugs":{"url":"https://github.com/alasdairhurst/eslint-plugin-max-len/issues"},"homepage":"https://github.com/alasdairhurst/eslint-plugin-max-len#readme","_id":"@alasdair/eslint-plugin-max-len@1.1.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-f670IoCixzSdDpF3iJIZG+r4kC0ViBKGoydq4PjsshFVbK8ftdW1H/0yKZdG9KQG/cwRWwVy5k2UXd5RKLcfcA==","shasum":"53d16f44c6b12e468507c5ec33444ab6bd4cbed4","tarball":"https://registry.npmjs.org/@alasdair/eslint-plugin-max-len/-/eslint-plugin-max-len-1.1.0.tgz","fileCount":7,"unpackedSize":70476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq5ZPCRA9TVsSAnZWagAAU6MP/A0/oX5/p12sbSKgUydl\n6BG08wg9RrbbSA7/aOR9IKzKRadOLl5UalECEbb/Tv3FQCztrSNK61T9q5mQ\nFsYJCzoETuaUWnMYxCmHRrFwhDQWPpSIyN4GaYX7cWEE3uWV5Pet1JyAmTAD\n2bZtPuZMwCdO//mM3NFAGE3WJXtb90hfjPqsgqQWVZcSVa6kGD8GD1/BevEN\nNpXig1lwy9RoNnNRZPAWbdnj7heBmdhu0cYn6VirQs3xG2mQ77nFhl/d8rnE\n9h9sXC3UarKqEmS3pd48Oy1iKy2R1IqirJNPcoMyeewIfpzef0Fc+UubqrIL\nsExLkMS9CYP+5tUbIvY8gdKroWhscuxRh1KdqzmBrqu1/JmuAbRVNepbWnK+\n+1eaqzNkj7AYLLPKvUJgfXnSPwZAf6nwxXyl3K+XRKQaBIhiCVHrm/Xigt2T\nfkG9tOm9tWGR8a3QsyV2YeZgO9oRwBBnZQdrwj/qvUhfnf/+ygO6KgDJ7U9e\nMVj0CTNCMrY28dnWRFgbUG2BF0ilF01qatXk+OgEUmEXkzQ7s8Y2lyJVYsA4\n2rqbMJD/ZDlDpvBNzcc/U6epAXgAy4krbV/up2B4ro6KB+kNDOxn8pkecJxd\n8kxGmwD77zpnv7ClrVUV6nkAEeGYtfGDCFp61a06We1Oe5R2bKNym1BUj1vU\n447S\r\n=Ypdw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+Mf8h1bcruv0EjtfakWcHexEziSi05bF7IdfvwakqUAiBhb+KdjqQ/WFbK32CloLIIWPq8YSVZUGQxu28/bJVjXA=="}]},"_npmUser":{"name":"alasdair","email":"omega@omegahurst.co.uk"},"directories":{},"maintainers":[{"name":"alasdair","email":"omega@omegahurst.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-max-len_1.1.0_1621857870910_0.40494090808089656"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-16T13:12:11.550Z","1.0.0":"2021-05-16T13:12:11.755Z","modified":"2022-04-04T12:33:25.259Z","1.1.0":"2021-05-24T12:04:31.036Z"},"maintainers":[{"name":"alasdair","email":"omega@omegahurst.co.uk"}],"description":"Alternative implementation of max-len allowing for more exceptions to the rule","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alasdair"},"license":"ISC","readme":"# @alasdair/eslint-plugin-max-len\n\nAlternative implementation of max-len allowing for more exceptions to the rule\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `@alasdair/eslint-plugin-max-len`:\n\n```\n$ npm install @alasdair/eslint-plugin-max-len --save-dev\n```\n\n\n## Usage\n\nAdd `@alasdair/max-len` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"@alasdair/max-len\"\n    ]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"rules\": {\n        \"@alasdair/max-len/max-len\": [\"error\", 80]\n    }\n}\n```\n\n```json\n{\n    \"rules\": {\n        \"@alasdair/max-len/max-len\": [\"error\", {\n            \"ignoreLongLiteral\": true\n        }]\n    }\n}\n```\n\n```json\n{\n    \"rules\": {\n        \"@alasdair/max-len/max-len\": [\"error\", {\n            \"ignoreLongLiteral\": true,\n            \"longLiteralPrefixChars\": 16,\n            \"treatTemplateAsOneLiteral\": true,\n            \"templateExpressionChars\": 20\n        }]\n    }\n}\n```\n\n## Supported Rules\n@alasdair/max-len/max-len\n\n### Options\nThis rule has a number or object option:\n\n**code:** (default 80) enforces a maximum line length\n\n**tabWidth:** (default 4) specifies the character width for tab characters\n\n**comments:** enforces a maximum line length for comments; defaults to value of code\n\n**ignorePattern:** ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON. Can also be an array of patterns.\n\n**ignoreComments:** true ignores all trailing comments and comments on their own line\n\n**ignoreTrailingComments:** true ignores only trailing comments\n\n**ignoreUrls:** true ignores lines that contain a URL\n\n**ignoreStrings:** true ignores lines that contain a double-quoted or single-quoted string\n\n**ignoreTemplateLiterals:** true ignores lines that contain a template literal\n\n**ignoreRegExpLiterals:** true ignores lines that contain a RegExp literal\n\n**ignoreLongLiteral:** true ignores lines that contain (mostly) a long literal. There are a few exceptions to the rule, lines ending in and brackets are allowed, as well as semicolons and commas. There are a number of characters allowed to prefix the literal. These characters can be part of one or more literals. Leading whitespace is ignored.\n\n**longLiteralPrefixChars:** (default 16) specifies the number of characters allowed to prefix long literals.\n\n**treatTemplateAsOneLiteral:** true allows template strings with expressions to be treated as single literal when _ignoreLongLiteral_ is enabled. Otherwise, code will have to be split on the expression.\n\n```code\n`template string ${this.is + an.expression}`;\n```\n\n**templateExpressionChars:** (default 20) specifies the number of characters allowed within template expressions if _treatTemplateAsOneLiteral_ is enabled.\n\n","readmeFilename":"README.md","homepage":"https://github.com/alasdairhurst/eslint-plugin-max-len#readme","repository":{"type":"git","url":"git+https://github.com/alasdairhurst/eslint-plugin-max-len.git"},"bugs":{"url":"https://github.com/alasdairhurst/eslint-plugin-max-len/issues"}}