Remove redundant 'use strict' directives from ES modules

Proprietary

ES modules are always strict mode code, so a 'use strict' directive in one has no effect. Removes such directives at the top of the file and of function bodies in files that are evidently ES modules: .mjs and .mts files, and files with import or export statements or a top-level await. CommonJS modules and classic scripts keep theirs. "type": "module" in package.json does not count, since a classic <script> tag can still load such a file.

io.moderne.javascript.migrate.es6.RemoveRedundantUseStrict
mod run . --recipe=io.moderne.javascript.migrate.es6.RemoveRedundantUseStrict

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.