
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
eslint-config-eneax
Advanced tools
This repo contains my settings for ESLint and Prettier. Checkout all my rules here.
You can use eslint globally and/or locally per project. I prefer to install it locally per single project, so I can have project specific settings:
Create a package.json
file with npm init
.
Install everything needed by the config:
npx install-peerdeps --dev eslint-config-eneax
.eslintrc
file in the root of the project's directory and copy this:{
"extends": ["eneax"]
}
"scripts": {
"lint": "eslint <relative_path>",
"lint:fix": "eslint <relative_path> --fix"
},
For instance, if all your code is in a src/
folder:
"scripts": {
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix"
},
npm run lint
and fix all fixable issues with npm run lint:fix
.If you want to overwrite eslint or prettier settings, go to your .eslintrc
file and you can add rules
.
ESLint rules go directly under "rules"
while prettier options go under "prettier/prettier"
.
For instance:
{
"extends": ["eneax"],
"rules": {
"no-console": 2,
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true
}
]
}
}
If you use VS Code and want it to lint all the errors for you, here are the instructions:
Code
→ Preferences
→ Settings
:// These are all my auto-save configs
"editor.formatOnSave": true,
// turn it off for JS and JSX, we will do this via eslint
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
// tell the ESLint plugin to run on save
"editor.codeActionsOnSave": {
"source.fixAll": true
},
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
"prettier.disableLanguages": ["javascript", "javascriptreact"],
eslint
modules that we installed previously:npm remove eslint-config-eneax babel-eslint eslint eslint-config-prettier eslint-config-airbnb eslint-plugin-html eslint-plugin-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react prettier eslint-plugin-react-hooks
Remove package-lock.json
file and delete the node_modules/
directory.
Repeat above instructions again!
FAQs
ESLint and Prettier Config from Enea Xharja
The npm package eslint-config-eneax receives a total of 16 weekly downloads. As such, eslint-config-eneax popularity was classified as not popular.
We found that eslint-config-eneax 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.