@tstv/eslint-config
v4.1.1
Published
Shareable ESLint Config
Downloads
1,418
Readme
ESLint Shareable Config
This is a shareable config that fits great with most TypeScript projects.
Usage
Edit your eslint.config.mjs file and add the following:
import {defineConfig} from 'eslint/config';
import eslintConfig from '@tstv/eslint-config';
export default defineConfig({
files: ['**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}'],
ignores: [
'**/.dependency-cruiser.cjs',
'**/coverage/**',
'**/dist/**',
'**/docs/**',
'**/eslint.config.mjs',
'**/vitest.config.ts',
],
extends: [eslintConfig],
});Documentation
ESLint migration tool:
npx @eslint/migrate-config .eslintrc.jsonRead more:
- https://github.com/JsDaddy/eslint-8-to-9/blob/main/README.md
- https://eslint.org/docs/latest/use/configure/configuration-files#using-a-shareable-configuration-package
