Skip to content

Latest commit

 

History

History

eslint-config

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Viam's ESLint Config

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

Base config

Extend the config in .eslintrc.cjs.

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

module.exports = {
  root: true,
  extends: ['@viamrobotics/eslint-config'],
  parserOptions: {
    tsconfigRootDir: __dirname,
    projectService: true,
  },
};

Svelte config

See @viamrobotics/eslint-config-svelte