ember-cli / ember-cli/eslint-plugin-ember

`no-get` rule should be able to autofix even for strings containing invalid JS variable names

Open
#1,009 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
263
Forks
214
Avg merge
30m
Merged PRs (30d)
5

Description

The rule currently reports a violation for this situation (invalid JS variable name in path) but does not autofix. This ticket suggests implementing an autofixer for this situation.

Before:

```js
this.foo.get('bar-baz')
```

After (desired):

```js
this.foo['bar-baz']
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.