New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-esplus

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-esplus

A plugin that will lint ESPlus syntax

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-esplus NPM version

A plugin that will lint ESPlus syntax.

What is ESPlus?

ESPlus is simply a collective name for the resulting syntax of combining the following gulp packages in the build step with ES2015/ES2016:

gulp-module-import-async on NPM

Extends import statements with an 'async' property (e.g. import MyButton from "./buttons/MyButton" async);

gulp-transform-enum on NPM

Enables Java-style enum support. Maps to strings, not integers.

enum MyEnum {
	DOG, CAT, MOUSE
}

gulp-transform-interface on NPM

Enables basic Java-style interfaces.

interface FooBar {
    isFoo = Boolean;
    barCollection = Map;
    sayFoo(arg1, arg2);
    doBar();
}

How does the ESLint plugin work?

It acts as a preprocessor which will recompile the code that ESLint sees to ordinary, valid ES2015 code. This means that it will fit with your existing config and you can code without worrying about linting errors.

Installation

Install eslint-plugin-esplus as a developer dependency:

npm install eslint-plugin-esplus --save-dev

Usage

To use it, declare it as a plugin in your .eslintrc.js config file:

module.exports = {
		"plugins": ["esplus"]
};

Currently there are no custom rules available. It will fallback to the original string material if parsing goes wrong for some reason. Useful warnings or errors might be introduced in the future. For now, you have to live with token errors in case the parser isn't happy about your ESPlus code.

License

Copyright (c) 2016 Dlmma IVS. Released under the MIT license.

Keywords

FAQs

Package last updated on 19 Jul 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc