Skip to content

Commit

Permalink
DEV: prettier 2.2.1 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Jan 27, 2021
1 parent 7108e7f commit ce497cf
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
Expand Up @@ -14,7 +14,7 @@ function initialize(api) {
return;
}

var buffer = [];
let buffer = [];

let title = "";
if (topic.user_voted) {
Expand Down
14 changes: 7 additions & 7 deletions assets/javascripts/discourse/widgets/vote-box.js.es6
Expand Up @@ -19,9 +19,9 @@ export default createWidget("vote-box", {
},

html(attrs, state) {
var voteCount = this.attach("vote-count", attrs);
var voteButton = this.attach("vote-button", attrs);
var voteOptions = this.attach("vote-options", attrs);
let voteCount = this.attach("vote-count", attrs);
let voteButton = this.attach("vote-button", attrs);
let voteOptions = this.attach("vote-options", attrs);
let contents = [voteCount, voteButton, voteOptions];

if (state.votesAlert > 0) {
Expand Down Expand Up @@ -54,8 +54,8 @@ export default createWidget("vote-box", {
},

addVote() {
var topic = this.attrs;
var state = this.state;
let topic = this.attrs;
let state = this.state;
return ajax("/voting/vote", {
type: "POST",
data: {
Expand All @@ -80,8 +80,8 @@ export default createWidget("vote-box", {
},

removeVote() {
var topic = this.attrs;
var state = this.state;
let topic = this.attrs;
let state = this.state;
return ajax("/voting/unvote", {
type: "POST",
data: {
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/discourse/widgets/vote-button.js.es6
Expand Up @@ -6,7 +6,7 @@ export default createWidget("vote-button", {
tagName: "div",

buildClasses(attrs) {
var buttonClass = "";
let buttonClass = "";
if (attrs.closed) {
buttonClass = "voting-closed";
} else {
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/discourse/widgets/vote-options.js.es6
Expand Up @@ -10,7 +10,7 @@ export default createWidget("vote-options", {
},

html(attrs) {
var contents = [];
let contents = [];

if (attrs.user_voted) {
contents.push(this.attach("remove-vote", attrs));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,6 +5,6 @@
"author": "Discourse",
"license": "MIT",
"devDependencies": {
"eslint-config-discourse": "^1.1.3"
"eslint-config-discourse": "^1.1.8"
}
}
18 changes: 9 additions & 9 deletions yarn.lock
Expand Up @@ -498,10 +498,10 @@ escape-string-regexp@^1.0.5:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=

eslint-config-discourse@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-1.1.3.tgz#38b85e810cad72280073d659565bf25611331ac3"
integrity sha512-n6ZRuFPMVn+jHpszZhNQwFRsIG1mRq5LrFdbN/WNDW7ohk+iyYyLkwB8btJFms5CcfHLsiiey92EAh3oNavrpw==
eslint-config-discourse@^1.1.8:
version "1.1.8"
resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-1.1.8.tgz#c297831876811ea08203aa348d1ba2a963b2ae78"
integrity sha512-ZSQfhliiO5Cfa7WcKoMkN4wW/1rBJpecpMJpfjiFsElfgPj4EV4Pzksi5CvFnRbJDoZh6DYYrQfO+tW062VOUA==
dependencies:
babel-eslint "^10.1.0"
ember-template-lint "^2.11.0"
Expand All @@ -511,7 +511,7 @@ eslint-config-discourse@^1.1.3:
eslint-plugin-ember "^6.10.0"
eslint-plugin-lodash "^7.1.0"
eslint-plugin-node "^8.0.0"
prettier "^2.1.1"
prettier "2.2.1"

eslint-plugin-discourse-ember@latest:
version "0.0.3"
Expand Down Expand Up @@ -1204,10 +1204,10 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=

prettier@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.1.tgz#d9485dd5e499daa6cb547023b87a6cf51bee37d6"
integrity sha512-9bY+5ZWCfqj3ghYBLxApy2zf6m+NJo5GzmLTpr9FsApsfjriNnS2dahWReHMi7qNPhhHl9SYHJs2cHZLgexNIw==
prettier@2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==

progress@^2.0.0:
version "2.0.3"
Expand Down

0 comments on commit ce497cf

Please sign in to comment.