mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
fix prettier
This commit is contained in:
parent
c5c1b45d19
commit
8126b603e4
|
@ -1,8 +1,2 @@
|
||||||
app/assets/stylesheets/vendor/
|
app/assets/stylesheets/vendor/
|
||||||
plugins/**/assets/stylesheets/vendor/
|
plugins/**/assets/stylesheets/vendor/
|
||||||
app/assets/javascripts/admin/routes/admin-backups-logs.js.es6
|
|
||||||
app/assets/javascripts/discourse/components/global-notice.js.es6
|
|
||||||
app/assets/javascripts/discourse/lib/ajax.js.es6
|
|
||||||
app/assets/javascripts/discourse/lib/link-mentions.js.es6
|
|
||||||
app/assets/javascripts/discourse/models/topic-tracking-state.js.es6
|
|
||||||
app/assets/javascripts/select-kit/components/tag-chooser.js.es6
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ export default createWidget("post-edits-indicator", {
|
||||||
|
|
||||||
if (attrs.wiki) {
|
if (attrs.wiki) {
|
||||||
icon = "pencil-square-o";
|
icon = "pencil-square-o";
|
||||||
className = `${className || ''} wiki`.trim();
|
className = `${className || ""} wiki`.trim();
|
||||||
|
|
||||||
if (attrs.version > 1) {
|
if (attrs.version > 1) {
|
||||||
title = `${I18n.t("post.last_edited_on")} ${date}`;
|
title = `${I18n.t("post.last_edited_on")} ${date}`;
|
||||||
|
|
|
@ -45,7 +45,7 @@ task 'docker:test' do
|
||||||
@good &&= run_or_fail("eslint --ext .es6 plugins/#{ENV['SINGLE_PLUGIN']}")
|
@good &&= run_or_fail("eslint --ext .es6 plugins/#{ENV['SINGLE_PLUGIN']}")
|
||||||
|
|
||||||
puts "Listing prettier offenses in #{ENV['SINGLE_PLUGIN']}:"
|
puts "Listing prettier offenses in #{ENV['SINGLE_PLUGIN']}:"
|
||||||
@good &&= run_or_fail("prettier --loglevel=debug --list-different 'plugins/#{ENV['SINGLE_PLUGIN']}/**/*.scss' 'plugins/#{ENV['SINGLE_PLUGIN']}/**/*.es6'")
|
@good &&= run_or_fail("prettier --list-different 'plugins/#{ENV['SINGLE_PLUGIN']}/**/*.scss' 'plugins/#{ENV['SINGLE_PLUGIN']}/**/*.es6'")
|
||||||
else
|
else
|
||||||
@good &&= run_or_fail("bundle exec rubocop --parallel") unless ENV["SKIP_CORE"]
|
@good &&= run_or_fail("bundle exec rubocop --parallel") unless ENV["SKIP_CORE"]
|
||||||
@good &&= run_or_fail("eslint app/assets/javascripts test/javascripts") unless ENV["SKIP_CORE"]
|
@good &&= run_or_fail("eslint app/assets/javascripts test/javascripts") unless ENV["SKIP_CORE"]
|
||||||
|
@ -53,12 +53,12 @@ task 'docker:test' do
|
||||||
|
|
||||||
unless ENV["SKIP_CORE"]
|
unless ENV["SKIP_CORE"]
|
||||||
puts "Listing prettier offenses in core:"
|
puts "Listing prettier offenses in core:"
|
||||||
@good &&= run_or_fail('prettier --loglevel=debug --list-different "app/assets/stylesheets/**/*.scss" "app/assets/javascripts/**/*.es6" "test/javascripts/**/*.es6"')
|
@good &&= run_or_fail('prettier --list-different "app/assets/stylesheets/**/*.scss" "app/assets/javascripts/**/*.es6" "test/javascripts/**/*.es6"')
|
||||||
end
|
end
|
||||||
|
|
||||||
unless ENV["SKIP_PLUGINS"]
|
unless ENV["SKIP_PLUGINS"]
|
||||||
puts "Listing prettier offenses in plugins:"
|
puts "Listing prettier offenses in plugins:"
|
||||||
@good &&= run_or_fail('prettier --loglevel=debug --list-different "plugins/**/*.scss" "plugins/**/*.es6"')
|
@good &&= run_or_fail('prettier --list-different "plugins/**/*.scss" "plugins/**/*.es6"')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user