UNPKG

@o3r/eslint-config-otter

Version:

Recommended eslint configuration for Otter project

24 lines 928 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addStylistic = void 0; const node_path_1 = require("node:path"); const schematics_1 = require("@o3r/schematics"); /** * Add Stylistic package in the dependencies * @param tree * @param context */ const addStylistic = (tree, context) => { const projectPackageJson = tree.readJson(node_path_1.posix.join('.', 'package.json')); const externalDependencies = (0, schematics_1.getExternalDependenciesInfo)({ devDependenciesToInstall: ['@stylistic/eslint-plugin-ts'], dependenciesToInstall: [], o3rPackageJsonPath: (0, node_path_1.resolve)(__dirname, '..', '..', '..', 'package.json'), projectPackageJson }, context.logger); return (0, schematics_1.setupDependencies)({ dependencies: externalDependencies }); }; exports.addStylistic = addStylistic; //# sourceMappingURL=stylistic.js.map