Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
eslint-plugin-esplus
Advanced tools
A plugin that will lint ESPlus syntax.
ESPlus is simply a collective name for the resulting syntax of combining the following gulp packages in the build step with ES2015/ES2016:
Extends import statements with an 'async' property (e.g. import MyButton from "./buttons/MyButton" async
);
Enables Java-style enum support. Maps to strings, not integers.
enum MyEnum {
DOG, CAT, MOUSE
}
Enables basic Java-style interfaces.
interface FooBar {
isFoo = Boolean;
barCollection = Map;
sayFoo(arg1, arg2);
doBar();
}
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.
Install eslint-plugin-esplus
as a developer dependency:
npm install eslint-plugin-esplus --save-dev
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.
Copyright (c) 2016 Dlmma IVS. Released under the MIT license.
FAQs
A plugin that will lint ESPlus syntax
The npm package eslint-plugin-esplus receives a total of 0 weekly downloads. As such, eslint-plugin-esplus popularity was classified as not popular.
We found that eslint-plugin-esplus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.