2.0.0 β’ Published 2 years ago
@putout/plugin-apply-dot-notation v2.0.0
@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
Install
npm i @putout/plugin-apply-dot-notationRule
{
"rules": {
"apply-dot-notation": "on"
}
}β Example of incorrect code
a.hello.world;β Example of correct code
a.hello.world;
a[1];Comparison
| Linter | Rule | Fix |
|---|---|---|
| π Putout | apply-dot-notation | β |
| β£ ESLint | dot-notation | β |
| π Blog | Converting-Bracket-Notation-Dot-Notation | β |
License
MIT