$ cnpm install @putout/plugin-apply-dot-notation
????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
Copyright 2013 - present © cnpmjs.org | Home |