Skip to content

Commit 829cf8c

Browse files
authored
Merge pull request #1043 from njpanderson/fix/eslint-rules
Add camelcase rule to eslint
2 parents 7c990c2 + be88961 commit 829cf8c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"rules": {
3737
"array-bracket-spacing": [ "error", "always" ],
3838
"brace-style": [ "error", "1tbs" ],
39+
"camelcase": [ "error", { "properties": "never" } ],
3940
"comma-dangle": [ "error", "always-multiline" ],
4041
"comma-spacing": "error",
4142
"comma-style": "error",

blocks/library/embed/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ registerBlockType( 'core/embed', {
112112
event.preventDefault();
113113
}
114114
const { url } = this.props.attributes;
115-
const api_url = wpApiSettings.root + 'oembed/1.0/proxy?url=' + encodeURIComponent( url ) + '&_wpnonce=' + wpApiSettings.nonce;
115+
const apiURL = wpApiSettings.root + 'oembed/1.0/proxy?url=' + encodeURIComponent( url ) + '&_wpnonce=' + wpApiSettings.nonce;
116116

117117
this.setState( { error: false, fetching: true } );
118-
window.fetch( api_url, {
118+
window.fetch( apiURL, {
119119
credentials: 'include',
120120
} ).then(
121121
( response ) => {

0 commit comments

Comments
 (0)