Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
eslint-config-es
Advanced tools
eslint-config-es contains a strict ESLint configuration for ES2015+ and TypeScript.
eslint-config-es contains a strict ESLint configuration for ES2015+ and TypeScript.
Category | Status |
---|---|
Version | |
Dependencies | |
Dev dependencies | |
Build | |
License |
$ npm install eslint-config-es \
eslint
The following additional ESLint plugins are included by default, so you don't have to install them:
Plugin | Automatically enabled |
---|---|
eslint-plugin-extended | Yes |
eslint-plugin-mocha | Yes |
eslint-plugin-react | No |
eslint-plugin-unicorn | Yes |
@typescript-eslint/eslint-plugin | No |
To enable support for React and JSX, all you need to do is to install the react module. The appropriate rules will become enabled automatically.
To enable support for TypeScript, all you need to do is to install the typescript module. The appropriate rules will become enabled automatically for .ts
and .tsx
files. The generated configuration expects a tsconfig.json
at the project root.
This module contains a very strict ESLint configuration for ES2015 and above, both for Node.js and browser development. Its aims to eradicate any variation in code style. If you can not tell any more, based on little individual manners, who of your co-workers wrote a piece of code, this module succeeded. This helps you to narrow down your focus to pure functionality, as you do not have to think about code styling any more at all.
To use one of those configurations, create a .eslintrc.json
file in your project and use the extends
keyword.
{
"extends": "es/node"
}
Alternatively, you may also use es/browser
.
If you want to override any rules, you can do so in your configuration file.
Since this module is required by roboter, it can not use roboter to build itself. Hence you have to use npm
for that.
To analyse the source code run the following command:
$ npm run analyse
FAQs
eslint-config-es contains a strict ESLint configuration for ES2015+ and TypeScript.
The npm package eslint-config-es receives a total of 329 weekly downloads. As such, eslint-config-es popularity was classified as not popular.
We found that eslint-config-es demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.