Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
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.
npm install --save-dev 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];
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/prettier"
Consider adding a .prettierignore
file to avoid formatting generated files:
package-lock.json
CHANGELOG.md
Add a .npmpackagejsonlintrc.json
file with the following:
If you are working on a module:
{
"extends": "eslint-config-plus-prettier/packagelint"
}
If you are working on a server, that needs fixed dependencies:
{
"extends": "eslint-config-plus-prettier/packagelint/server"
}
Add a tsconfig.json
file with the following:
{
"extends": "eslint-config-plus-prettier/tsconfig",
"include": ["src"], // Files to be compiled
"compilerOptions": {
"outDir": "dist" // Compiled directory
}
}
npm run lint
npm run format
npm run package:lint
lint
will check for errors and fix formatting in .ts
and .js
files.format
will apply format rules to all possible files.package:lint
will warn of any inconsistencies in the package.json
file.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 28 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 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.