This module contains Viam's shared ESLint configurations for ESLint v8 in Svelte projects.
Extend the config in .eslintrc.cjs
.
pnpm add --save-dev \
eslint@^8.56.0 \
@viamrobotics/eslint-config-svelte \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin \
eslint-config-prettier \
eslint-plugin-jest-dom \
eslint-plugin-simple-import-sort \
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: {
tsconfigRootDir: __dirname,
projectService: true,
},
};