FlandreDaisuki / rollup-plugin-userscript-metablock

Transform json file to userscript metablock and append on.
https://www.npmjs.com/package/rollup-plugin-userscript-metablock
MIT License
35 stars 8 forks source link

Add compatibility to GreaseMonkey 4.x #1

Closed FlandreDaisuki closed 2 years ago

FlandreDaisuki commented 6 years ago

Maybe check transformed code and print warning or throw Error if use @grant GM.* but found GM_* in code or vice versa.

Maybe transform code and add @grant both API and append GMC or gm4-polyfill to @require. ( I think this very hard and maybe not metablock plugin do... )

nikolay-borzov commented 2 years ago

@grant check is done by eslint-plugin-userscripts compat-grant rule

FlandreDaisuki commented 2 years ago

WOW!! I've never thought that using the eslint plugin to validate it. Good work!