--- Build strict file-reference rules for TypeScript-family source files
-- @module formats.ts.references

local javascript_references = require("format.js.references")
local ts_references = {}

--- Return JavaScript module rules with TypeScript-first filenames
-- @return table rules
function ts_references.new()
	return javascript_references.new({
		".ts", ".tsx", ".mts", ".cts", ".d.ts",
		".js", ".jsx", ".mjs", ".cjs", ".json",
	})
end

return ts_references
