Skip to content

Commit

Permalink
run prettier with trailingComma: es5
Browse files Browse the repository at this point in the history
  • Loading branch information
rnegron committed Dec 2, 2024
1 parent 840d0ae commit df8a16f
Show file tree
Hide file tree
Showing 53 changed files with 291 additions and 287 deletions.
4 changes: 2 additions & 2 deletions example-apps/babel/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ const App = {
afterResponse: [],

resources: {
[Recipe.key]: Recipe
[Recipe.key]: Recipe,
},

triggers: {},

searches: {},

creates: {}
creates: {},
};

export default App;
4 changes: 2 additions & 2 deletions example-apps/create/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const App = {

// If you want your creates to show up, you better include it here!
creates: {
[recipe.key]: recipe
}
[recipe.key]: recipe,
},
};

// Finally, export the app.
Expand Down
8 changes: 4 additions & 4 deletions example-apps/create/test/creates.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ const appTester = zapier.createAppTester(App);

describe('creates', () => {
describe('create recipe create', () => {
it('should create a new recipe', done => {
it('should create a new recipe', (done) => {
const bundle = {
inputData: {
name: 'Smith Family Recipe',
directions: '1. Order out :)',
authorId: 1
}
authorId: 1,
},
};

appTester(App.creates.recipe.operation.perform, bundle)
.then(result => {
.then((result) => {
result.should.have.property('name');
done();
})
Expand Down
22 changes: 11 additions & 11 deletions example-apps/github/samples/sample_issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ module.exports = {
events_url: 'https://api.github.com/users/octocat/events{/privacy}',
received_events_url: 'https://api.github.com/users/octocat/received_events',
type: 'User',
site_admin: false
site_admin: false,
},
labels: [
{
id: 208045946,
url: 'https://api.github.com/repos/octocat/Hello-World/labels/bug',
name: 'bug',
color: 'f29513',
default: true
}
default: true,
},
],
assignee: {
login: 'octocat',
Expand All @@ -60,7 +60,7 @@ module.exports = {
events_url: 'https://api.github.com/users/octocat/events{/privacy}',
received_events_url: 'https://api.github.com/users/octocat/received_events',
type: 'User',
site_admin: false
site_admin: false,
},
assignees: [
{
Expand All @@ -83,8 +83,8 @@ module.exports = {
received_events_url:
'https://api.github.com/users/octocat/received_events',
type: 'User',
site_admin: false
}
site_admin: false,
},
],
milestone: {
url: 'https://api.github.com/repos/octocat/Hello-World/milestones/1',
Expand Down Expand Up @@ -116,22 +116,22 @@ module.exports = {
received_events_url:
'https://api.github.com/users/octocat/received_events',
type: 'User',
site_admin: false
site_admin: false,
},
open_issues: 4,
closed_issues: 8,
created_at: '2011-04-10T20:09:31Z',
updated_at: '2014-03-03T18:58:10Z',
closed_at: '2013-02-12T13:22:01Z',
due_on: '2012-10-09T23:39:01Z'
due_on: '2012-10-09T23:39:01Z',
},
locked: false,
comments: 0,
pull_request: {
url: 'https://api.github.com/repos/octocat/Hello-World/pulls/1347',
html_url: 'https://github.com/octocat/Hello-World/pull/1347',
diff_url: 'https://github.com/octocat/Hello-World/pull/1347.diff',
patch_url: 'https://github.com/octocat/Hello-World/pull/1347.patch'
patch_url: 'https://github.com/octocat/Hello-World/pull/1347.patch',
},
closed_at: null,
created_at: '2011-04-22T13:33:48Z',
Expand All @@ -154,6 +154,6 @@ module.exports = {
events_url: 'https://api.github.com/users/octocat/events{/privacy}',
received_events_url: 'https://api.github.com/users/octocat/received_events',
type: 'User',
site_admin: false
}
site_admin: false,
},
};
8 changes: 4 additions & 4 deletions example-apps/github/samples/sample_repo_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
events_url: 'https://api.github.com/users/octocat/events{/privacy}',
received_events_url: 'https://api.github.com/users/octocat/received_events',
type: 'User',
site_admin: false
site_admin: false,
},
name: 'Hello-World',
full_name: 'octocat/Hello-World',
Expand Down Expand Up @@ -109,7 +109,7 @@ module.exports = {
permissions: {
admin: false,
push: false,
pull: true
pull: true,
},
allow_rebase_merge: true,
allow_squash_merge: true,
Expand All @@ -121,6 +121,6 @@ module.exports = {
name: 'MIT License',
spdx_id: 'MIT',
url: 'https://api.github.com/licenses/mit',
html_url: 'https://choosealicense.com/licenses/mit/'
}
html_url: 'https://choosealicense.com/licenses/mit/',
},
};
8 changes: 4 additions & 4 deletions example-apps/middleware/test/triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const appTester = zapier.createAppTester(App);

describe('triggers', () => {
describe('new recipe trigger', () => {
it('should load recipes', done => {
it('should load recipes', (done) => {
appTester(App.triggers.recipe.operation.perform)
.then(results => {
.then((results) => {
results.should.be.an.Array();
results.length.should.be.above(1);

Expand All @@ -31,9 +31,9 @@ describe('triggers', () => {
});

describe('new movie trigger', () => {
it('should load movies', done => {
it('should load movies', (done) => {
appTester(App.triggers.movie.operation.perform)
.then(results => {
.then((results) => {
results.should.be.an.Array();
results.length.should.be.above(1);

Expand Down
22 changes: 11 additions & 11 deletions example-apps/oauth1-tumblr/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ const config = {
oauth_consumer_key: '{{process.env.CLIENT_ID}}',
oauth_consumer_secret: '{{process.env.CLIENT_SECRET}}',
oauth_signature_method: 'HMAC-SHA1',
oauth_callback: '{{bundle.inputData.redirect_uri}}'
}
oauth_callback: '{{bundle.inputData.redirect_uri}}',
},
},
authorizeUrl: {
url: AUTHORIZE_URL,
params: {
oauth_token: '{{bundle.inputData.oauth_token}}'
}
oauth_token: '{{bundle.inputData.oauth_token}}',
},
},
getAccessToken: {
url: ACCESS_TOKEN_URL,
Expand All @@ -39,14 +39,14 @@ const config = {
oauth_consumer_secret: '{{process.env.CLIENT_SECRET}}',
oauth_token: '{{bundle.inputData.oauth_token}}',
oauth_token_secret: '{{bundle.inputData.oauth_token_secret}}',
oauth_verifier: '{{bundle.inputData.oauth_verifier}}'
}
}
oauth_verifier: '{{bundle.inputData.oauth_verifier}}',
},
},
},
test: {
url: 'https://api.tumblr.com/v2/user/info'
url: 'https://api.tumblr.com/v2/user/info',
},
connectionLabel: getConnectionLabel
connectionLabel: getConnectionLabel,
};

// A middleware that is run before z.request() actually makes the request. Here we're
Expand All @@ -64,13 +64,13 @@ const includeAccessToken = (req, z, bundle) => {
oauth_consumer_key: process.env.CLIENT_ID,
oauth_consumer_secret: process.env.CLIENT_SECRET,
oauth_token: bundle.authData.oauth_token,
oauth_token_secret: bundle.authData.oauth_token_secret
oauth_token_secret: bundle.authData.oauth_token_secret,
});
}
return req;
};

module.exports = {
config,
includeAccessToken
includeAccessToken,
};
4 changes: 2 additions & 2 deletions example-apps/oauth1-tumblr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const App = {

// If you want your trigger to show up, you better include it here!
triggers: {
[LikeTrigger.key]: LikeTrigger
[LikeTrigger.key]: LikeTrigger,
},

// If you want your searches to show up, you better include it here!
searches: {},

// If you want your creates to show up, you better include it here!
creates: {}
creates: {},
};

// Finally, export the app.
Expand Down
2 changes: 1 addition & 1 deletion example-apps/oauth1-tumblr/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require('should');
// const appTester = zapier.createAppTester(App);

describe('My App', () => {
it('should test something', done => {
it('should test something', (done) => {
const x = 1;
x.should.eql(1);

Expand Down
4 changes: 2 additions & 2 deletions example-apps/oauth1-twitter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const App = {

// If you want your trigger to show up, you better include it here!
triggers: {
[LikeTrigger.key]: LikeTrigger
[LikeTrigger.key]: LikeTrigger,
},

// If you want your searches to show up, you better include it here!
searches: {},

// If you want your creates to show up, you better include it here!
creates: {}
creates: {},
};

// Finally, export the app.
Expand Down
29 changes: 14 additions & 15 deletions example-apps/oauth1-twitter/triggers/like.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ module.exports = {

display: {
label: 'New Like',
description: 'Triggers when you like a tweet.'
description: 'Triggers when you like a tweet.',
},

operation: {
perform: {
url: 'https://api.twitter.com/1.1/favorites/list.json'
url: 'https://api.twitter.com/1.1/favorites/list.json',
},
sample: {
coordinates: null,
Expand All @@ -21,10 +21,9 @@ module.exports = {
entities: {
urls: [],
hashtags: [],
user_mentions: []
user_mentions: [],
},
text:
"Note to self: don't die during off-peak hours on a holiday weekend.",
text: "Note to self: don't die during off-peak hours on a holiday weekend.",
contributors: null,
id: 243014525132091400,
retweet_count: 0,
Expand All @@ -49,8 +48,8 @@ module.exports = {
profile_link_color: '2FC2EF',
entities: {
description: {
urls: []
}
urls: [],
},
},
favourites_count: 594,
url: null,
Expand Down Expand Up @@ -82,7 +81,7 @@ module.exports = {
statuses_count: 2629,
following: true,
screen_name: 'theSeanCook',
show_all_inline_media: true
show_all_inline_media: true,
},
place: {
name: 'San Francisco',
Expand All @@ -97,15 +96,15 @@ module.exports = {
[-122.51368188, 37.70813196],
[-122.35845384, 37.70813196],
[-122.35845384, 37.83245301],
[-122.51368188, 37.83245301]
]
[-122.51368188, 37.83245301],
],
],
type: 'Polygon'
type: 'Polygon',
},
full_name: 'San Francisco, CA',
place_type: 'city'
place_type: 'city',
},
in_reply_to_status_id: null
}
}
in_reply_to_status_id: null,
},
},
};
21 changes: 14 additions & 7 deletions example-apps/onedrive/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"comma-spacing": 2,
"consistent-return": 2,
"curly": [2, "all"],
"dot-notation": [2, {"allowKeywords": true}],
"dot-notation": [2, { "allowKeywords": true }],
"eol-last": 2,
"eqeqeq": [2, "smart"],
"indent": [2, 2],
"jsx-quotes": [2, "prefer-double"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": 2,
"new-cap": 0,
"new-parens": 2,
"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-console": [2, {"allow": ["info", "warn", "error"]}],
"no-console": [2, { "allow": ["info", "warn", "error"] }],
"no-delete-var": 2,
"no-eval": 2,
"no-extend-native": 2,
Expand Down Expand Up @@ -59,14 +59,21 @@
"no-undef-init": 2,
"no-underscore-dangle": 0,
"no-unused-expressions": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used", "varsIgnorePattern": "should"}],
"no-unused-vars": [
2,
{ "vars": "all", "args": "after-used", "varsIgnorePattern": "should" }
],
"no-use-before-define": 2,
"no-with": 2,
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"quotes": [
2,
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"semi": 2,
"semi-spacing": [2, {"before": false, "after": true}],
"semi-spacing": [2, { "before": false, "after": true }],
"space-infix-ops": 2,
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"strict": [0, "never"],
"yoda": [2, "never"]
},
Expand Down
Loading

0 comments on commit df8a16f

Please sign in to comment.