UNPKG

ts-standard

Version:

Typescript Standard Style based on StandardJS

25 lines (24 loc) 819 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = require("path"); const eslint = require("eslint"); const tsconfig_1 = require("./tsconfig"); function getOptions() { const tsConfig = new tsconfig_1.TSConfig(); return { // cmd, homepage, bugs all pulled from package.json cmd: 'ts-standard', version: require('../package.json').version, homepage: require('../package.json').homepage, bugs: require('../package.json').bugs.url, tagline: 'Standard for Typescript!', eslint, eslintConfig: { configFile: path_1.join(__dirname, '../eslintrc.json'), parserOptions: { project: tsConfig.getConfigFilePath() } } }; } exports.getOptions = getOptions;