immosquare-cleaner 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06af1c0a31ef811c54efdd4d3f845317c81f02db83112947da04390fd5c69e6c
4
- data.tar.gz: d3c8617e585affa872699e5378ac6c90818d1fe0d6a3fe6f1bbcf62d727c7451
3
+ metadata.gz: 86a7b8e99d0daa13e83d2d00673d3f69d38b0001aaac2dbad27dde414fa55061
4
+ data.tar.gz: 82a64aca718a273fba525466ef3d154098d1c8f5d36b5b1981d5ee5b6bb47879
5
5
  SHA512:
6
- metadata.gz: 354c8df2a5913b65613909c4d000161aafb2fcb7ab66b09e1dd909f0df6d6b74c982f44a65c7f10bba1525ceb1a42203f1aa8df37b70eaf2a8bc327efd7b4808
7
- data.tar.gz: b0df5b076458f940f997f92bd76643fa472d850c480f88cc9508eccf1fb7ab0cfd8b99429e80ce0d18c9bc85976c52423ae955e48983cfc7d58725d82fc5f641
6
+ metadata.gz: 524a0154ceb87137972194cb504ec7775ddc9987f56a3bfb147d32bcd0ef2a0b6eef469d7d432ceab865d9e4befec2fe414793fae21ff4c4f212042129f3c307
7
+ data.tar.gz: 4b8bc64e9585d168caaf1267b1adbb361f1275c89c081e9d695a1617fac7c929b73821c9af5029a5c389dd2ddcb1891769ac9688613cb01130765f82ed302602
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "1.3.1".freeze
2
+ VERSION = "1.3.3".freeze
3
3
  end
@@ -15,11 +15,11 @@ const normalizeComments = (filePath) => {
15
15
  const lines = code.split("\n")
16
16
 
17
17
  //============================================================//
18
- // Parse the code with babel to get comment positions
18
+ // Plain TypeScript keeps JSX off so generic arrows are not parsed as opening tags.
19
19
  //============================================================//
20
20
  const ast = babelParser.parse(code, {
21
21
  sourceType: "module",
22
- plugins: ["typescript", "jsx"]
22
+ plugins: filePath.toLowerCase().endsWith(".ts") ? ["typescript"] : ["typescript", "jsx"]
23
23
  })
24
24
 
25
25
  //============================================================//
data/linters/rubocop.yml CHANGED
@@ -114,6 +114,8 @@ Style/OptionalBooleanParameter:
114
114
  - perform # Sidekiq and ActiveJob serialize `perform` arguments as JSON: keyword arguments are not reliably supported, and jobs already enqueued keep their positional shape.
115
115
  Style/NumericPredicate:
116
116
  EnforcedStyle: comparison # No `.zero?` `.negative?` `.positive?`
117
+ Style/CollectionQuerying:
118
+ Enabled: false # Unsafe: rewrites `x.count > 0` / `x.count == 0` to `!x.empty?` / `x.empty?` without knowing `x` is a collection. A Pagy object has `count` but no `empty?`, so the page raises NoMethodError at render time, and `--autocorrect-all` applies it silently.
117
119
  Style/StringLiterals:
118
120
  EnforcedStyle: double_quotes # Double quotes everywhere (strings)
119
121
  Style/StringLiteralsInInterpolation:
data/package.json CHANGED
@@ -7,18 +7,18 @@
7
7
  ],
8
8
  "private": true,
9
9
  "dependencies": {
10
- "@babel/parser": "^8.0.8",
10
+ "@babel/parser": "^8.1.0",
11
11
  "@eslint/js": "^10.0.1",
12
- "@typescript-eslint/eslint-plugin": "^8.72.0",
13
- "@typescript-eslint/parser": "^8.72.0",
12
+ "@typescript-eslint/eslint-plugin": "^8.72.2",
13
+ "@typescript-eslint/parser": "^8.72.2",
14
14
  "@typescript/native": "npm:typescript@^7.0.2",
15
- "eslint": "^10.13.0",
15
+ "eslint": "^10.14.0",
16
16
  "eslint-plugin-align-import": "^1.0.0",
17
17
  "eslint-plugin-erb": "^2.1.1",
18
18
  "eslint-plugin-prefer-arrow": "^1.2.3",
19
19
  "eslint-plugin-sonarjs": "^4.2.2",
20
20
  "eslint-plugin-unused-imports": "^4.4.1",
21
- "prettier": "^3.9.10",
21
+ "prettier": "^3.10.0",
22
22
  "typescript": "npm:@typescript/typescript6@^6.0.2"
23
23
  }
24
24
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - immosquare
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 4.0.23
227
+ rubygems_version: 4.0.24
228
228
  specification_version: 4
229
229
  summary: One command to format every file of a repository, built to run as an AI agent
230
230
  hook.