immosquare-cleaner 1.3.2 → 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: f6bfab227e67347c6b2ae99dbfc63f976e512c99449a15c4b1060cae12d6e6ba
4
- data.tar.gz: b2f62ba54a6e28d2e592e561a3aa639d2bcded21b3f5a9846f7ba2db28ec0842
3
+ metadata.gz: 86a7b8e99d0daa13e83d2d00673d3f69d38b0001aaac2dbad27dde414fa55061
4
+ data.tar.gz: 82a64aca718a273fba525466ef3d154098d1c8f5d36b5b1981d5ee5b6bb47879
5
5
  SHA512:
6
- metadata.gz: 92a87a807dc7ece270d849ba86c2bfeadda64e71556bbc3d691f4496e0afb86492cf1b55b7bf66d87068a4041043b7de88f42029a6600fb7eeb1182b47d5b277
7
- data.tar.gz: 41a6d93a6e7d54dbc1672b3e018db722af008bc7f98272d410c12637cf7b1fdb9adbfc88aed6eb99092d9da1822be6503dad79ee5c7add6ea830152d1fd2899d
6
+ metadata.gz: 524a0154ceb87137972194cb504ec7775ddc9987f56a3bfb147d32bcd0ef2a0b6eef469d7d432ceab865d9e4befec2fe414793fae21ff4c4f212042129f3c307
7
+ data.tar.gz: 4b8bc64e9585d168caaf1267b1adbb361f1275c89c081e9d695a1617fac7c929b73821c9af5029a5c389dd2ddcb1891769ac9688613cb01130765f82ed302602
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "1.3.2".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/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.1",
13
- "@typescript-eslint/parser": "^8.72.1",
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.2
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.