Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5e4fc3

Browse filesBrowse files
committed
Add eslintrc file
1 parent 850b3f7 commit b5e4fc3
Copy full SHA for b5e4fc3

File tree

Expand file treeCollapse file tree

2 files changed

+22
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+22
-0
lines changed
Open diff view settings
Collapse file

‎.eslintrc‎

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": "./node_modules/fbjs-scripts/eslint/.eslintrc",
3+
"rules": {
4+
// These are functional errors that could either be fixed or be locally disabled in specific
5+
// files
6+
"no-bitwise": 0,
7+
"constructor-super": 0,
8+
"no-this-before-super": 0,
9+
"no-self-compare": 0,
10+
"operator-assignment": 0,
11+
"consistent-return": 0,
12+
13+
// These are stylistic errors that could be easily fixed
14+
"semi": 0,
15+
"comma-dangle": 0,
16+
"space-before-function-paren": 0,
17+
"curly": 0,
18+
}
19+
}
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@
3535
},
3636
"devDependencies": {
3737
"acorn": "0.11.x",
38+
"babel-eslint": "^4.1.8",
3839
"benchmark": "^1.0.0",
3940
"bluebird": "3.1.1",
4041
"browser-sync": "2.11.0",
4142
"browserify": "^5.11.2",
4243
"colors": "1.1.2",
4344
"del": "2.2.0",
4445
"es6-transpiler": "0.7.18",
46+
"eslint": "^1.10.3",
4547
"estraverse": "1.9.3",
48+
"fbjs-scripts": "^0.5.0",
4649
"grunt": "0.4.5",
4750
"grunt-cli": "0.1.13",
4851
"grunt-contrib-clean": "0.7.0",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.