Merge pull request #47 from molant/master

Work on #40
This commit is contained in:
shipunyc 2015-06-01 17:23:50 -07:00
Родитель 6c942c749f bd7a8dac47
Коммит 62dabf4e13
4 изменённых файлов: 75 добавлений и 9 удалений

12
core_sdk/.editorconfig Normal file
Просмотреть файл

@ -0,0 +1,12 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
[*.md]
trim_trailing_whitespace = false

23
core_sdk/.eslintrc Normal file
Просмотреть файл

@ -0,0 +1,23 @@
{
"rules": {
"indent": [
2,
4
],
"quotes": [
2,
"double"
],
"linebreak-style": [
2,
"windows"
],
"semi": [
2,
"always"
]
},
"env": {
"node": true
}
}

21
core_sdk/Gruntfile.js Normal file
Просмотреть файл

@ -0,0 +1,21 @@
'use strict';
module.exports = function (grunt) {
require('time-grunt')(grunt);
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
grunt.initConfig({
eslint: {
src: ['lib/*.js', 'test/*.js'],
options: {
configFile: '.eslintrc'
}
}
}
);
grunt.registerTask('lint', ['eslint']);
grunt.registerTask('default', 'lint');
};

Просмотреть файл

@ -16,12 +16,22 @@
"node": ">=0.8"
},
"devDependencies": {
"mocha": "*",
"eslint": "*",
"grunt": "^0.4.5",
"grunt-eslint": "^13.0.0",
"jsdoc": "*",
"eslint": "*"
"load-grunt-tasks": "^3.1.0",
"mocha": "*",
"time-grunt": "^1.2.0"
},
"repository" : { "type" : "git",
"url" : "https://github.com/Azure/azure-documentdb-node" },
"licenses" : [ { "type" : "Apache License, Version 2.0",
"url" : "http://www.apache.org/licenses/LICENSE-2.0" } ]
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-documentdb-node"
},
"licenses": [
{
"type": "Apache License, Version 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
]
}