Skip to content

Commit

Permalink
Issue #813. Add .eslintrc and eslint grunt task (basic config for now).
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Nov 4, 2015
1 parent 2e65c9f commit b3eb6c1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"rules": {
"indent": [
2,
4
],
"quotes": [
2,
"double"
],
"linebreak-style": [
2,
"unix"
],
"semi": [
2,
"always"
]
},
"env": {
"browser": true
},
"extends": "eslint:recommended"
}
12 changes: 12 additions & 0 deletions grunt-tasks/eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

module.exports = function(grunt) {
grunt.config('eslint', {
target: [
'<%= jsPath %>/lib/*.js',
'tests/functional/*.js'
]
});
};

0 comments on commit b3eb6c1

Please sign in to comment.