Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
Add eslint with exponent config
Browse files Browse the repository at this point in the history
Same config as the universe repo minus the exp plugin.

Closes #82

fbshipit-source-id: a040864
  • Loading branch information
janicduplessis authored and expbot committed Sep 13, 2016
1 parent 4b1cad2 commit 4073f68
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "exponent/react",
"plugins": [
"flow-vars"
],
"rules": {
"react/no-comment-textnodes": 0,
"flow-vars/define-flow-type": 1,
"flow-vars/use-flow-type": 1
}
}
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Route-centric navigation libary for React Native.",
"main": "./src/ExNavigation.js",
"scripts": {
"lint": "eslint ./src ./example",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "https://github.com/exponentjs/ex-navigation.git",
Expand Down Expand Up @@ -42,6 +43,12 @@
"warning": "^2.1.0"
},
"devDependencies": {
"babel-eslint": "^6.1.0",
"eslint": "^3.0.0",
"eslint-config-exponent": "^2.0.2",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-flow-vars": "^0.4.0",
"eslint-plugin-react": "^5.2.2",
"flow-bin": "^0.29.0",
"react": "~15.2.1",
"react-native": "github:exponentjs/react-native#sdk-8.0.0"
Expand Down

0 comments on commit 4073f68

Please sign in to comment.