Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@edgeandnode/eslint-config

Package Overview
Dependencies
Maintainers
20
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edgeandnode/eslint-config

ESLint configuration used in Edge & Node products

  • 2.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
260
increased by40.54%
Maintainers
20
Weekly downloads
 
Created
Source

@edgeandnode/eslint-config

Installation

Install the package
pnpm add --save-dev @edgeandnode/eslint-config
Use the preset in your .eslintrc.js file.
// .eslintrc.js
module.exports = {
  parser: "@typescript-eslint/parser",
  extends: ["@edgeandnode", "@edgeandnode/eslint-config/next"],
  plugins: ["testing-library"],
  rules: {
    "testing-library/no-unnecessary-act": ["error", { isStrict: true }],
  },
  overrides: [
    {
      files: ["*.ts", "*.tsx"],
      parserOptions: {
        project: require.resolve("./tsconfig.json"),
      },
    },
  ],
};
Presets
  • @edgeandnode/eslint-config — base profile built with eslint-plugin-jsx-a11y, eslint-plugin-react, eslint-plugin-react-hooks, eslint-plugin-simple-import-sort, eslint-plugin-sonarjs, and eslint-plugin-simple-import-sort

  • @edgeandnode/eslint-config/next — profile for Next.js built with @next/eslint-config-next

Development

  • Mark changes from "default" rules present in common presets with @changed.
  • Describe the background for a rule or it's disabling with a comment marked with @motivation.
  • Use rules that affect semantics — detect bugs and "no morning coffee" mistakes.
  • Avoid obtrusive code-style rules.

FAQs

Package last updated on 14 Nov 2023

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