
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
eslint-config-reperio
Advanced tools
This is a sharable ESLint configuration for Reperio. It is based on the following packages:
npm install --save-dev eslint-config-reperio eslint@8 prettier
.eslintrc.json
file:{
"extends": "reperio"
}
npm run lint
and npm run format
scripts to package.json
since most of the rules are automatically fixable.{
"scripts": {
"lint": "eslint . --ignore-path .gitignore",
"format": "eslint . --fix --ignore-path .gitignore"
}
}
It's recommended to install the ESLint and Prettier extensions for your editor. For VS Code, you can install the ESLint extension and Prettier extension.
It is also recommended to enable "Format On Save". Here is an example configuration for VS Code's settings.json
:
{
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": false
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": false
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"eslint.codeActionsOnSave.rules": null,
"eslint.format.enable": true
}
The perfectionist rules are faily opinionated for sorting, so you can disable them as needed, e.g.:
// eslint-disable-next-line perfectionist/sort-objects
const helloWorld = { b: 2, a: 1 }
FAQs
Reperio ESLint config
The npm package eslint-config-reperio receives a total of 15 weekly downloads. As such, eslint-config-reperio popularity was classified as not popular.
We found that eslint-config-reperio 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.