DEV: Update linting
This commit is contained in:
parent
17d0f09ed1
commit
63109b00d4
107
Gemfile.lock
107
Gemfile.lock
|
@ -1,80 +1,93 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
activesupport (7.1.3.3)
|
activesupport (8.0.2)
|
||||||
base64
|
base64
|
||||||
|
benchmark (>= 0.3)
|
||||||
bigdecimal
|
bigdecimal
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||||
connection_pool (>= 2.2.5)
|
connection_pool (>= 2.2.5)
|
||||||
drb
|
drb
|
||||||
i18n (>= 1.6, < 2)
|
i18n (>= 1.6, < 2)
|
||||||
|
logger (>= 1.4.2)
|
||||||
minitest (>= 5.1)
|
minitest (>= 5.1)
|
||||||
mutex_m
|
securerandom (>= 0.3)
|
||||||
tzinfo (~> 2.0)
|
tzinfo (~> 2.0, >= 2.0.5)
|
||||||
|
uri (>= 0.13.1)
|
||||||
ast (2.4.2)
|
ast (2.4.2)
|
||||||
base64 (0.2.0)
|
base64 (0.2.0)
|
||||||
bigdecimal (3.1.8)
|
benchmark (0.4.0)
|
||||||
concurrent-ruby (1.2.3)
|
bigdecimal (3.1.9)
|
||||||
connection_pool (2.4.1)
|
concurrent-ruby (1.3.5)
|
||||||
|
connection_pool (2.5.0)
|
||||||
drb (2.2.1)
|
drb (2.2.1)
|
||||||
i18n (1.14.5)
|
i18n (1.14.7)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
json (2.7.2)
|
json (2.10.2)
|
||||||
language_server-protocol (3.17.0.3)
|
language_server-protocol (3.17.0.4)
|
||||||
minitest (5.23.1)
|
lint_roller (1.1.0)
|
||||||
mutex_m (0.2.0)
|
logger (1.6.6)
|
||||||
parallel (1.24.0)
|
minitest (5.25.5)
|
||||||
parser (3.3.1.0)
|
parallel (1.26.3)
|
||||||
|
parser (3.3.7.1)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
racc
|
racc
|
||||||
prettier_print (1.2.1)
|
prettier_print (1.2.1)
|
||||||
racc (1.8.0)
|
racc (1.8.1)
|
||||||
rack (3.0.12)
|
rack (3.1.12)
|
||||||
rainbow (3.1.1)
|
rainbow (3.1.1)
|
||||||
regexp_parser (2.9.2)
|
regexp_parser (2.10.0)
|
||||||
rexml (3.3.9)
|
rubocop (1.74.0)
|
||||||
rubocop (1.64.0)
|
|
||||||
json (~> 2.3)
|
json (~> 2.3)
|
||||||
language_server-protocol (>= 3.17.0)
|
language_server-protocol (~> 3.17.0.2)
|
||||||
|
lint_roller (~> 1.1.0)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.3.0.2)
|
parser (>= 3.3.0.2)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8, < 3.0)
|
regexp_parser (>= 2.9.3, < 3.0)
|
||||||
rexml (>= 3.2.5, < 4.0)
|
rubocop-ast (>= 1.38.0, < 2.0)
|
||||||
rubocop-ast (>= 1.31.1, < 2.0)
|
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 2.4.0, < 3.0)
|
unicode-display_width (>= 2.4.0, < 4.0)
|
||||||
rubocop-ast (1.31.3)
|
rubocop-ast (1.38.1)
|
||||||
parser (>= 3.3.1.0)
|
parser (>= 3.3.1.0)
|
||||||
rubocop-capybara (2.20.0)
|
rubocop-capybara (2.22.1)
|
||||||
rubocop (~> 1.41)
|
lint_roller (~> 1.1)
|
||||||
rubocop-discourse (3.8.0)
|
rubocop (~> 1.72, >= 1.72.1)
|
||||||
|
rubocop-discourse (3.12.1)
|
||||||
activesupport (>= 6.1)
|
activesupport (>= 6.1)
|
||||||
rubocop (>= 1.59.0)
|
lint_roller (>= 1.1.0)
|
||||||
rubocop-capybara (>= 2.0.0)
|
rubocop (>= 1.73.2)
|
||||||
rubocop-factory_bot (>= 2.0.0)
|
rubocop-capybara (>= 2.22.0)
|
||||||
rubocop-rails (>= 2.25.0)
|
rubocop-factory_bot (>= 2.27.0)
|
||||||
rubocop-rspec (>= 2.25.0)
|
rubocop-rails (>= 2.30.3)
|
||||||
rubocop-factory_bot (2.25.1)
|
rubocop-rspec (>= 3.0.1)
|
||||||
rubocop (~> 1.41)
|
rubocop-rspec_rails (>= 2.31.0)
|
||||||
rubocop-rails (2.25.0)
|
rubocop-factory_bot (2.27.1)
|
||||||
|
lint_roller (~> 1.1)
|
||||||
|
rubocop (~> 1.72, >= 1.72.1)
|
||||||
|
rubocop-rails (2.30.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
|
lint_roller (~> 1.1)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rubocop (>= 1.33.0, < 2.0)
|
rubocop (>= 1.72.1, < 2.0)
|
||||||
rubocop-ast (>= 1.31.1, < 2.0)
|
rubocop-ast (>= 1.38.0, < 2.0)
|
||||||
rubocop-rspec (2.29.2)
|
rubocop-rspec (3.5.0)
|
||||||
rubocop (~> 1.40)
|
lint_roller (~> 1.1)
|
||||||
rubocop-capybara (~> 2.17)
|
rubocop (~> 1.72, >= 1.72.1)
|
||||||
rubocop-factory_bot (~> 2.22)
|
rubocop-rspec_rails (2.31.0)
|
||||||
rubocop-rspec_rails (~> 2.28)
|
lint_roller (~> 1.1)
|
||||||
rubocop-rspec_rails (2.28.3)
|
rubocop (~> 1.72, >= 1.72.1)
|
||||||
rubocop (~> 1.40)
|
rubocop-rspec (~> 3.5)
|
||||||
ruby-progressbar (1.13.0)
|
ruby-progressbar (1.13.0)
|
||||||
|
securerandom (0.4.1)
|
||||||
syntax_tree (6.2.0)
|
syntax_tree (6.2.0)
|
||||||
prettier_print (>= 1.2.0)
|
prettier_print (>= 1.2.0)
|
||||||
tzinfo (2.0.6)
|
tzinfo (2.0.6)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
unicode-display_width (2.5.0)
|
unicode-display_width (3.1.4)
|
||||||
|
unicode-emoji (~> 4.0, >= 4.0.4)
|
||||||
|
unicode-emoji (4.0.4)
|
||||||
|
uri (1.0.3)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
@ -84,4 +97,4 @@ DEPENDENCIES
|
||||||
syntax_tree
|
syntax_tree
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.5.10
|
2.6.6
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
import TopicListItem from "discourse/components/topic-list-item";
|
|
||||||
import discourseComputed from "discourse/lib/decorators";
|
|
||||||
import { withSilencedDeprecations } from "discourse/lib/deprecated";
|
|
||||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -8,20 +5,6 @@ export default {
|
||||||
|
|
||||||
initialize() {
|
initialize() {
|
||||||
withPluginApi("1.39.0", (api) => {
|
withPluginApi("1.39.0", (api) => {
|
||||||
// TODO: cvx - remove after the glimmer topic list transition
|
|
||||||
withSilencedDeprecations("discourse.hbr-topic-list-overrides", () => {
|
|
||||||
TopicListItem.reopen({
|
|
||||||
@discourseComputed()
|
|
||||||
unboundClassNames() {
|
|
||||||
let classList = this._super(...arguments);
|
|
||||||
if (this.topic.has_accepted_answer) {
|
|
||||||
classList += " status-solved";
|
|
||||||
}
|
|
||||||
return classList;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
api.registerValueTransformer(
|
api.registerValueTransformer(
|
||||||
"topic-list-item-class",
|
"topic-list-item-class",
|
||||||
({ value, context }) => {
|
({ value, context }) => {
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.expanded {
|
&.expanded {
|
||||||
.accepted,
|
.accepted,
|
||||||
.unaccepted {
|
.unaccepted {
|
||||||
|
|
|
@ -4,6 +4,7 @@ $solved-color: green;
|
||||||
&.solved-status-filter {
|
&.solved-status-filter {
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
|
|
||||||
.select-kit-header {
|
.select-kit-header {
|
||||||
color: var(--primary-high);
|
color: var(--primary-high);
|
||||||
}
|
}
|
||||||
|
@ -18,6 +19,7 @@ $solved-color: green;
|
||||||
// anon text
|
// anon text
|
||||||
.accepted-text {
|
.accepted-text {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
.d-icon,
|
.d-icon,
|
||||||
.accepted-label {
|
.accepted-label {
|
||||||
color: $solved-color;
|
color: $solved-color;
|
||||||
|
@ -36,10 +38,12 @@ $solved-color: green;
|
||||||
.post-controls span.accepted-text {
|
.post-controls span.accepted-text {
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
font-size: $font-up-1;
|
font-size: $font-up-1;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 8px 1px;
|
padding: 8px 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.accepted-label {
|
.accepted-label {
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
|
@ -53,9 +57,8 @@ $solved-color: green;
|
||||||
.by {
|
.by {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discourse/lint-configs": "2.4.0",
|
"@discourse/lint-configs": "2.11.1",
|
||||||
"ember-template-lint": "6.1.0",
|
"ember-template-lint": "7.0.1",
|
||||||
"eslint": "9.19.0",
|
"eslint": "9.22.0",
|
||||||
"prettier": "2.8.8"
|
"prettier": "3.5.3",
|
||||||
|
"stylelint": "16.16.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 22",
|
"node": ">= 22",
|
||||||
|
|
2364
pnpm-lock.yaml
2364
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,3 @@
|
||||||
|
export default {
|
||||||
|
extends: ["@discourse/lint-configs/stylelint"],
|
||||||
|
};
|
Loading…
Reference in New Issue