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
// config.js | |
const modalRoot = document.createElement('div'); | |
modalRoot.setAttribute('id', 'modal-root'); | |
document.body.append(modalRoot); |
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
$ npx prettier --print-width 80 --no-semi --single-quote --trailing-comma es5 --write 'src/**/*.*{js,jsx}' |
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
{ | |
"extends": [ | |
"tslint:recommended", | |
"tslint-react", | |
"tslint-eslint-rules", | |
"tslint-config-airbnb", | |
"tslint-config-prettier" | |
], | |
"defaultSeverity": "error", | |
"jsRules": {}, |
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
// Type definitions for React 16.7 | |
// Project: http://facebook.github.io/react/ | |
// Definitions by: Asana <https://asana.com> | |
// AssureSign <http://www.assuresign.com> | |
// Microsoft <https://microsoft.com> | |
// John Reilly <https://github.com/johnnyreilly> | |
// Benoit Benezech <https://github.com/bbenezech> | |
// Patricio Zavolinsky <https://github.com/pzavolinsky> | |
// Digiguru <https://github.com/digiguru> | |
// Eric Anderson <https://github.com/ericanderson> |
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
$ sudo sh -c 'echo "deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client $(lsb_release -c -s) main" > /etc/apt/sources.list.d/atlassian-hipchat4.list' | |
$ wget -O - https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public | sudo apt-key add - | |
$ sudo apt-get update | |
$ sudo apt-get install hipchat4 | |
If you're following the instructions on the downloads page, open your /etc/apt/sources.list.d/atlassian-hipchat4.list file and change bionic to xenial | |
$ sudo gedit /etc/apt/sources.list.d/atlassian-hipchat4.list | |
sudo apt-get update && sudo apt-get install hipchat4 |
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
globe | |
0905 | |
0906 | |
0915 | |
0916 | |
0917 | |
0926 | |
0927 | |
0935 | |
0936 |
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
handleChange(e) { | |
const { checked, name, type, value } = e.target; | |
this.setState({ | |
[name]: type === 'checkbox' ? checked : value, | |
}); | |
} |
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
$args = array( | |
'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>' | |
'fields' => apply_filters( 'comment_form_default_fields', array( | |
'author' => | |
'<p class="comment-form-author">' . | |
'<label for="author">' . __( 'Name', 'domainreference' ) . '</label> ' . | |
( $req ? '<span class="required">*</span>' : '' ) . | |
'<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . | |
'" size="30"' . $aria_req . ' /></p>', |
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
install these plugins as dev deps | |
"babel-plugin-module-resolver": "^2.5.0", | |
"eslint-import-resolver-babel-module": "^3.0.0", | |
"eslint-plugin-import": "^2.2.0", |