@putout/plugin-apply-dot-notation

2.0.0 • Public • Published

@putout/plugin-apply-dot-notation NPM version

🐊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-notation

Rule

{
    "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

/@putout/plugin-apply-dot-notation/

    Package Sidebar

    Install

    npm i @putout/plugin-apply-dot-notation

    Weekly Downloads

    2,285

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.74 kB

    Total Files

    4

    Last publish

    Collaborators

    • coderaiser