Skip to content

Commit

Permalink
resolves #754 add linter configuration to project
Browse files Browse the repository at this point in the history
- add linter configuration based on StandardJS
- customize linter to fit with style of project
- update source to reconcile violations
- inherit using util.inherits; must be add top of file for node 4
  • Loading branch information
mojavelinux authored and roman-vanesyan committed Jan 23, 2018
1 parent e5d8f04 commit 4c9b4b8
Show file tree
Hide file tree
Showing 5 changed files with 1,850 additions and 189 deletions.
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "standard",
"rules": {
"eqeqeq": "off",
"one-var": "off",
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"space-before-function-paren": ["error", "never"],
}
}
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
language: node_js
sudo: false
node_js:
- "4"
- "6"
- "8"
- "9"
- "node"
- "4"
- "6"
- "8"
- "9"
before_install: if [[ $(node -v) == v4* && $(npm -v) != 3* ]]; then npm i -g npm@3; fi
script:
- npm run lint
- npm test
Loading

0 comments on commit 4c9b4b8

Please sign in to comment.