Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular Support #161

Open
NullVoxPopuli opened this issue Oct 3, 2020 · 2 comments
Open

Angular Support #161

NullVoxPopuli opened this issue Oct 3, 2020 · 2 comments
Labels
Hacktoberfest help wanted Extra attention is needed

Comments

@NullVoxPopuli
Copy link
Owner

Angular makes use of many decorators. It'd be great to add a default configuration that supports whatever idiomatic Angular is

@NullVoxPopuli NullVoxPopuli added the help wanted Extra attention is needed label Jul 20, 2021
@splincode
Copy link

'decorator-position/decorator-position': [
                    'error',
                    {
                        printWidth: 120,
                        properties: 'prefer-inline',
                        methods: 'above',
                        overrides: {
                            'prefer-inline': [
                                ['@Pipe', { withArgs: true }],
                                ['@Directive', { withArgs: true }],
                                ['@Injectable', { withArgs: true }]
                            ]
                        }
                    }
                ],

Hello, this is not working for

@Pipe({
    name: 'my'
})
export class MyPipe implements PipeTransform {
    public transform(): void {
       /// ...
    }
}

Expected:

@Pipe({ name: 'my' })
export class MyPipe implements PipeTransform {
    public transform(): void {
       /// ...
    }
}

@NullVoxPopuli
Copy link
Owner Author

Hello! Thanks for reporting! And chance you'd be willing to set up a minimal reproduction following examples here?: https://github.com/NullVoxPopuli/eslint-plugin-decorator-position/tree/master/smoke-tests/issue-reproductions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants