Skip to content

Commit

Permalink
Install & configure eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
40thieves committed Dec 18, 2016
1 parent 7ee8a03 commit fd00947
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .eslintrc
@@ -0,0 +1,22 @@
{
"extends": "airbnb/base",
"rules": {
"indent": ["error", "tab"],
"no-tabs": 0,
"semi": [2, "never"],
"no-var": 0,
"vars-on-top": 0,
"one-var": 0,
"eqeqeq": 0,
"brace-style": [2, "stroustrup", { "allowSingleLine": true }],
"no-else-return": 0,
"no-use-before-define": [2, "nofunc"],
"comma-dangle": 0,
"object-curly-spacing": 0,
"max-nested-callbacks": [2, 5],
"arrow-parens": ["error", "always"]
},
"env": {
"node": true
}
}
6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -12,7 +12,8 @@
"scripts": {
"build": "babel src --out-dir dist",
"prepublish": "npm test && npm run build",
"test": "jest"
"test": "jest",
"lint": "eslint src; exit 0"
},
"author": "Alasdair Smith <ali@alasdairsmith.co.uk>",
"license": "MIT",
Expand All @@ -35,6 +36,9 @@
"babel-polyfill": "^6.20.0",
"babel-preset-es2015": "^6.18.0",
"dotenv": "^2.0.0",
"eslint": "^3.12.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-import": "^2.2.0",
"jest": "^17.0.3",
"webpack": "^1.14.0"
},
Expand Down

0 comments on commit fd00947

Please sign in to comment.