Change ESLint quote-props rule to as-needed
Also fixes all files flagged by the rule
This commit is contained in:
@ -174,7 +174,7 @@
|
||||
"one-var": 0,
|
||||
"operator-assignment": 0,
|
||||
"padded-blocks": 0,
|
||||
"quote-props": 0,
|
||||
"quote-props": [2, "as-needed"],
|
||||
"quotes": [
|
||||
2,
|
||||
"single",
|
||||
|
@ -57,7 +57,7 @@ export default React.createClass({
|
||||
const linkClassName = classNames(className, {
|
||||
// 'active': active, we don't actually use the active class
|
||||
// but it is used for a11y below
|
||||
'disabled': disabled
|
||||
disabled: disabled
|
||||
});
|
||||
|
||||
let linkProps = {
|
||||
|
@ -48,7 +48,7 @@ const certTypes = {
|
||||
};
|
||||
|
||||
function isValidURL(data) {
|
||||
return isURL(data, { 'require_protocol': true });
|
||||
return isURL(data, { require_protocol: true });
|
||||
}
|
||||
|
||||
const fields = [
|
||||
|
@ -1,5 +1,5 @@
|
||||
const defaults = {
|
||||
'string': {
|
||||
string: {
|
||||
value: '',
|
||||
valid: false,
|
||||
pristine: true,
|
||||
|
@ -44,7 +44,7 @@ module.exports = function(User) {
|
||||
|
||||
// username should not be in blacklist
|
||||
User.validatesExclusionOf('username', {
|
||||
'in': blacklistedUsernames,
|
||||
in: blacklistedUsernames,
|
||||
message: 'is taken'
|
||||
});
|
||||
|
||||
|
@ -274,7 +274,7 @@ export function postJSON$(url, body) {
|
||||
responseType: 'json',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json'
|
||||
Accept: 'application/json'
|
||||
}
|
||||
})
|
||||
.map(({ response }) => response);
|
||||
@ -303,7 +303,7 @@ export function getJSON$(url) {
|
||||
responseType: 'json',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json'
|
||||
Accept: 'application/json'
|
||||
}
|
||||
}).map(({ response }) => response);
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ function buildChallengeMap(userId, completedChallenges = [], User) {
|
||||
}, {})
|
||||
.flatMap(challengeMap => {
|
||||
const updateData = {
|
||||
'$set': {
|
||||
$set: {
|
||||
challengeMap,
|
||||
isChallengeMapMigrated: true
|
||||
}
|
||||
|
@ -24,9 +24,9 @@ export function setProfileFromGithub(
|
||||
},
|
||||
{
|
||||
id: githubId,
|
||||
'avatar_url': picture,
|
||||
avatar_url: picture,
|
||||
email: githubEmail,
|
||||
'created_at': joinedGithubOn,
|
||||
created_at: joinedGithubOn,
|
||||
blog: website,
|
||||
location,
|
||||
name
|
||||
|
Reference in New Issue
Block a user