$ npm install @putout/plugin-remove-quotes-from-import-assertions
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.
npm i @putout/plugin-remove-quotes-from-import-assertions
{
"rules": {
"remove-quotes-from-import-assertions": "on"
}
}
import json from './mod.json' with { 'type': 'json' };
import json from './mod.json' with { type: 'json' };
© 2010 - cnpmjs.org x YWFE | Home | YWFE