Skip to content

Commit 6f7ba44

Browse files
committed
Initial commit
0 parents  commit 6f7ba44

33 files changed

+18442
-0
lines changed

.babelrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"modules": false
5+
}],
6+
"stage-0",
7+
"react"
8+
],
9+
"plugins": [
10+
"external-helpers"
11+
]
12+
}

.circleci/config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8
6+
environment:
7+
## this enables colors in the output
8+
TERM: xterm
9+
10+
working_directory: ~/react-markdown-editor
11+
12+
steps:
13+
- checkout
14+
15+
- run:
16+
name: Install Dependencies
17+
command: yarn install
18+
19+
- run:
20+
name: Run Tests
21+
command: yarn test
22+
23+
- run:
24+
name: Run ESLint
25+
command: yarn lint
26+
27+
- run:
28+
name: Run Flow
29+
command: yarn flow:check
30+
31+
# Not yet :/
32+
# - run:
33+
# name: Run Cypress
34+
# command: yarn cypress
35+
#

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintrc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"@webscopeio"
5+
],
6+
"env": {
7+
"es6": true
8+
},
9+
"plugins": [
10+
"react"
11+
],
12+
"parserOptions": {
13+
"sourceType": "module",
14+
"allowImportExportEverywhere": true
15+
},
16+
"rules": {
17+
// don't force es6 functions to include space before paren
18+
"space-before-function-paren": 0,
19+
20+
// allow specifying true explicitly for boolean props
21+
"react/jsx-boolean-value": 0,
22+
23+
// allow imports mixed with non-import statements at top of file
24+
"import/first": 0
25+
}
26+
}

.flowconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[ignore]
2+
3+
[include]
4+
5+
[libs]
6+
7+
[lints]
8+
9+
[options]
10+
11+
[strict]

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
4+
# dependencies
5+
node_modules
6+
7+
# builds
8+
build
9+
dist
10+
11+
# misc
12+
.DS_Store
13+
.env
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
.idea
19+
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# react-markdown-editor
2+
3+
> Markdown editor with Github-like autocomplete
4+
5+
[![CircleCI](https://circleci.com/gh/webscopeio/react-markdown-editor/tree/master.svg?style=svg)](https://circleci.com/gh/webscopeio/react-markdown-editor/tree/master)
6+
7+
![demo](https://user-images.githubusercontent.com/1083817/39962530-ba6b3040-5651-11e8-8279-b7ec74b56ca5.gif)
8+
9+
## Warning
10+
This is a work in progress. It's not well tested yet, please do not use this in production yet.
11+
12+
## Demo
13+
https://webscope-react-markdown-editor.firebaseapp.com/
14+
15+
## Install
16+
17+
```bash
18+
yarn add @webscopeio/react-markdown-editor
19+
```
20+
21+
## Usage
22+
23+
```jsx
24+
import React, { Component } from 'react'
25+
26+
import ReactMarkdownEditor from '@webscopeio/react-markdown-editor'
27+
28+
export default class App extends Component {
29+
state = {
30+
value: 'Hello world',
31+
}
32+
33+
render () {
34+
return (
35+
<div>
36+
<ReactMarkdownEditor
37+
placeholder={'Write something ...'}
38+
value={this.state.value}
39+
onChange={({ target: { value } }) => this.setState({ value })}
40+
/>
41+
</div>
42+
)
43+
}
44+
}
45+
46+
```
47+
48+
## License
49+
50+
MIT © [Webscope.io](https://github.com/Webscope.io)

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
theme: jekyll-theme-minimal

0 commit comments

Comments
 (0)