@viamrobotics/eslint-config-svelte
v0.8.0
Published
ESLint configuration for Svelte projects at Viam.
Downloads
353
Readme
Viam's ESLint Config for Svelte
This module contains Viam's shared ESLint configurations for ESLint v8 in Svelte projects.
Base config
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,
},
};