mirror of
https://github.com/antebudimir/eslint-plugin-vanilla-extract.git
synced 2025-12-31 17:03:32 +00:00
Add comprehensive rule to detect and prevent empty CSS style blocks: - Identify style objects with no properties - Flag empty style blocks as potential code quality issues - Provide auto-fix capability to remove empty blocks - Handle edge cases like comments-only blocks This rule helps maintain cleaner codebases by eliminating empty style definitions that often result from incomplete refactoring or forgotten implementations, reducing confusion and unnecessary code.
21 lines
644 B
JavaScript
21 lines
644 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['html', 'json', 'lcov', 'text'],
|
|
reportsDirectory: './coverage/vitest-reports',
|
|
include: ['src/css-rules/**/*.ts'],
|
|
exclude: ['src/**/*.css.ts', 'src/**/*index.ts', 'src/**/*types.ts'],
|
|
},
|
|
reporters: [
|
|
'default',
|
|
['json', { outputFile: './coverage/vitest-results/vitest-results.json' }],
|
|
['junit', { outputFile: './coverage/vitest-results/vitest-results.xml' }],
|
|
],
|
|
environment: 'node',
|
|
include: ['src/**/*.test.ts'],
|
|
globals: true,
|
|
},
|
|
});
|