Adds liniting into the workflow (#3082)

* initial linting of src

* fix indent to 2 spaces

* Removes unnecessary rules

* ignore spec folder for now

* Spec linting

* Fix spec indent

* nits

* nits

* no no-empty rule
This commit is contained in:
Florent Vilmart
2016-11-24 15:47:41 -05:00
committed by GitHub
parent 6e2fba4ae4
commit 8c2c76dd26
149 changed files with 3478 additions and 3507 deletions

View File

@@ -113,7 +113,7 @@ describe('Parse.File testing', () => {
'X-Parse-Master-Key': 'test'
},
url: 'http://localhost:8378/1/files/' + b.name
}, (error, response, body) => {
}, (error, response) => {
expect(error).toBe(null);
expect(response.statusCode).toEqual(200);
request.get({
@@ -122,7 +122,7 @@ describe('Parse.File testing', () => {
'X-Parse-REST-API-Key': 'rest'
},
url: b.url
}, (error, response, body) => {
}, (error, response) => {
expect(error).toBe(null);
try {
expect(response.statusCode).toEqual(404);
@@ -370,7 +370,7 @@ describe('Parse.File testing', () => {
object.save({
file: file
}, expectSuccess({
success: function(obj) {
success: function() {
ok(object.toJSON().file.url);
done();
}
@@ -391,7 +391,7 @@ describe('Parse.File testing', () => {
expect(error).toBe(null);
var b = JSON.parse(body);
expect(b.name).toMatch(/\.html$/);
request.get(b.url, (error, response, body) => {
request.get(b.url, (error, response) => {
if (!response) {
fail('response should be set');
return done();
@@ -572,10 +572,10 @@ describe('Parse.File testing', () => {
});
});
it('return with publicServerURL when provided', done => {
it('return with publicServerURL when provided', done => {
reconfigureServer({
publicServerURL: 'https://mydomain/parse'
}).then(() => {
}).then(() => {
var file = {
__type: 'File',
name: '123.txt'