BetaViberTest is in active development — expect breaking changes.
Overview
#011mediumStyle & Patterns
Style Inconsistency
Detects mixed coding styles: camelCase vs snake_case, quotes, semicolons.
Rule ID:
style-inconsistencyExamples#
BadMixed naming conventions in one project
// Some files use camelCase
const userName = 'John';
const isActive = true;
function getUserData() { /* ... */ }
// Other files use snake_case
const user_name = 'John';
const is_active = true;
function get_user_data() { /* ... */ }
// Mixed quotes and semicolons
const foo = "hello";
const bar = 'world'
const baz = "test";GoodConsistent style enforced by formatter
// Consistent camelCase everywhere
const userName = 'John';
const isActive = true;
function getUserData() { /* ... */ }
// Consistent single quotes, semicolons
const foo = 'hello';
const bar = 'world';
const baz = 'test';
// biome.json or .prettierrc enforces this automaticallyWhat It Detects#
mediumMixed naming conventions (camelCase vs snake_case)
Mixed naming: camelCase ({pct}%) vs snake_case ({pct}%)
Fix: Pick one style and use it consistently. Use a formatter like Biome or Prettier.
mediumMixed function styles (declarations vs arrows)
Mixed function style: declarations vs arrow functions
Fix: Standardize on one function style across the project.
mediumMixed quote styles or semicolon usage
Mixed quote/semicolon style detected
Fix: Configure a formatter to enforce consistent style.
Configuration#
This rule is enabled by default. To disable it:
.vibertestrc.jsonjson
{
"rules": {
"style-inconsistency": {
"enabled": false
}
}
}Learn more: google.github.io/styleguide/tsguide.html