ReferenceIndividual lint rules
Table number
Configure plural or singular physical table names.
Checks physical table name inflection. For snake_case names, inflection can apply to the final word.
Enable this opt-in rule under lint.rules.
Configuration
import { defineConfig } from '@mwillbanks/zenstack-zenlev'
export default defineConfig({
lint: {
rules: {
'zenlev/naming/table-number': [
'error',
{ form: 'plural', irregular: { person: 'people' }, uncountable: ['equipment'] },
],
},
},
})Parameters
formacceptsplural(default),singular, andunchanged.irregularmaps singular forms to plural forms.uncountablelists forms to preserve.
All built-in rules accept the shared selectors.
Example
Rename account_person to account_people. equipment can keep its existing form.