eslint-plugin-zip-custom
v0.1.0
Published
Custom ESLint rules for Zip's monorepo
Downloads
2,506
Readme
eslint-plugin-zip-custom
Custom ESLint rules for Zip's monorepo.
Installation
npm install eslint-plugin-zip-custom --save-devUsage
Add zip-custom to the plugins section of your ESLint configuration:
{
plugins: ['zip-custom'],
rules: {
'zip-custom/column-name-sentence-case': 'error',
'zip-custom/consistent-default-export-component-naming': 'error',
'zip-custom/no-upload-with-defer-or-stream': 'error',
}
}Rules
💡 Manually fixable by editor suggestions.
| Name | Description | 💡 | | :----------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | :- | | column-name-sentence-case | Ensure strings assigned to columnName are Sentence case | | | consistent-default-export-component-naming | Enforce matching the default export to the filename | 💡 | | no-upload-with-defer-or-stream | Disallow @defer and @stream directives in GraphQL operations with Upload arguments | |
