ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / typescript/prefer-array-type-alias
Prefer alias for array type.
module.exports = {
plugins: ["misc"],
rules: {
"misc/typescript/prefer-array-type-alias": "error"
}
};
function f(x: readonly string[]) {}
type strings = readonly string[];
function f(x: strings) {}