
Company News
Socket Has Acquired Secure Annex
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.
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 17 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.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.