Skip to content

Commit 3f5be31

Browse files
authored
DEV: Update linting setup (#32)
1 parent c360bfe commit 3f5be31

File tree

7 files changed

+107
-7
lines changed

7 files changed

+107
-7
lines changed

.rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
inherit_gem:
2+
rubocop-discourse: stree-compat.yml

.streerc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--print-width=100
2+
--plugins=plugin/trailing_comma,plugin/disable_auto_ternary

Gemfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
group :development do
6+
gem "rubocop-discourse"
7+
gem "syntax_tree"
8+
end

Gemfile.lock

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (7.2.1.1)
5+
base64
6+
bigdecimal
7+
concurrent-ruby (~> 1.0, >= 1.3.1)
8+
connection_pool (>= 2.2.5)
9+
drb
10+
i18n (>= 1.6, < 2)
11+
logger (>= 1.4.2)
12+
minitest (>= 5.1)
13+
securerandom (>= 0.3)
14+
tzinfo (~> 2.0, >= 2.0.5)
15+
ast (2.4.2)
16+
base64 (0.2.0)
17+
bigdecimal (3.1.8)
18+
concurrent-ruby (1.3.4)
19+
connection_pool (2.4.1)
20+
drb (2.2.1)
21+
i18n (1.14.6)
22+
concurrent-ruby (~> 1.0)
23+
json (2.7.2)
24+
language_server-protocol (3.17.0.3)
25+
logger (1.6.1)
26+
minitest (5.25.1)
27+
parallel (1.26.3)
28+
parser (3.3.5.0)
29+
ast (~> 2.4.1)
30+
racc
31+
prettier_print (1.2.1)
32+
racc (1.8.1)
33+
rack (3.1.8)
34+
rainbow (3.1.1)
35+
regexp_parser (2.9.2)
36+
rubocop (1.67.0)
37+
json (~> 2.3)
38+
language_server-protocol (>= 3.17.0)
39+
parallel (~> 1.10)
40+
parser (>= 3.3.0.2)
41+
rainbow (>= 2.2.2, < 4.0)
42+
regexp_parser (>= 2.4, < 3.0)
43+
rubocop-ast (>= 1.32.2, < 2.0)
44+
ruby-progressbar (~> 1.7)
45+
unicode-display_width (>= 2.4.0, < 3.0)
46+
rubocop-ast (1.32.3)
47+
parser (>= 3.3.1.0)
48+
rubocop-capybara (2.21.0)
49+
rubocop (~> 1.41)
50+
rubocop-discourse (3.8.2)
51+
activesupport (>= 6.1)
52+
rubocop (>= 1.59.0)
53+
rubocop-capybara (>= 2.0.0)
54+
rubocop-factory_bot (>= 2.0.0)
55+
rubocop-rails (>= 2.25.0)
56+
rubocop-rspec (>= 3.0.1)
57+
rubocop-rspec_rails (>= 2.30.0)
58+
rubocop-factory_bot (2.26.1)
59+
rubocop (~> 1.61)
60+
rubocop-rails (2.26.2)
61+
activesupport (>= 4.2.0)
62+
rack (>= 1.1)
63+
rubocop (>= 1.52.0, < 2.0)
64+
rubocop-ast (>= 1.31.1, < 2.0)
65+
rubocop-rspec (3.1.0)
66+
rubocop (~> 1.61)
67+
rubocop-rspec_rails (2.30.0)
68+
rubocop (~> 1.61)
69+
rubocop-rspec (~> 3, >= 3.0.1)
70+
ruby-progressbar (1.13.0)
71+
securerandom (0.3.1)
72+
syntax_tree (6.2.0)
73+
prettier_print (>= 1.2.0)
74+
tzinfo (2.0.6)
75+
concurrent-ruby (~> 1.0)
76+
unicode-display_width (2.6.0)
77+
78+
PLATFORMS
79+
arm64-darwin-23
80+
ruby
81+
82+
DEPENDENCIES
83+
rubocop-discourse
84+
syntax_tree
85+
86+
BUNDLED WITH
87+
2.5.21

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"devDependencies": {
4-
"@discourse/lint-configs": "1.3.10",
4+
"@discourse/lint-configs": "1.4.2",
55
"ember-template-lint": "6.0.0",
66
"eslint": "8.57.1",
77
"prettier": "2.8.8",

pnpm-lock.yaml

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/system/discourse_icon_header_links_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
RSpec.describe "Discourse icon header links", system: true do
23
let(:theme) { Fabricate(:theme) }
34
let!(:component) { upload_theme_component(parent_theme_id: theme.id) }

0 commit comments

Comments
 (0)