@iobroker/create-adapter
Version:
Command line utility to create customized ioBroker adapters
27 lines • 625 B
JavaScript
"use strict";
const templateFunction = answers => {
const useTypeScript = answers.language === "TypeScript";
const useReact = answers.adminUi === "react" || answers.tabReact === "yes";
if (useTypeScript || !useReact) {
return;
}
const template = `
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"react/prop-types": "off"
}
}
`;
return template.trim();
};
templateFunction.customPath = "admin/.eslintrc.json";
module.exports = templateFunction;
//# sourceMappingURL=_eslintrc_js_react.json.js.map