0.6.0 • Published 4 days ago
@viamrobotics/eslint-config v0.6.0
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'],
},
};
0.6.0
4 days ago
0.5.0
1 month ago
0.4.1
1 month ago
0.4.0
3 months ago
0.3.2
4 months ago
0.3.1
4 months ago
0.3.0
5 months ago
0.1.0
10 months ago
0.2.1
9 months ago
0.1.2
9 months ago
0.2.0
9 months ago
0.1.1
9 months ago
0.2.7
6 months ago
0.2.6
7 months ago
0.2.3
8 months ago
0.2.5
8 months ago
0.2.4
8 months ago
0.0.5
11 months ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago