Skip to content

Commit

Permalink
Merge pull request #32 from atom-ide-community/atom-ide-base
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Oct 8, 2020
2 parents 78e30ae + b30a37e commit d0fdac8
Show file tree
Hide file tree
Showing 9 changed files with 241 additions and 190 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ let renderer: (markdownText: string, grammar: string) => Promise<string>

/**
* retrieves a reference to the markdown rendering service that should be used
* @param {AtomIDE.MarkdownService} markdownService the service for rendering markdown text
* @param {MarkdownService} markdownService the service for rendering markdown text
*/
export function consumeMarkdownRenderer(markdownService: AtomIDE.MarkdownService) {
export function consumeMarkdownRenderer(markdownService: MarkdownService) {
renderer = markdownService.render
}
```
Expand Down
7 changes: 3 additions & 4 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// @ts-check
/// <reference path="../typings/atom-ide.d.ts"/>
'use babel';

import { CompositeDisposable } from 'atom';
import { render } from './renderer';
import type { MarkdownService } from "atom-ide-base"

/**
* the Atom IDE markdown service plugin
Expand Down Expand Up @@ -37,8 +36,8 @@ export function deactivate() {

/**
* provide an interface to the Markdown renderer service
* @return {AtomIDE.MarkdownService} the markdown renderer service
* @return {MarkdownService} the markdown renderer service
*/
export function provideMarkdownRenderer(): AtomIDE.MarkdownService {
export function provideMarkdownRenderer(): MarkdownService {
return {render};
}
2 changes: 0 additions & 2 deletions lib/renderer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-check
/// <reference path="../typings/atom-ide.d.ts"/>
'use babel';

import { TextEditor } from 'atom';
import { scopeForFenceName, fenceNameForScope } from './utils';
Expand Down
9 changes: 0 additions & 9 deletions lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
//// Linting Options - Uncomment options to get more features (usually more restrictive)
"strict": true,
"strictNullChecks": true,
"noUnusedLocals": true,
Expand All @@ -9,31 +8,23 @@
"noImplicitAny": true,
"noImplicitThis": true,
"noFallthroughCasesInSwitch": true,
//// Compilation options
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"incremental": true,
// "preserveConstEnums": true,
"inlineSourceMap": true,
"inlineSources": true,
"preserveSymlinks": true,
"removeComments": true,
//
"jsx": "react",
"jsxFactory": "etch.dom",
//
"lib": ["ES2018", "dom"],
"target": "ES2018",
//
"allowJs": true,
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
// "noLib": false,
"importHelpers": false,
// if true you should add tslib to deps
// "skipLibCheck": false,
"outDir": "../dist"
},
"compileOnSave": false
Expand Down
2 changes: 0 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use babel';

const scopesByFenceName = {
'bash': 'source.shell',
'sh': 'source.shell',
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,31 @@
"prepare": "npm run build"
},
"dependencies": {
"dompurify": "^2.1.0",
"marked": "^1.1.1"
"dompurify": "^2.1.1",
"marked": "^1.2.0"
},
"devDependencies": {
"@types/atom": "1.40.4",
"@types/dompurify": "2.0.4",
"@types/marked": "^1.1.0",
"@types/node": "^14.11.2",
"@types/node": "^14.11.5",
"atom-ide-base": "^1.10.0",
"atom-languageclient": "^0.9.9",
"@types/jasmine": "^3.5.14",
"atom-jasmine3-test-runner": "^5.1.0",
"atom-jasmine3-test-runner": "^5.1.2",
"typescript": "^4.0.3",
"tslib": "^2.0.1",
"tslib": "^2.0.2",
"prettier": "^2.1.2",
"eslint": "7.9.0",
"eslint": "7.10.0",
"eslint-config-atomic": "^1.5.0",
"rollup": "^2.28.1",
"rollup": "^2.29.0",
"rollup-plugin-atomic": "^1.2.0",
"shx": "^0.3.2",
"cross-env": "^7.0.2",
"@babel/cli": "7.11.6",
"@babel/core": "7.11.6",
"babel-preset-atomic": "^2.4.2",
"npm-check-updates": "9.0.2",
"npm-check-updates": "9.0.4",
"build-commit": "0.1.1"
},
"activationHooks": [
Expand Down
Loading

0 comments on commit d0fdac8

Please sign in to comment.