
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
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 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 .",
"lint:fix": "eslint . --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 for you, here are the instructions:
Code
→ Preferences
→ Settings
or Cmd + ,
:// 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"],
npm run eject
or yarn eject
npx install-peerdeps --dev eslint-config-eneax
package.json
and replace "extends": "react-app"
with "extends": "eneax"
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 2 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.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.