Socket
Socket
Sign inDemoInstall

eslint-config-unjs

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-unjs

ESLint config for unjs projects


Version published
Weekly downloads
1.8K
decreased by-18.63%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-config-unjs

Sharable ESLint config preset for usage across unjs repositories.

✅ Includes:

  • eslint recommended rules
  • uniciorn rules
  • typescript-eslint integration
  • markdown plugin

Getting started

[!NOTE] This preset uses the new ESLint flat config.

Install dependencies:

npx nypm install -D eslint typescript eslint-config-unjs

Create eslint.config.mjs in your project root:

import unjs from "eslint-config-unjs";

export default unjs({
  ignores: [
    // ignore paths
  ],
  rules: {
    // rule overrides
  },
  markdown: {
    rules: {
      // markdown rule overrides
    },
  },
});

Tips:

  • You can pass any number of flat configs to unjs preset wrapper
  • Types for rules are auto generated using antfu/eslint-typegen.

License

MIT

FAQs

Package last updated on 28 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc