Skip to content

Commit cbaef35

Browse files
committed
Upgrade dependencies + changes/tweaks
* Switch back to Yarn, `bun install` was erroring * Stricter rubocop/eslint checks and needed fixes * Prettier tweaks for Svelte file formatting
1 parent 5e812d9 commit cbaef35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+6447
-815
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# Ignore bundler config.
88
/.bundle
9+
/.yarn/cache
910

1011
# Ignore the default SQLite database.
1112
/db/*.sqlite3

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"singleQuote": true,
44
"trailingComma": "none",
55
"arrowParens": "avoid",
6+
"singleAttributePerLine": true,
67
"plugins": [
78
"prettier-plugin-svelte"
89
],

.rubocop.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1+
inherit_gem:
2+
rubocop-shopify: rubocop.yml
3+
14
require:
25
- rubocop-rails
3-
- rubocop-rspec
46
- rubocop-performance
7+
- rubocop-rspec
8+
- rubocop-rspec_rails
9+
- rubocop-factory_bot
510

611
AllCops:
712
NewCops: enable
8-
TargetRubyVersion: 3.0
13+
TargetRubyVersion: 3.3
14+
ParserEngine: parser_prism
915
SuggestExtensions: false
1016
Exclude:
11-
- 'bin/*'
17+
- 'bin/**/*'
18+
- 'coverage/**/*'
1219
- 'db/schema.rb'
1320
- 'lib/tasks/auto_annotate_models.rake'
21+
- 'log/**/*'
22+
- 'public/**/*'
23+
- 'scripts/**/*'
24+
- 'tmp/**/*'
1425
- 'vendor/**/*'
1526

16-
Bundler/OrderedGems:
27+
FactoryBot/ExcessiveCreateList:
1728
Enabled: false
1829

19-
Layout/ArgumentAlignment:
20-
EnforcedStyle: with_fixed_indentation
21-
22-
Layout/FirstHashElementIndentation:
23-
EnforcedStyle: consistent
24-
25-
Lint/AssignmentInCondition:
26-
Enabled: false
27-
28-
Lint/MissingSuper:
30+
RSpec/ExampleLength:
2931
Enabled: false
3032

31-
Lint/NoReturnInBeginEndBlocks:
33+
RSpec/MultipleExpectations:
3234
Enabled: false
3335

34-
Metrics/AbcSize:
35-
Enabled: false
36+
Style/BlockDelimiters:
37+
EnforcedStyle: braces_for_chaining
3638

37-
Metrics/BlockLength:
39+
Style/MethodCallWithArgsParentheses:
40+
AllowedMethods:
41+
- head
42+
- raise
43+
- render
3844
Exclude:
39-
- 'config/environments/*'
45+
- 'db/migrate/*'
4046
- 'spec/**/*'
4147

42-
Metrics/MethodLength:
43-
Max: 15
44-
45-
RSpec/ExampleLength:
46-
Enabled: false
47-
48-
RSpec/MultipleExpectations:
49-
Enabled: false
48+
Style/StringLiterals:
49+
EnforcedStyle: single_quotes
5050

51-
Style/BlockDelimiters:
52-
EnforcedStyle: braces_for_chaining
51+
Style/SymbolArray:
52+
EnforcedStyle: percent
5353

54-
Style/Documentation:
55-
Enabled: false
54+
Style/WordArray:
55+
EnforcedStyle: percent

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.4
1+
3.3.5

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
bun 1.1.22
2-
ruby 3.3.4
1+
bun 1.1.29
2+
ruby 3.3.5

.yarn/install-state.gz

378 KB
Binary file not shown.

.yarn/releases/yarn-4.5.0.cjs

Lines changed: 925 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
yarnPath: .yarn/releases/yarn-4.5.0.cjs
2+
nodeLinker: node-modules
3+
compressionLevel: mixed
4+
enableGlobalCache: false

Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ gem 'jwt'
2020
# App
2121
gem 'dotenv-rails'
2222
gem 'interaktor'
23+
gem 'ostruct'
2324
gem 'pundit'
2425
gem 'solid_queue'
2526

@@ -44,13 +45,17 @@ group :development do
4445
gem 'web-console'
4546
gem 'annotate'
4647
gem 'listen'
48+
gem 'prism'
4749

4850
# Code Quality
4951
gem 'database_consistency', require: false
5052
gem 'rails_best_practices', require: false
53+
gem 'rubocop-shopify', require: false
5154
gem 'rubocop-rails', require: false
52-
gem 'rubocop-rspec', require: false
5355
gem 'rubocop-performance', require: false
56+
gem 'rubocop-rspec', require: false
57+
gem 'rubocop-rspec_rails', require: false
58+
gem 'rubocop-factory_bot', require: false
5459
gem 'bundler-audit', require: false
5560
gem 'brakeman', require: false
5661
gem 'lefthook', require: false

0 commit comments

Comments
 (0)