New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@viamrobotics/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@viamrobotics/eslint-config

Common ESLint configuration for Viam projects.

0.6.1
Source
npm
Version published
Weekly downloads
522
-0.76%
Maintainers
0
Weekly downloads
 
Created
Source

Shared ESLint Config for Viam

This module contains Viam's shared ESLint configurations for ESLint v8.

Base config

Use the base config for vanilla JavaScript / TypeScript projects. Be sure to add your tsconfig.json files to parserOptions.project and settings['import/resolver'].typescript.project.

pnpm add --save-dev \
  @viamrobotics/eslint-config \
  @typescript-eslint/parser \
  @typescript-eslint/eslint-plugin \
  eslint \
  eslint-config-prettier \
  eslint-plugin-sonarjs \
  eslint-plugin-unicorn \
  eslint-plugin-vitest
// .eslintrc.cjs
'use strict';

module.exports = {
  root: true,
  extends: ['@viamrobotics/eslint-config'],
  parserOptions: {
    project: ['./tsconfig.json'],
  },
};

Svelte config

Use the Svelte config for Svelte projects.

pnpm add --save-dev \
  @viamrobotics/eslint-config \
  @typescript-eslint/parser \
  @typescript-eslint/eslint-plugin \
  eslint \
  eslint-config-prettier \
  eslint-plugin-jest-dom \
  eslint-plugin-sonarjs \
  eslint-plugin-svelte \
  eslint-plugin-tailwindcss \
  eslint-plugin-testing-library \
  eslint-plugin-unicorn \
  eslint-plugin-vitest
// .eslintrc.cjs
'use strict';

module.exports = {
  root: true,
  extends: ['@viamrobotics/eslint-config/svelte'],
  parserOptions: {
    project: ['./tsconfig.json'],
  },
};

Keywords

eslint

FAQs

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