NullVoxPopuli / eslint-plugin-decorator-position

ESLint plugin for enforcing decorator position

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prettier Conflict with `defaults.properties: 'inline'`

NullVoxPopuli opened this issue · comments

when the decorator-position config has:

defaults: {
  properties: 'inline',
}

multi-line decorators conflict with prettier.
example:

@foo({

}) propertyName;
// ^ prettier wants propertyName on the next line

Solution: potentially detect when prettier is present, and and do nothing for this situation? (allowing prettier to move the propertyName.

:tada: This issue has been resolved in version 1.1.1 :tada:

The release is available on:

Your semantic-release bot 📦🚀