{"_id":"@angelventura/eslint-plugin-ejs","_rev":"1-5eb048513e95c57bbba03c13b2f268fb","name":"@angelventura/eslint-plugin-ejs","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@angelventura/eslint-plugin-ejs","version":"0.2.0","description":"Parses out ejs declarations found in js files","main":"lib/index.js","directories":{"lib":"lib","test":"tests"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","eslint":"^7.17.0","mocha":"^8.2.1"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha tests --recursive"},"repository":{"type":"git","url":"git+https://github.com/angelventura/eslint-plugin-ejs.git"},"keywords":["eslint","eslintplugin","eslint-plugin","ejs"],"author":{"name":"AngelVentura"},"license":"Apache-2.0","bugs":{"url":"https://github.com/angelventura/eslint-plugin-ejs/issues"},"homepage":"https://github.com/angelventura/eslint-plugin-ejs#readme","gitHead":"659cd30c3b23e7e790a0b7c9a95222d12ad67fbe","_id":"@angelventura/eslint-plugin-ejs@0.2.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-h8pcvODdQYh9lo0p3FhZS9B+ZqIuJj+fotcqHFqTwTgVtt14TNsWJxst5hPtTsNapZSCu0VMUc7pNTmgz6pVZQ==","shasum":"83272483d68a34fb109038f0279e06b8a50b0a08","tarball":"https://registry.npmjs.org/@angelventura/eslint-plugin-ejs/-/eslint-plugin-ejs-0.2.0.tgz","fileCount":8,"unpackedSize":22330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgA0BpCRA9TVsSAnZWagAAwW8P/2H8oDJyAW/AJtK7COZV\nGGPzCgbMQbt7Sl2gCNhtbDsu58Ga3gQQdMfRcPH8Bn4u8XJE7ioWWTYNQKXF\nxbeyLoYuh5z0qAiPji6ftqplAy7RdsDHXnZo6kowIkfxBbro+D4u2S0YqNVs\nWigMCyl/yDTZ4znhR5cAXJfBDvZxSlFKoyGsVoHyXI/N1uk1/qND9f5w6Kvo\npBOxjyav8cSi1sLHm7O8SvwzS+q5ZGTrShVN62Sc9Zg/FVjzDNAkcx9ZdgWG\nbwvx/fyKylnHkA9HqITaJQ5DLjJZhtYCue5UR0pE8Us46/WIpSOVjBkzpnMr\nDIWFIiwmFcrgb1HEGI4bjKUhpYyZmEAFwTCAtnSROTFwA+S5zF4pO6vC8gIq\ne1mB1m8WahmkvSh0MUG7Jr8ZHuFD+8bqWYjxbpR797E0F3zWczs3XBN1ATcE\nruzce7E2PL5h1Pjd+bwWI5DurGITHznyzzhZG8Vm2e27N3n7mn7X47X1URLr\npFUZkCWBN9g0TiOBC5/sYlgX18EilqQFtjkoVR/GZLcTB30pEhgwR5a90zsh\nXWdkak+pWaX1VtaVDOqf3oi+yy9psxFioI/u4YYGjUEjNpG/+wwZqRym8p+U\noMTZv87vADKkH1wWphK53aEdrBxvFtslmMHW8XBGfcP7c6nMuNLxj7WBOfoM\nFoRb\r\n=ym8l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrTz8loLPHLCVI4a3cfhc4luvkPtYM/YcLv1YqCnE3lAiBRA0gxbhx/og//hL6yF0/kronZ/Sae5FtcSzZu8aWbIA=="}]},"_npmUser":{"name":"angelventura","email":"ventura@ginere.eu"},"maintainers":[{"name":"angelventura","email":"ventura@ginere.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-ejs_0.2.0_1610825833333_0.28013847734022423"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-16T19:37:13.290Z","0.2.0":"2021-01-16T19:37:13.450Z","modified":"2022-04-04T14:05:55.720Z"},"maintainers":[{"name":"angelventura","email":"ventura@ginere.eu"}],"description":"Parses out ejs declarations found in js files","homepage":"https://github.com/angelventura/eslint-plugin-ejs#readme","keywords":["eslint","eslintplugin","eslint-plugin","ejs"],"repository":{"type":"git","url":"git+https://github.com/angelventura/eslint-plugin-ejs.git"},"author":{"name":"AngelVentura"},"bugs":{"url":"https://github.com/angelventura/eslint-plugin-ejs/issues"},"license":"Apache-2.0","readme":"# eslint-plugin-ejs\n\nParses out ejs declarations found in js and jsx files. Primarily designed for Redux CLI for parsing ejs syntax.\n\nFor example if you have a file like below, eslint will not be able to parse it normally due to the ejs markers. With this plugin, the linter is able to work normally. Note that whatever is inside the markers will remain.\n```js\nimport React from 'react'\n\ntype Props = {\n\n};\nexport class <%= pascalEntityName %> extends React.Component {\n  props: Props;\n\n  render () {\n    return (\n      <div></div>\n    )\n  }\n}\n\nexport default <%= pascalEntityName %>\n```\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm install eslint --save-dev\n```\n\nNext, install `eslint-plugin-ejs`:\n\n```\n$ npm install eslint-plugin-ejs --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-ejs` globally.\n\n## Usage\n\nAdd `ejs` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"ejs\"\n    ]\n}\n```\n\n## Tests\n```\n$ npm test\n```\n\n## Why a new version ?\nThis source code come originally from: https://www.npmjs.com/package/eslint-plugin-ejs/v/0.0.2, no Github repository found for this code. I saw similar code here: https://github.com/jtmthf/eslint-plugin-ejs\n\nNow I'm moving from lint to ESlint And I'm having issues with code like\n```\n<%- include('../snippet/js-head.ejs', {fileName: currentName+'.js'}); -%>\n\n```\n\nbecause tags <%- -%> are not supported by all the ESlint-plugin-ejs I found. This is the reason why I'm creating forking a new module.\n\nSimilar projects I'm currenly watching: \n* https://github.com/overlookmotel/eslint-plugin-ejs-js\n* https://github.com/silesia-corporation/eslint-plugin-ejs\n* https://github.com/jtmthf/eslint-plugin-ejs\n\n\n## New Tags\n\nHere the tags currenly supported: '<%= ', '<% ', ' %>', '<%- ', ' -%>','<%', '%>'\n","readmeFilename":"README.md"}