
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
eslint-config-plus-prettier
Advanced tools
Standard config for ESLint, Prettier and Package Lint. Also includes an optional TSConfig.
Standard config for ESLint, Prettier and Package Lint. Also includes an optional TSConfig.
Install the package:
npm install --save-dev --save-exact eslint-config-plus-prettier
Add the following scripts to your package.json
:
{
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "eslint --fix",
"lint:check": "eslint",
"package:lint": "npx npm-package-json-lint ."
}
}
Add a eslint.config.js
file with the following:
import config from "eslint-config-plus-prettier";
export default [config];
To exclude specific folders or files from linting, add an ignores
configuration:
import config from "eslint-config-plus-prettier";
export default [
config,
{
ignores: ["_site/**", "build/**", "*.min.js"],
},
];
Note:
dist/**
andnode_modules/**
are ignored by default.
Add prettier configuration to your package.json
:
{
"prettier": "eslint-config-plus-prettier/prettier"
}
Optional: Create a .prettierignore
file to exclude generated files:
package-lock.json
CHANGELOG.md
dist
Create a .npmpackagejsonlintrc.json
file in your project root:
For npm modules/libraries:
{
"extends": "eslint-config-plus-prettier/packagelint"
}
For applications/servers (with fixed dependencies):
{
"extends": "eslint-config-plus-prettier/packagelint/server"
}
Create a tsconfig.json
file for TypeScript projects:
{
"extends": "eslint-config-plus-prettier/tsconfig",
"include": ["src/**/*"],
"compilerOptions": {
"outDir": "dist"
}
}
Run the following commands to lint and format your code:
# Lint and auto-fix JavaScript/TypeScript files
npm run lint
# Format all files with Prettier
npm run format
# Validate package.json structure
npm run package:lint
# Check formatting without making changes
npm run format:check
# Check linting without auto-fixing
npm run lint:check
@typescript-eslint
parser and pluginsimple-import-sort
pluginunused-imports
pluginpackage.json
structure and dependencieseslint.config.js
is in the project rooteslint-config-prettier
to disable conflicting ESLint rules.prettierignore
file"type": "module"
in package.json).cjs
extension for config filesFound an issue or have a suggestion? Please open an issue or submit a pull request.
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 81 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.