Skip to content

Instantly share code, notes, and snippets.

@hahahana
hahahana / README.md
Last active April 3, 2017 19:13
Use JSCS with .jsx files and React

How to use JSCS with .jsx files (and React)

Install JSCS and Esprima-FB:

  npm install jscs esprima-fb --save-dev 

In your .jscsrc use esprima-fb as the custom esprima option and include .jsx as a file extension. You will also need to choose a preset so there are rules to check against. If you'd rather, you can also use the --auto-configure option.

brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
@hahahana
hahahana / gist:5811248
Created June 19, 2013 02:28
Markdown Markdown, Come On Over
Dis Cool
cell 1 #{3+4}
cell 3 cell 4
<!DOCTYPE html>
<meta charset="utf-8">
<style>
rect {
fill: none;
pointer-events: all;
}
.feature {