You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@viamrobotics/eslint-config-svelte

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@viamrobotics/eslint-config-svelte

ESLint configuration for Svelte projects at Viam.

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
629
-8.58%
Maintainers
7
Weekly downloads
 
Created
Source

Viam's ESLint Config for Svelte

This module contains Viam's shared ESLint configurations for ESLint v9 in Svelte projects.

Base config

Extend the config in eslint.config.js.

[!TIP] See the typescript-eslint docs on type-aware linting to learn about how to configure languageOptions. Using projectService: true is recommended for new projects, but older projects may continue to use project: './tsconfig.json' for performance or compatibility reasons.

pnpm add --save-dev eslint @viamrobotics/eslint-config-svelte
// eslint.config.js
import path from 'node:path';

import {
  baseSvelteConfig,
  createConfig,
} from '@viamrobotics/eslint-config-svelte';

export default createConfig(
  baseSvelteConfig,
  {
    languageOptions: {
      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname,
      },
    },
    settings: {
      tailwindcss: {
        config: path.join(import.meta.dirname, 'tailwind.config.ts'),
      },
    },
  },

Non-Svelte projects

See @viamrobotics/eslint-config

Keywords

eslint

FAQs

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