![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@byjohann/eslint-config
Advanced tools
Sharable ESLint config for my repositories with a focus on code reproducibility and readability.
I was switching between different ESLint configs for my projects. Most of the time Anthony Fu's set of rules was the best fit. He is proactively advocating using ESLint for formatting, which I don't agree with. I prefer to use Prettier for formatting and ESLint for linting.
Thus, the day has come to create my own ESLint config. My goal is to find the middle ground between as little rules as possible and as many rules as necessary. For example, I prefer strictly ordered module and type imports.
Inspirations are drawn from:
[!NOTE] This ESLint config is unopinionated about code styling. Prettier is recommended as code formatter.
# pnpm
pnpm add -D eslint prettier @byjohann/eslint-config
# npm
npm install -D eslint prettier @byjohann/eslint-config
# yarn
yarn add -D eslint prettier @byjohann/eslint-config
[!NOTE] Installing Prettier is optional. Omit the
prettier
package if you don't want to use it.
Create a .eslintrc
file in the root of your project with the following content:
{
"extends": "@byjohann/eslint-config"
}
To enable auto-applied linting and formatting on save in VSCode, add the following to your project's local .vscode/settings.json
:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.validate": ["javascript", "javascriptreact", "vue"]
}
To force your fellow developers to use the same VSCode extensions as you, add the following to your project's local .vscode/extensions.json
:
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"Vue.volar"
]
}
[!NOTE] If you're not using Vue, remove the
Vue.volar
extension from the list.
MIT
FAQs
ESLint config for my projects
We found that @byjohann/eslint-config 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.