@putout/plugin-remove-quotes-from-import-assertions
🐊Putout plugin adds ability to find and remove quotes from import assertions
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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. Merged to @putout/plugin-esm.

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' };

License

MIT

Current Tags

  • 1.0.3                                ...           latest (a year ago)

4 Versions

  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |