Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A modern ESlint configuration for JavaScript, TypeScript and React that includes the Airbnb style guide, jsx-a11y to help with accessibility and Pettier to do some code formatting.
A modern ESlint configuration for JavaScript, TypeScript and React that includes the Airbnb style guide, jsx-a11y to help with accessibility and Prettier to do some code formatting.
It's always a bit time consuming to create or maintain different ESlint configurations that work with different languages and libraries such as TypeScript and React. The goal of this package is to have different configurations that just work out-of-the-box and are constantly kept up-to-date.
Installing this package is as easy as any other packages. Simply use your favorite package manager. Keep in mind you'll need to install the required peer dependencies first.
Install ESlint and Prettier either locally or globally. Note that locally per project is strongly preferred.
npm install eslint@8 --save-dev
npm install prettier@2 --save-dev --save-exact
If you use TypeScript or React you'll also need to install them, but let's assume they're already installed. We'll only support most recent versions. Have a look at the peerDependencies
field in the package.json
file to know which versions are supported.
npm install easelint --save-dev
Using any file formats supported by ESlint, you'll need to add "100terres"
in the "extends"
value of the configuration. Here's an example using a .eslintrc.js
file.
const easelint = require("easelint");
module.exports = easelint({
javascript: true,
typescript: true,
// we currently only support React
jsxPragma: "react",
eslint: {
// any eslint configuration e.g.
overrides: [
{
files: ["vite.config.ts"],
rules: {
"import/no-extraneous-dependencies": "off",
},
},
],
},
});
Voilà! Your project now uses a linter.
Pull requests are welcomed. If you'd like to contribute to easelint
, that's awesome. Simply open an issue explaining what should be changed, improved or fixed. If we decide that a change is required, we can open a pull request. Once everything looks good, I'll approve and merge the PR.
Licensed under the MIT license.
FAQs
A modern ESlint configuration for JavaScript, TypeScript and React that includes the Airbnb style guide, jsx-a11y to help with accessibility and Pettier to do some code formatting.
The npm package easelint receives a total of 1 weekly downloads. As such, easelint popularity was classified as not popular.
We found that easelint 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.