-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Switch to airbnb linting + prettier formatting 🎨 (#81)
- Loading branch information
Showing
36 changed files
with
760 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "webpack-dev-server", | ||
"program": "${workspaceRoot}/node_modules/webpack-dev-server/bin/webpack-dev-server.js", | ||
"cwd": "${workspaceFolder}/docs" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
"spellright.documentTypes": [ | ||
"markdown", | ||
"latex", | ||
"plaintext", | ||
"javascript" | ||
"plaintext" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>React Dropdown Tree Select Demo</title> | ||
<link rel="stylesheet" href="./index.css" /> | ||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script src="bundle.js"></script> | ||
</body> | ||
|
||
<head> | ||
<title>React Dropdown Tree Select Demo</title> | ||
<link rel="stylesheet" href="./index.css" /> | ||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" | ||
crossorigin="anonymous"> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script src="bundle.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
import Simple from './src/stories/Simple' | ||
|
||
ReactDOM.render(<Simple />, document.getElementById('app')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
import marked from 'marked' | ||
import React from 'react' | ||
|
||
import HOCReadme from '../../HOC.md' | ||
import 'github-markdown-css/github-markdown.css' | ||
import './utils/prism.js' | ||
|
||
import './utils/prism' | ||
|
||
import HOCReadme from '../../HOC.md' | ||
|
||
export default class HOCStory extends React.Component { | ||
render () { | ||
componentDidMount() { | ||
global.Prism && global.Prism.highlightAll() | ||
} | ||
|
||
render() { | ||
return ( | ||
<div style={{ padding: '10px' }}> | ||
<span | ||
className="markdown-body" | ||
// eslint-disable-next-line react/no-danger | ||
dangerouslySetInnerHTML={{ __html: marked(HOCReadme) }} | ||
/> | ||
</div> | ||
) | ||
} | ||
componentDidMount () { | ||
global.Prism && global.Prism.highlightAll() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
import marked from 'marked' | ||
import React from 'react' | ||
|
||
import Readme from '../../../README.md' | ||
import 'github-markdown-css/github-markdown.css' | ||
import './utils/prism.js' | ||
|
||
import './utils/prism' | ||
|
||
import Readme from '../../../README.md' | ||
|
||
export default class Story extends React.Component { | ||
render () { | ||
componentDidMount() { | ||
global.Prism && global.Prism.highlightAll() | ||
} | ||
|
||
render() { | ||
return ( | ||
<div style={{ padding: '10px' }}> | ||
<span | ||
className="markdown-body" | ||
// eslint-disable-next-line react/no-danger | ||
dangerouslySetInnerHTML={{ __html: marked(Readme) }} | ||
/> | ||
</div> | ||
) | ||
} | ||
componentDidMount () { | ||
global.Prism && global.Prism.highlightAll() | ||
} | ||
} |
Oops, something went wrong.