SublimeHyperClick icon indicating copy to clipboard operation
SublimeHyperClick copied to clipboard

Add support for JavaScript template literals

Open ArtskydJ opened this issue 2 years ago • 0 comments

HyperClick doesn't support JavaScript template literals:

// works great
require("./my-file.js")
import("./my-file.js")

// works great
require('./my-file.js')
import('./my-file.js')

// does not work :(
require(`./my-file.js`)
import(`./my-file.js`)

Obviously parsing any templates ./my-${ whatever }.js is way outside the scope of HyperClick.

why

At work, we use this ESLint rule:

module.exports = {
	// ...
	rules: {
		quotes: [ `warn`, `backtick` ],
	}
}

ArtskydJ avatar Jul 08 '22 23:07 ArtskydJ