Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More โ†’
Socket
Book a DemoInstallSign in
Socket

@dethdkn/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dethdkn/eslint-config

๐Ÿงน My Opinionated ESLint Config

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
107
-30.97%
Maintainers
1
Weekly downloads
ย 
Created
Source

@dethdkn/eslint-config

๐Ÿงน My Opinionated ESLint Config

rosa.dev.br License Antfu Gitmoji

๐Ÿ“ฆ About This Package

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

Click here to check all rules

๐Ÿš€ Setup

  • Install with your favorite package manager:

    • pnpm : pnpm add -D eslint @dethdkn/eslint-config
    • npm : npm i -D eslint @dethdkn/eslint-config
    • yarn : yarn add -D eslint @dethdkn/eslint-config
    • bun : 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()
  • Add lint scripts to package.json:
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}
  • Add the following configuration to .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"
  ]
}

โš™๏ธ Options

  • 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 }, {whiteListClasses: [], i18nIgnores: [], fullPackageJson: true})

๐Ÿ“ License

Copyright ยฉ 2024 Gabriel 'DethDKN' Rosa
This project is under MIT license

Keywords

eslint

FAQs

Package last updated on 21 Sep 2025

Did you know?

Socket

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.

Install

Related posts