πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
DemoInstallSign in
Socket

eslint-config-hyoban

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-hyoban

Hyoban's ESLint Config

0.1.17
Source
npm
Version published
Maintainers
1
Created
Source

eslint-config-hyoban

npm version npm downloads bundle JSDocs License

Hyoban's ESLint Config, enable most of the recommended rules from the following plugins:

BasicStyleReactOthers
js βœ…stylistic βœ…react βœ…Tailwind CSS
ts βœ…antfu βœ…hooks βœ…UnoCSS
unicorn βœ…import-sort βœ…refreshflat-gitignore βœ…
i βœ…jsonc βœ…jsx-nestingconfig-viewer βœ…
unused-import βœ…ymljsx-a11y@antfu/eslint-config
nperfectionistnext βœ…eslint-types
compatformat βœ…package-json βœ…

To view what rules are enabled:

npx eslint-flat-config-viewer

# my fork (temporary)
npx efcv

Usage

ni -D eslint eslint-config-hyoban

eslint.config.js

import hyoban from "eslint-config-hyoban";

export default hyoban();

for cjs

const hyoban = require("eslint-config-hyoban").default;

module.exports = hyoban();

.vscode/settings.json

{
  "prettier.enable": false,
  "editor.formatOnSave": false,
  "eslint.experimental.useFlatConfig": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "mdx",
    "html",
    "markdown",
    "json",
    "jsonc",
    "yaml",
    "github-actions-workflow",
    "css"
  ],
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "eslint.rules.customizations": [
    { "rule": "@stylistic/*", "severity": "off" },
    { "rule": "simple-import-sort/*", "severity": "off" },
    { "rule": "import/first", "severity": "off" },
    { "rule": "import/newline-after-import", "severity": "off" },
    { "rule": "import/no-duplicates", "severity": "off" },
    { "rule": "antfu/import-dedupe", "severity": "off" },
    { "rule": "format/prettier", "severity": "off" }
  ]
}

License

MIT License Β© 2023-PRESENT Stephen Zhou

FAQs

Package last updated on 21 Feb 2024

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