@amalia-oss/eslint-plugin
v1.0.1
Published
Custom ESLint rules
Downloads
5
Readme
eslint-plugin
Custom ESLint rules.
Install
npm install --save-dev @amalia-oss/eslint-plugin
Setup
Add @amalia-oss
to your list of plugins in your ESLint configuration, and configure the rules you want.
{
plugins: ['@amalia-oss'],
rules: {
'@amalia-oss/object-property-newline': [
'warn',
{ allowAllPropertiesOnSameLine: false },
],
},
}
Rules
| Rule name | Description | Default configuration |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| @amalia-oss/object-property-newline
| A replacement for ESLint's native object-property-newline
rule, but taking the brackets into account for the allowAllPropertiesOnSameLine
option. | { "allowAllPropertiesOnSameLine": false }
|