
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@elibol/eslint-config-test
Advanced tools
Prettier and ESLint configuration for JavaScript & Vue projects
Prettier and ESLint configuration for JavaScript & Vue projects
yarn add -D eslint prettier@2 eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue
or
npm install -D eslint prettier@2 eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue
Add the @elibol/eslint-config to extends: array in your .eslintrc.js file
module.exports = {
root: true,
extends: ['@elibol/eslint-config'],
}
To inherit prettier rules, you need to import prettier configuration from the package as well.
To do that, replace content of your prettier.config.js file with the code below
module.exports = require('@elibol/eslint-config/prettier.config')
NOTE: By default the package exports Vue configuration. So using
extends: ["@elibol/eslint-config"]will by default include JavaScript andeslint-plugin-vuerules. If you want to use pure JavaScript rules see Using JavaScript rules only
If you would only need to import JavaScript rules but not Vue, then you can use the package as following:
module.exports = {
extends: ['@elibol/eslint-config/javascript'],
}
If this is the scenario, you don't need to install eslint-plugin-vue either.
Add the scripts below to your package.json file. Then you will be able to run
npm lint or yarn lint for running the linter drynpm lint:fix or yarn lint:fix to run the linter and fix errors/warnings (those that are fixable){
"scripts": {
"lint": "eslint \"**/*.{vue,ts,js}\"",
"lint-fix": "eslint --fix \"**/*.{vue,ts,js}\""
}
}
Add the settings below to your VSCode settings to run linter on every save
.vscode/settings.json
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
FAQs
Prettier and ESLint configuration for JavaScript & Vue projects
The npm package @elibol/eslint-config-test receives a total of 0 weekly downloads. As such, @elibol/eslint-config-test popularity was classified as not popular.
We found that @elibol/eslint-config-test demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.