
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@dethdkn/eslint-config
Advanced tools
🧹 My Opinionated ESLint Config
This is my opinionated eslint-config
, heavily inspired by Antfu's config. This setup is a combination of the following rules:
*Not enabled by default
Install with your favorite package manager:
pnpm add -D eslint @dethdkn/eslint-config
npm i -D eslint @dethdkn/eslint-config
yarn add -D eslint @dethdkn/eslint-config
bun add -D eslint @dethdkn/eslint-config
Create a eslint.config.mjs
in the project root:
// eslint.config.mjs
import dethdkn from '@dethdkn/eslint-config'
export default dethdkn()
package.json
:{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
.vscode/settings.json
:{
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"handlebars",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
tailwind
, vue
, nuxt
, vueI18n
, react
, next
, reactI18n
, autoImports
rules can be enabled:// eslint.config.mjs
import dethdkn from '@dethdkn/eslint-config'
export default dethdkn({ tailwind: true, vue: true, nuxt: true, vueI18n: true, react: true, next: true, reactI18n: true, autoImports: true })
Copyright © 2024 Gabriel 'DethDKN' Rosa
This project is under MIT license
FAQs
🧹 My Opinionated ESLint Config
The npm package @dethdkn/eslint-config receives a total of 232 weekly downloads. As such, @dethdkn/eslint-config popularity was classified as not popular.
We found that @dethdkn/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than 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 uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.