UNPKG

@vidavidorra/create-project

Version:
21 lines 862 B
import ts from 'typescript'; import { File } from './file.js'; class EslintConfig extends File { constructor(path, options) { super(path, { ...options, format: true, read: false }); } process() { this._content = ts.createPrinter().printFile(this.sourceFile()); return this; } sourceFile() { const statements = [ ts.factory.createExportDeclaration(undefined, false, ts.factory.createNamedExports([ ts.factory.createExportSpecifier(false, undefined, ts.factory.createIdentifier('default')), ]), ts.factory.createStringLiteral('@vidavidorra/eslint-config')), ]; return ts.factory.createSourceFile(statements, ts.factory.createToken(ts.SyntaxKind.EndOfFileToken), ts.NodeFlags.None); } } export { EslintConfig }; //# sourceMappingURL=eslint-config.js.map