@socnik/eslint-config-vitest
v0.0.1
Published
Custom config preset for eslint-config-vitest ESLint plugin
Downloads
1
Readme
ESLint Config Vitest
Strict config for eslint-plugin-vitest
. You can see config in src/index.js
.
Usage
This config uses flat config format, so ESLint v9+ required.
Install packages:
npx nypm add -D eslint eslint-plugin-vitest @socnik/eslint-config-vitest
Add to your ESLint config:
// ...
import vitest from 'eslint-plugin-vitest'
import { vitestConfig } from '@socnik/eslint-config-vitest'
// ...
export default [
// ...
{
...vitestConfig, // Add Vitest rules preset. Add onto top!
name: 'Vitest tests',
files: ['src/**/*.test.ts'],
plugins: {
vitest, // Add Vitest plugin
},
rules: {
'vitest/prefer-todo': 'off', // Override rules if you want to change something
},
},
// ...
]