eslint-plugin-raflint 1.5.7 → 1.5.8

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.
@@ -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.8",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -24,13 +24,8 @@
24
24
  "prepublishOnly": "npm run build",
25
25
  "test": "SILENT=1 mocha --timeout 60000 {,lib/**/,src/lib/**/,test/**/}*.test.ts"
26
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"
32
- },
33
27
  "devDependencies": {
28
+ "@babel/eslint-parser": "^8.0.1",
34
29
  "@eslint/js": "^10.0.1",
35
30
  "@stoplight/spectral-cli": "^6.16.3",
36
31
  "c8": "^12.0.0",
@@ -38,19 +33,22 @@
38
33
  "eslint-config-prettier": "^10.1.8",
39
34
  "eslint-import-resolver-typescript": "^4.4.5",
40
35
  "eslint-plugin-import-x": "^4.17.1",
36
+ "eslint-plugin-n": "^18.3.0",
41
37
  "eslint-plugin-promise": "^7.3.0",
42
- "eslint-plugin-raflint": "^1.5.2",
38
+ "eslint-plugin-raflint": "^1.5.7",
43
39
  "eslint-plugin-react-hooks": "^7.1.1",
44
- "globals": "^17.11.0",
40
+ "eslint-plugin-sonarjs": "^4.2.0",
41
+ "eslint-plugin-unicorn": "^74.0.0",
42
+ "globals": "^17.12.0",
45
43
  "husky": "^9.1.7",
46
- "lint-staged": "^17.4.1",
44
+ "lint-staged": "^17.5.0",
47
45
  "markdownlint": "^0.41.1",
48
- "mocha": "^11.8.0",
46
+ "mocha": "^12.0.0",
49
47
  "prettier": "^3.9.6",
50
48
  "ts-api-utils": "^2.5.0",
51
49
  "tsx": "^4.23.13",
52
50
  "typescript": "^6.0.3",
53
- "typescript-eslint": "^8.68.0"
51
+ "typescript-eslint": "^8.69.0"
54
52
  },
55
53
  "engines": {
56
54
  "node": ">=21.0.0"