# @angelventura/eslint-plugin-ejs

> Parses out ejs declarations found in js files

Latest version **0.2.0** (published 2021-01-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @angelventura/eslint-plugin-ejs
pnpm add @angelventura/eslint-plugin-ejs
yarn add @angelventura/eslint-plugin-ejs
bun add @angelventura/eslint-plugin-ejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2021-01-16 |
| First published | 2021-01-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 21.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AngelVentura |
| Maintainers | angelventura |
| Keywords | eslint, eslintplugin, eslint-plugin, ejs |

## Links

- npm: https://www.npmjs.com/package/@angelventura/eslint-plugin-ejs
- Repository: https://github.com/angelventura/eslint-plugin-ejs
- Homepage: https://github.com/angelventura/eslint-plugin-ejs#readme
- Issues: https://github.com/angelventura/eslint-plugin-ejs/issues
- npm.io page: https://npm.io/package/@angelventura/eslint-plugin-ejs

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2021-01-16

## README

# eslint-plugin-ejs

Parses out ejs declarations found in js and jsx files. Primarily designed for Redux CLI for parsing ejs syntax.

For 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.
```js
import React from 'react'

type Props = {

};
export class <%= pascalEntityName %> extends React.Component {
  props: Props;

  render () {
    return (
      <div></div>
    )
  }
}

export default <%= pascalEntityName %>
```

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm install eslint --save-dev
```

Next, install `eslint-plugin-ejs`:

```
$ npm install eslint-plugin-ejs --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-ejs` globally.

## Usage

Add `ejs` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
    "plugins": [
        "ejs"
    ]
}
```

## Tests
```
$ npm test
```

## Why a new version ?
This 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

Now I'm moving from lint to ESlint And I'm having issues with code like
```
<%- include('../snippet/js-head.ejs', {fileName: currentName+'.js'}); -%>

```

because tags <%- -%> are not supported by all the ESlint-plugin-ejs I found. This is the reason why I'm creating forking a new module.

Similar projects I'm currenly watching: 
* https://github.com/overlookmotel/eslint-plugin-ejs-js
* https://github.com/silesia-corporation/eslint-plugin-ejs
* https://github.com/jtmthf/eslint-plugin-ejs


## New Tags

Here the tags currenly supported: '<%= ', '<% ', ' %>', '<%- ', ' -%>','<%', '%>'

---
_Source: https://npm.io/package/@angelventura/eslint-plugin-ejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
