Skip to content

Commit

Permalink
Add .coafile & .travis.yml to lint **.yang & **.js (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
userzimmermann authored and demx8as6 committed Feb 18, 2017
1 parent f7446d1 commit 075cbc0
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[javascript]
bears = ESLintBear, JSHintBear #, HappinessLintBear
eslint_config = .eslintrc
jshint_config = .jshintrc
files = models/**.js

[json]
bears = JSONFormatBear
files = .eslintrc

[yaml]
bears = YAMLLintBear
files = .travis.yml

# [yang]
# bears = YANGBear
# files = models/**.yang
8 changes: 8 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "eslint:recommended",
"rules": {
"no-console": 0,
"no-redeclare": 0,
"no-undef": 0
}
}
7 changes: 7 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"shadow": true,
"sub": true,

"undef": true,
"predef": ["console", "module", "require"]
}
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sudo: false

language: python
python:
- '3.6'

env:
- NODE_JS_VERSION="7.5"

install:
- nvm install $NODE_JS_VERSION
- npm install -g eslint jshint

- pip install git+https://github.com/coala/coala-bears.git@zimmermann/yang

script:
- coala --ci --disable-caching

0 comments on commit 075cbc0

Please sign in to comment.