Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@amedia/eslint-config-react
Advanced tools
ESLint react configuration to be used by developers at Amedia
Common ESLint/Prettier configuration for React that extends @amedia/eslint-config-base.
You need to install this package and it's peer dependencies. You install the package by running:
npm i --save-dev @amedia/eslint-config-react
Then, to install the peer dependencies you can use install-peerdeps
like this:
npx install-peerdeps --dev @amedia/eslint-config-react
Or you can do it manually by running:
npm info "@amedia/eslint-config-react" peerDependencies
npm install --save-dev @amedia/eslint-config-react
There are a few ways to include the eslint config in your project. Make sure you dont have any other settings for eslint or prettier already in your editor workspace or global. Select one of the options below:
Using package.json
:
{
"eslintConfig": {
"extends": ["@amedia/eslint-config-react", "plugin:import/recommended"]
}
}
Using .eslintrc
:
{
"extends": ["@amedia/eslint-config-react", "plugin:import/recommended"]
}
or .eslintrc.js
:
module.exports = {
extends: ['@amedia/eslint-config-react', 'plugin:import/recommended'],
};
You also need to set up a prettier config.
This is how you use or extend the @amedia/eslint-config-base
prettier config in your
app. Select one of options below:
Using package.json
:
{
"prettier": "@amedia/eslint-config-base/prettier.config"
}
Using .prettierrc
:
"@amedia/eslint-config-base/prettier.config"
or prettier.config.js
:
module.exports = require('@amedia/eslint-config-base/prettier.config');
Install these extensions for VS Code:
create a folder .vscode
, and a file settings.json
with the following:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[yaml]": {
"editor.formatOnSave": false
},
"[javascript]": {
"editor.detectIndentation": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
You might want to add these two scripts in you package.json
.
"scripts": {
"lint": "eslint bin lib",
"lint-fix": "eslint --fix bin lib"
},
FAQs
ESLint react configuration to be used by developers at Amedia
The npm package @amedia/eslint-config-react receives a total of 1,163 weekly downloads. As such, @amedia/eslint-config-react popularity was classified as popular.
We found that @amedia/eslint-config-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.