
Security News
Research
Destructive npm Packages Disguised as Utilities Enable Remote System Wipe
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
eslint-config-plus-prettier
Advanced tools
Standard config for ESLint and Prettier. Also includes an optional TSConfig.
npm install --save-dev eslint-config-plus-prettier
npx install-peerdeps --dev eslint-config-plus-prettier
Add the following scripts to your package.json
:
"scripts": {
"lint": "eslint . --ext .ts,.js --fix",
"format": "prettier --write ."
}
Add a .eslintrc.json
file with the following:
{
"extends": "eslint-config-plus-prettier"
}
Consider adding a .eslintignore
file to avoid trying to lint compiled code in the dist
folder:
dist
Add prettier config to package.json
:
"prettier": "eslint-config-plus-prettier/.prettierrc.json"
Consider adding a .prettierignore
file to avoid formatting generated files:
package-lock.json
CHANGELOG.md
Add a tsconfig.json
file with the following:
{
"extends": "eslint-config-plus-prettier/tsconfig.json",
"include": ["src"], // Files to be compiled
"compilerOptions": {
"outDir": "dist" // Compiled directory
}
}
npm run lint
npm run format
.ts
and .js
files.FAQs
Standard config for ESLint, Prettier and Package Lint. Also includes an optional TSConfig.
The npm package eslint-config-plus-prettier receives a total of 10 weekly downloads. As such, eslint-config-plus-prettier popularity was classified as not popular.
We found that eslint-config-plus-prettier demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.