$ npm 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
© 2010 - cnpmjs.org x YWFE | Home | YWFE