@putout/plugin-remove-quotes-from-import-assertions
🐊Putout plugin adds ability to find and remove quotes from import assertions
Last updated 5 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-quotes-from-import-assertions 
SYNC missed versions from official npm registry.

@putout/plugin-remove-quotes-from-import-assertions NPM version

The new import assertions feature allows module import statements to include additional information alongside the module specifier. An initial use for the feature is to enable JSON documents to be imported as JSON modules:

(c) MDN

🐊Putout plugin adds ability to find and remove quotes from import assertions. Checkout in 🐊Putout Editor.

Install

npm i @putout/plugin-remove-quotes-from-import-assertions

Rule

{
    "rules": {
        "remove-quotes-from-import-assertions": "on"
    }
}

❌ Example of incorrect code

import json from './mod.json' with { 'type': 'json' };

✅ Example of correct code

import json from './mod.json' with { type: 'json' };

Current Tags

  • 1.0.0                                ...           latest (5 months ago)

1 Versions

  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE