@porscheinformatik/eslint-plugin-template
v1.4.1
Published
Provides custom eslint rules for Porscheinformatik
Readme
@porscheinformatik/eslint-plugin-template
Provides custom eslint template rules for Porsche Informatik
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install @porscheinformatik/eslint-plugin-template:
npm install @porscheinformatik/eslint-plugin-template --save-devUsage
Add @porscheinformatik/template to the plugins section of your .eslintrc configuration file. You can omit the
eslint-plugin- prefix:
{
"plugins": [
"@porscheinformatik/template"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"@porscheinformatik/template/rule-name": 2
}
}It's recommended to use the recommended configuration
{
"extends": [
"plugin:@porscheinformatik/template/recommended"
]
}Rules
💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 💼 | 🔧 | | :--------------------------------------------------------------- | :----------------------------------------------------------------------------- | :- | :- | | cds-icon-consistency | Enforces the *-standard shape and matching status on status icons () | | 🔧 | | datagrid-column-filter | Enforces a on elements that bind clrDgField | | 🔧 | | require-datagrid-export | Enforces an export button directly above every | | 🔧 | | test-automation-id | Enforces data-testid on various tags for easier testautomation | ✅ | 🔧 |
