Skip to content

Commit

Permalink
Added linting and fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
clementallen committed Mar 3, 2018
1 parent eb014be commit 92d098c
Show file tree
Hide file tree
Showing 5 changed files with 211 additions and 160 deletions.
32 changes: 32 additions & 0 deletions .eslintrc
@@ -0,0 +1,32 @@
{
"extends": [
"airbnb"
],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"expect": true,
"sinon": true
},
"rules": {
"indent": [
2,
4
],
"comma-dangle": [
2,
"never"
],
"no-console": [
2,
{
"allow": [ "error" ]
}
],
"no-unused-expressions": [0],
"strict": [0]
}
}
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -11,4 +11,5 @@ install:
- npm install

script:
- npm run lint
- npm run cover
8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -8,6 +8,7 @@
"http-server": "grunt http-server:dev &",
"test": "nyc mocha",
"cover": "npm run test && nyc report --reporter=lcov",
"lint": "eslint src/sumoLogger.js test/**/*.js --fix",
"test:browser": "npm run http-server && open https://127.0.0.1:8282/jasminetest/TrackerSpecRunner.html"
},
"dependencies": {
Expand All @@ -16,14 +17,19 @@
},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^4.18.2",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"grunt": "^1.0.2",
"grunt-contrib-jasmine": "^1.1.0",
"grunt-contrib-uglify": "^3.3.0",
"grunt-http-server": "^2.1.0",
"mocha": "^5.0.1",
"np": "^2.13.1",
"nyc": "^11.4.1",
"proxyquire": "^1.8.0",
"proxyquire": "^2.0.0",
"sinon": "^4.4.2",
"sinon-chai": "^2.14.0"
},
Expand Down

0 comments on commit 92d098c

Please sign in to comment.