Skip to content

Commit

Permalink
Add eslint plugin to check the style of imports (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago committed Apr 26, 2018
1 parent 20e9610 commit 7c2456b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .eslintrc.json
Expand Up @@ -5,9 +5,14 @@
"es6": true
},
"parser": "babel-eslint",
"extends": "airbnb",
"extends": [
"airbnb",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
"react/jsx-filename-extension": ".js",
"react/forbid-prop-types": false
"react/forbid-prop-types": false,
"import/order": ["error", {"groups": ["builtin", "external", "parent", "sibling", "index"]}]
}
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -4,7 +4,8 @@
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
"test": "jest",
"lint": "eslint ./"
},
"dependencies": {
"axios": "^0.18.0",
Expand Down

0 comments on commit 7c2456b

Please sign in to comment.