Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Add prepare script and precommit linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed May 11, 2018
1 parent 032da3d commit f1637b4
Show file tree
Hide file tree
Showing 7 changed files with 3,017 additions and 77 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Expand Up @@ -3,8 +3,11 @@
"rules": {
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
"semi": [ 2, "always" ],
"quotes": [ 2, "single" ],
"linebreak-style": [ 2, "unix" ],
"keyword-spacing": [ 2, { "before": true, "after": true } ],
"space-before-blocks": [ 2, "always" ],
"space-before-function-paren": [ 2, "always" ],
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
"no-cond-assign": 0,
"no-unused-vars": 2,
Expand Down
10 changes: 10 additions & 0 deletions .lintstagedrc
@@ -0,0 +1,10 @@
{
"src/**/*.js": [
"eslint --fix",
"git add"
],
"test/test.js": [
"eslint --fix",
"git add"
]
}
13 changes: 11 additions & 2 deletions .travis.yml
@@ -1,4 +1,13 @@
sudo: false
language: node_js
node_js:
- "4.0"
- "stable"
- "4"
- "6"
- "8"
- "10"
env:
global:
- BUILD_TIMEOUT=10000
install: npm install --ignore-scripts
before_install:
- if [[ $TRAVIS_NODE_VERSION -lt 7 ]]; then npm install --global npm@4; fi

0 comments on commit f1637b4

Please sign in to comment.