🐊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
{
"rules": {
"apply-dot-notation": "on"
}
}
a.hello.world;
a.hello.world;
a[1];
Linter | Rule | Fix |
---|---|---|
🐊 Putout | apply-dot-notation |
✅ |
⏣ ESLint | dot-notation |
✅ |
📖 Blog | Converting-Bracket-Notation-Dot-Notation |
✅ |
MIT