eslint-plugin-raflint 1.5.7 → 1.5.9

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.
package/README.md CHANGED
@@ -41,8 +41,9 @@ qui devrait être écrites comme ça:
41
41
 
42
42
  const filePath = `${directory}/${filename}`;
43
43
 
44
- Le fix est laissé de côté quand il casserait l'appel : accès calculé (`path[join](a, b)`) et
45
- argument spread (`path.join(root, ...parts)`), qui n'est pas interpolable.
44
+ Un accès calculé (`path[join](a, b)`) n'est pas signalé du tout : la méthode appelée n'est pas
45
+ connue statiquement. Un argument spread (`path.join(root, ...parts)`) est signalé sans fix : il
46
+ n'est pas interpolable.
46
47
 
47
48
  ## tester le plugin sur un projet
48
49
 
@@ -1,5 +1,6 @@
1
- // Le backslash doit etre echappe en premier, sinon il redouble ceux ajoutes ensuite.
2
- const escapeTemplateLiteral = (value) => value.replaceAll('\\', '\\\\').replaceAll('`', '\\`').replaceAll('${', '\\${');
1
+ // Le backslash doit etre echappe en premier, sinon il redouble ceux ajoutes ensuite. Un CR brut dans un
2
+ // template litteral est normalise en LF par le moteur : il doit repartir en sequence `\r` pour garder sa valeur.
3
+ const escapeTemplateLiteral = (value) => value.replaceAll('\\', '\\\\').replaceAll('`', '\\`').replaceAll('${', '\\${').replaceAll('\r', '\\r');
3
4
  const isPathJoinCall = (node) => node.callee.type === 'MemberExpression' &&
4
5
  !node.callee.computed &&
5
6
  node.callee.object.type === 'Identifier' &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-raflint",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -18,39 +18,40 @@
18
18
  "dist"
19
19
  ],
20
20
  "scripts": {
21
- "build": "tsc",
21
+ "build": "tsc --project tsconfig.build.json",
22
22
  "cov": "c8 npm run test",
23
23
  "prepare": "husky",
24
24
  "prepublishOnly": "npm run build",
25
- "test": "SILENT=1 mocha --timeout 60000 {,lib/**/,src/lib/**/,test/**/}*.test.ts"
26
- },
27
- "dependencies": {
28
- "@babel/eslint-parser": "^8.0.1",
29
- "eslint-plugin-n": "^18.3.0",
30
- "eslint-plugin-sonarjs": "^4.2.0",
31
- "eslint-plugin-unicorn": "^74.0.0"
25
+ "test": "SILENT=1 mocha --timeout 60000 {,lib/**/,src/lib/**/,test/**/}*.test.ts",
26
+ "typecheck": "tsc --noEmit"
32
27
  },
33
28
  "devDependencies": {
29
+ "@babel/eslint-parser": "^8.0.5",
34
30
  "@eslint/js": "^10.0.1",
35
31
  "@stoplight/spectral-cli": "^6.16.3",
32
+ "@types/mocha": "^10.0.10",
33
+ "@types/node": "^22.20.2",
36
34
  "c8": "^12.0.0",
37
35
  "eslint": "^10.5.0",
38
36
  "eslint-config-prettier": "^10.1.8",
39
37
  "eslint-import-resolver-typescript": "^4.4.5",
40
38
  "eslint-plugin-import-x": "^4.17.1",
39
+ "eslint-plugin-n": "^18.3.0",
41
40
  "eslint-plugin-promise": "^7.3.0",
42
- "eslint-plugin-raflint": "^1.5.2",
41
+ "eslint-plugin-raflint": "^1.5.8",
43
42
  "eslint-plugin-react-hooks": "^7.1.1",
44
- "globals": "^17.11.0",
43
+ "eslint-plugin-sonarjs": "^4.2.0",
44
+ "eslint-plugin-unicorn": "^74.0.0",
45
+ "globals": "^17.12.0",
45
46
  "husky": "^9.1.7",
46
- "lint-staged": "^17.4.1",
47
+ "lint-staged": "^17.5.1",
47
48
  "markdownlint": "^0.41.1",
48
- "mocha": "^11.8.0",
49
+ "mocha": "^12.0.0",
49
50
  "prettier": "^3.9.6",
50
51
  "ts-api-utils": "^2.5.0",
51
52
  "tsx": "^4.23.13",
52
53
  "typescript": "^6.0.3",
53
- "typescript-eslint": "^8.68.0"
54
+ "typescript-eslint": "^8.70.0"
54
55
  },
55
56
  "engines": {
56
57
  "node": ">=21.0.0"