πPutout plugin applies dot notation
npm install @putout/plugin-apply-dot-notation[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-dot-notation.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-dot-notation "npm"
πPutout plugin adds ability to apply dot notation. Checkout out in πPutout Editor.
> Property accessors provide access to an object's properties by using the dot notation or the bracket notation.
>
> (c) MDN
```
npm i @putout/plugin-apply-dot-notation
`json`
{
"rules": {
"apply-dot-notation": "on"
}
}
`js`
a.hello['world'];
`js`
a.hello.world;
a[1];
Linter | Rule | Fix
--------|-------|------------|
π Putout | apply-dot-notation | β
β£ ESLint | dot-notation | β
π Blog | Converting-Bracket-Notation-Dot-Notation` | β
MIT