Skip to content

Commit

Permalink
resolves tj#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
- use npm 3 on node 4 in CI
  • Loading branch information
mojavelinux committed Jan 23, 2018
1 parent e5d8f04 commit 1342def
Show file tree
Hide file tree
Showing 5 changed files with 1,660 additions and 202 deletions.
9 changes: 9 additions & 0 deletions .eslintrc
@@ -0,0 +1,9 @@
{
"extends": "standard",
"rules": {
"eqeqeq": "off",
"one-var": "off",
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"space-before-function-paren": ["error", "never"],
}
}
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -6,3 +6,7 @@ node_js:
- "8"
- "9"
- "node"
before_install: if [[ $(node -v) == v4* && $(npm -v) != 3* ]]; then npm i -g npm@3; fi
script:
- npm run lint
- npm test

0 comments on commit 1342def

Please sign in to comment.