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

Commit

Permalink
Add eslint, travis, and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
freshlogic committed Aug 26, 2017
1 parent cb46188 commit edc6f3b
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
parserOptions: {
ecmaVersion: 6
},
env: {
es6: true,
mocha: true,
node: true
},
'extends': 'eslint:recommended',
rules: {
'brace-style': [2, '1tbs', { allowSingleLine: true }],
'comma-dangle': [2, 'never'],
'dot-notation': 2,
'no-array-constructor': 2,
'no-console': 0,
'no-fallthrough': 0,
'no-inline-comments': 1,
'no-trailing-spaces': 2,
'object-curly-spacing': [2, 'always'],
quotes: [2, 'single'],
semi: [2, 'always']
}
};
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
after_success:
- npm run coveralls

before_script:
- npm i -g eslint
- eslint .

language: node_js

node_js:
- 4
- 6
- 7
- 8
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@
"lodash": "3.10.x"
},
"devDependencies": {
"mocha": "2.0.1",
"coveralls": "*",
"istanbul": "*",
"mocha": "*",
"mock-udp": "0.1.1"
},
"scripts": {
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"test": "mocha --ui qunit --reporter list --bail --check-leaks test/index.js"
},
"keywords": ["influx", "influxdb", "udp" ],
"keywords": [
"influx",
"influxdb",
"udp"
],
"license": "Apache-2.0",
"main": "./lib",
"name": "influx-udp",
Expand Down

0 comments on commit edc6f3b

Please sign in to comment.