tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
36 lines (35 loc) • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertUsePrimitiveType = void 0;
const convertUsePrimitiveType = () => {
return {
rules: [
{
ruleName: "no-new-wrappers",
},
{
ruleArguments: [
{
types: {
String: {
message: "Use string instead",
fixWith: "string",
},
Boolean: {
message: "Use boolean instead",
fixWith: "boolean",
},
Number: {
message: "Use number instead",
fixWith: "number",
},
},
},
],
ruleName: "@typescript-eslint/ban-types",
},
],
};
};
exports.convertUsePrimitiveType = convertUsePrimitiveType;
//# sourceMappingURL=use-primitive-type.js.map