New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

eslint-plugin-exclude-php-tags

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-exclude-php-tags

A preprocessor to remove PHP tags

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

eslint-plugin-exclude-php-tags

A preprocessor to remove PHP tags to prevent "Unexpected token <" errors in .phtml files.

Under the hood

By fact it just replaces occurrences of <?...?> for 0 to prevent parsing of php code.

Installation

You'll first need to install ESLint:

$ npm install eslint

Next, install eslint-plugin-exclude-php-tags:

$ npm install eslint-plugin-exclude-php-tags

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-exclude-php-tags globally.

Usage

Add exclude-php-tags to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "exclude-php-tags"
    ]
}

Keywords

eslint

FAQs

Package last updated on 28 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts