Skip to content

Commit

Permalink
Merge pull request #1043 from njpanderson/fix/eslint-rules
Browse files Browse the repository at this point in the history
Add camelcase rule to eslint
  • Loading branch information
aduth authored Jun 7, 2017
2 parents 7c990c2 + be88961 commit 829cf8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"brace-style": [ "error", "1tbs" ],
"camelcase": [ "error", { "properties": "never" } ],
"comma-dangle": [ "error", "always-multiline" ],
"comma-spacing": "error",
"comma-style": "error",
Expand Down
4 changes: 2 additions & 2 deletions blocks/library/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ registerBlockType( 'core/embed', {
event.preventDefault();
}
const { url } = this.props.attributes;
const api_url = wpApiSettings.root + 'oembed/1.0/proxy?url=' + encodeURIComponent( url ) + '&_wpnonce=' + wpApiSettings.nonce;
const apiURL = wpApiSettings.root + 'oembed/1.0/proxy?url=' + encodeURIComponent( url ) + '&_wpnonce=' + wpApiSettings.nonce;

this.setState( { error: false, fetching: true } );
window.fetch( api_url, {
window.fetch( apiURL, {
credentials: 'include',
} ).then(
( response ) => {
Expand Down

0 comments on commit 829cf8c

Please sign in to comment.