Socket
Book a DemoInstallSign in
Socket

eslint-config-standard-universal

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-standard-universal

ESLint configuration for Standard, works universally with JavaScript, TypeScript, Svelte, and more. For browsers, Node.js, and Deno.

latest
npmnpm
Version
1.0.9
Version published
Weekly downloads
84
20%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-standard-universal

ESLint configuration for Standard, works universally with JavaScript, TypeScript, Svelte, and more. For browsers, Node.js, and Deno.

Example Usage

// eslint.config.js
import config from 'eslint-config-standard-universal'
import tseslint from 'typescript-eslint'
import globals from 'globals'

export default tseslint.config(
  ...config(globals.node),
  {
    languageOptions: {
      parserOptions: {
        tsconfigRootDir: import.meta.dirname
      }
    },
  }
)

tsconfigRootDir is required for the svelte plugin. Globals are optional, as by default the config imports globals for browser, if you however want to override it with globals for NodeJS/Deno/Bun or other runtimes you can pass them as an argument.

FAQs

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